When X-Road Central Server high availability is worth the design effort
A Central Server cluster is worth the design effort when the management side of your X-Road ecosystem cannot afford a single node as a point of failure. Picture an operator running a Central Server that many members depend on for member registration, certificates and global configuration. If that one server goes down, administrative changes stop until it is restored. A cluster of several Central Server nodes on a shared database removes that single node as a dependency for the management side. It does not make the database disappear as a dependency, so the database design matters as much as the node count.
The Central Server is the component that holds the trusted list of members, security servers, certificates and approved services for an X-Road instance, and it distributes global configuration that Security Servers download and cache. It is distinct from the Security Server data path. Messages between members flow between Security Servers, and a Security Server keeps exchanging messages on its cached global configuration even while the Central Server is unavailable. That is why an outage of the management side is usually an administrative and onboarding problem first, not an immediate exchange outage. The length of time Security Servers can keep working on cached configuration depends on your setup, so confirm it with your own test before you rely on it.
The cluster design does not change what the Central Server is responsible for, and it does not replace the Security Server design for exchange availability. Each node still has its own signing key and address, so clients and peers must be configured with the correct node behavior, and a cluster does not give you one identity to fail over. Operators should also confirm how the cluster handles upgrades, backups and recovery, since those tasks touch every node and the shared database. Before committing to the design, ask your team to list which administrative functions would stop during an outage, how long your members can tolerate that, and what your database failover path looks like. If those answers are unclear, the cluster may add complexity faster than it adds protection.
How Central Server nodes, the shared database and Security Servers connect
The diagram starts in the operator network, where two Central Server nodes run side by side. Each node has its own signing key and its own address, and both read and write the same PostgreSQL database that holds the configuration state. A Configuration Proxy in the member networks obtains the global configuration from the nodes and serves it to the Security Servers, which pull it from the proxy. The subgraph boundaries mark where operator trust ends and member networks begin. Check that each node reaches the database, that the proxy can reach at least one node, and that every Security Server can reach the proxy.
Central Server nodes share a database and feed Security Servers.
What keeps working when a node or the database fails
A Central Server cluster has several moving parts: nodes with their own signing keys and addresses, and a shared database that holds the configuration. Each failure mode below affects a different part of that design, so plan recovery for each one separately and confirm the behavior against NIIS documentation and your own test results.
Single node failure
Losing one Central Server node leaves the other nodes serving the shared database, provided the cluster was built as documented. Your clients and Security Servers should not need to change addresses, because each node has its own address and the rest of the cluster continues. Confirm how the cluster behaves during the failover window, which requests fail and which can be retried, and how the failed node rejoins with its own signing key. Test this on a staging cluster before relying on it.
Hardening guideDatabase node failure
The shared database is the single point of truth for the cluster configuration, so its failure matters more than a node failure. Whether the cluster keeps accepting changes depends on the database failover design, which is a separate build covered by PostgreSQL replication and failover planning. Ask NIIS which database versions and replication setups are supported, and test a primary failover while the cluster is under load.
Loss of the primary database connection
A node can lose its connection to the database while the database itself stays healthy, for example after a network fault or a TLS certificate problem. Such a node may stop serving configuration changes while the other nodes continue. Check how the node reports this state, how it reconnects without manual steps, and what your monitoring alerts on. Simulate the network cut in a test environment and record the sequence of events.
Security Servers during a Central Server outage
Security Servers keep a local copy of the global configuration, so message exchange between members can continue for a period when the Central Server is unavailable. The length of that period depends on how the cached configuration is refreshed and on certificate and OCSP validity in your deployment. Confirm the expected behavior with NIIS documentation and measure it in your own environment, including what happens when a cached certificate expires.
Changes that cannot be made during an outage
Operations that write to the configuration, such as registering a member, adding a security server, or approving a certificate, need a working database and a healthy cluster. During an outage these changes will wait or fail, and the Security Server will not receive them until the cluster recovers. Build a list of changes that can wait and a list that cannot, and agree on the approval path for emergency changes before an incident occurs.
What to confirm about recovery time
Recovery time depends on the database failover mechanism, the cluster version, the size of the configuration, and the procedures your team follows. No duration is published for this scenario in the sources reviewed, so do not assume one. Ask NIIS for the recovery procedures for your version, run timed failover tests, and write the measured results into your runbook and service-level expectations.
Cluster design options and when each fits
This table compares a single Central Server, a clustered Central Server on one database instance, and a clustered Central Server on replicated PostgreSQL with failover. Read each row as a decision factor, then check the failure column against your own tolerance for configuration downtime. The main takeaway is that node redundancy and database redundancy are separate choices, and the second costs the most to operate.
| Factor | Single Central Server | Clustered, single database | Clustered, replicated PostgreSQL |
|---|---|---|---|
| Central Server nodes | One node with one signing key and one address | Two or more nodes, each with its own signing key and address | Two or more nodes, each with its own signing key and address |
| Failure tolerated | None. A host failure stops configuration work until the node is restored | Loss of one Central Server node, but not loss of the database | Loss of one Central Server node and of the database primary, if failover is configured and tested |
| Database dependency | Single database serving one node | Single database instance shared by all nodes | Primary and standby with a documented failover path |
| Operational effort | Lowest: one host, one database, one backup routine | Moderate: per-node keys, cluster operating rules, shared database backups | Highest: replication monitoring, failover runbook, TLS between nodes and database, rehearsed switchover |
| Recovery path | Restore from backup onto a rebuilt host | Rebuild the failed node, or restore the shared database. Confirm the exact steps with NIIS documentation | Promote the standby, then replace the failed node. Rehearse both steps before go-live |
| Main cost drivers | Host sizing and backup storage | Additional node hosts and database capacity | Standby database capacity, managed service or support fees if used, and staff time to run replication |
| Best fit | Pilots, test environments, or low-criticality configuration with a restore path you have tested | Teams that need node redundancy and already operate a reliable, backed-up database | Production clusters where configuration management must survive a database failure as well as a node failure |
How to build a Central Server cluster step by step
This sequence takes a team from a platform check to a Central Server cluster that shares one configuration database, with each node holding its own signing key and address and a failover test confirming the cluster keeps serving. Each step closes with a check you can run before moving on.
Confirm platform and release support
The operator's infrastructure lead confirms the operating system, the X-Road release and the database version against the official release and installation documentation before any server is built. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also listed as supported, so pick one of these for every node in the cluster and record it. Mixed versions across nodes are a common source of trouble, so confirm the exact package versions you will deploy on each node. Ask the NIIS team or your vendor contact to confirm which Central Server cluster configuration is supported on your chosen release. The step is done when you have a written version matrix that names one release, one operating system build and one database major version for all nodes.
Prepare the shared PostgreSQL database
The database administrator creates the PostgreSQL instance that all Central Server nodes will use for the shared configuration, with a dedicated database and role for X-Road, TLS enabled for connections, and network rules that allow only the Central Server nodes to connect. Confirm with the X-Road documentation which database settings the Central Server expects, and whether your chosen high availability design for PostgreSQL must be in place before the cluster is built. Plan backups of this database from the start, because it holds the configuration that every node depends on. The step is done when a test connection from each planned node succeeds over TLS and a failed connection from an unlisted host is refused.
Install the first Central Server node
The system administrator installs the Central Server package on the first node and points it at the shared database during initialization, following the installation guide for the chosen release. Record the node's address, its signing key and its certificate details in your build record, because each node in the cluster keeps its own. Set up the administrator accounts and confirm the node starts cleanly and its services report healthy. The step is done when the first node initializes against the shared database, its admin interface responds, and the database contains the expected configuration tables for that node.
Add the remaining nodes with their own keys
The system administrator installs the same release on each additional node, joins it to the shared database and gives it its own signing key and its own address. Do not copy the first node's keys or certificates onto other nodes, since each node must be individually identifiable. Confirm with the installation guide how a node is registered as a cluster member and which steps the cluster join requires. Check that every node uses the same release and that its address is reachable from the other nodes and from the database. The step is done when each node lists the other nodes as members and no two nodes share a key or address.
Verify configuration sync and node health
The operator makes a small, reversible change to the global configuration on one node, such as a test member entry, and confirms that every other node reflects it within the sync interval documented for your release. At the same time, check each node's health and monitoring output, and confirm that the operational monitoring services report each node as up. Record the time the change appeared on each node so you have a baseline for later comparison. The step is done when the test change is visible on all nodes and every node reports healthy status with no unexpected errors in its logs. Revert the test change once the check passes.
Run a failover test before go-live
The operations team stops one Central Server node in a test window, then checks that the remaining nodes keep serving configuration and that a configuration change can still be made through a surviving node. Repeat the test by stopping the database connection or the primary database service, if your database design supports it, and record what stops working. Restart the failed node and confirm it rejoins the cluster and catches up with the current configuration. Ask your team to confirm the behavior during the outage against the documentation for your release, since the exact effect on Security Servers depends on their cached global configuration. The step is done when the outage behavior is written down, the failed node rejoins cleanly, and the runbook has the exact steps for the next outage.
Operating rules for a Central Server cluster
The security officer owns the trust material that makes the cluster valid: signing keys, authentication certificates and approval of changes that affect trust. Each Central Server node has its own signing key and address, so key handling is done node by node, and every key needs a recorded owner, location and backup.
- Per-node signing keys: Generate, back up and protect the signing key on each node, and keep a register that maps each key to its node address.
- Hardware tokens: The Security Server supports PKCS#11 drivers through the
xroad-addon-hwtokenspackage with RSA and EC keys. Confirm with NIIS documentation whether and how the Central Server uses hardware tokens before you choose a design. - Access to key material: Limit who can read key files or know token PINs, and review that list on a fixed schedule.
- Hardening baseline: Apply account lockout, password length and key-only SSH settings on every node, as described in the X-Road security hardening guidelines.
- Change approval: Approve any change to trust anchors or key material before an operator applies it.
Before go-live, check that the key register matches the node addresses recorded in the cluster and that each backup has been restored in a test environment.
The system administrator keeps every node's operating system, packages, network rules and access controls consistent, so that a node behaves the same way when traffic moves to it during failover. Drift between nodes is the most common source of surprises in a cluster, so the baseline should be written down and applied the same way each time.
- Node parity: Keep operating system versions and packages aligned, and use the supported platforms listed in the X-Road releases and the GitHub repository. Confirm the Central Server platform list before you build.
- Admin access through PAM: The Security Server authenticates admin users through PAM, and LDAP can be integrated via SSSD with LDAP groups mapped to X-Road roles. Confirm the equivalent role mapping for the Central Server before you rely on it.
- Role separation: The Security Server defines five roles, including Security Officer, Registration Officer and System Administrator. Use the same separation of duties on the Central Server where the product allows it.
- Upgrade sequencing: Upgrade one node at a time and confirm the clustered upgrade order in the upgrade documentation before you touch a node. Current supported versions are 7.8.3, 7.7.4 and 7.6.5.
- Change record: Log every operating system and package change per node, with the date and the person who made it.
Before relying on the cluster, confirm that a node rebuilt from your baseline joins with the same settings as the others.
The database administrator owns the shared database that the cluster nodes use for configuration state. Node availability does not remove the dependency on this database, so its failover design, access rules and restore process decide how much of the cluster keeps working during an incident. The Security Server requires PostgreSQL, local or remote, and the same PostgreSQL platform should be confirmed for the Central Server with NIIS documentation.
- Shared state: Treat the configuration database as the single point of truth for the cluster. Plan how long configuration changes can be paused if it is unavailable.
- Failover design: Choose streaming replication with a standby or a managed service with failover. Confirm with NIIS what the Central Server does during a failover window before you test it.
- Access and TLS: Give each node its own database account with only the rights it needs, and use TLS between the nodes and the database.
- Backups and restore tests: Take database backups on a schedule and restore them into a separate environment regularly. Keep them consistent with the configuration backups run by operators.
- Maintenance coordination: Notify system administrators and operators before schema-affecting upgrades or planned failover tests.
Before go-live, confirm the failover behavior and restore procedure with your own test results, not only with the vendor's description.
The operator runs the cluster day to day: applying configuration changes, watching node health, executing backups and leading the response when a node, the database or a key is affected. Operators act on changes approved by others, so their procedures must show which steps need approval and which can proceed.
- Configuration changes: Apply changes through the documented procedure, one change set at a time, then confirm that every node reports the same state.
- Node health: Monitor each node separately, so a failed node is not hidden by healthy peers. Use the monitoring guidance in the X-Road documentation to set up checks.
- Failure runbook: Keep written steps for losing one node, losing the database and losing a key, with a named owner for each step.
- Backup execution: Run and log the Central Server configuration backups, and keep them separate from the database backups that the database administrator owns.
- Escalation: Send any key or trust issue to the security officer before a node is restarted, rebuilt or removed.
Before go-live, confirm that the runbook has been rehearsed in a non-production cluster and that every step names an owner and a place to record its outcome.
Security considerations for clustered Central Servers
A clustered Central Server holds the configuration that every member depends on, so a weakness in one node or in the shared database affects the whole cluster. The cards below cover where signing keys sit, how the database is protected, how admin access is locked down, and how backups are handled.
Protect each node's signing key
Each Central Server node has its own signing key and address, so a compromise of one node's key file can let an attacker sign configuration changes that the other nodes accept. Confirm where each key is stored, who can read it on the host, and that file permissions and filesystem encryption are set consistently on every node. Treat a node rebuild as a key event that needs its own review.
Hardening guideMove keys into hardware security modules
X-Road supports hardware security modules through PKCS#11 drivers using the xroad-addon-hwtokens package, with both RSA and EC keys. Where a module is used, keys are generated and used inside the device rather than sitting as files on disk. Before you commit, confirm with the module vendor and with NIIS documentation that your model, driver version and cluster behavior are supported together.
Secure database connections and access
The cluster's configuration lives in a shared PostgreSQL database, so every node's connection is a trust boundary. Use TLS between the nodes and the database, restrict the database to the node addresses, and give each node a dedicated role with only the privileges it needs. Review who holds database administrator rights, since those accounts can alter configuration outside the X-Road interface.
Lock out failed admin logins
The hardening guide recommends locking an account for 15 minutes after 3 failed logins. Apply this to every node's admin accounts and check that the lockout is enforced consistently, since an attacker who can try passwords on a node may be able to reach others through the same identity source. Pair the policy with passwords of at least 16 characters and a documented process for unlocking accounts during an incident.
Allow key-only SSH to nodes
Administrative SSH access to each Central Server node should use keys only, with password logins disabled. Because a cluster has several hosts, a single weak account on one node can become the entry point to the configuration database and the other nodes. Keep the list of administrators short, record who can reach each node, and review SSH access whenever staff change roles.
Serve global configuration over HTTPS
From version 7.4, the hardening guide describes publishing global configuration over HTTPS. Members download the global configuration from the Central Server cluster, so the distribution path is part of the trust chain for the whole ecosystem. Confirm that the version in use supports this, that certificates on every node are valid and renewed on schedule, and that members are pointed at the intended endpoint.
Questions buyers ask about Central Server high availability
What drives the cost of Central Server high availability work?
The cost depends on how many Central Server nodes you run, how the shared database is provided, how much of your existing single-node setup must be converted, and how many environments need preparing. Labor is the largest one-time component: design, build, configuration, failover testing and documentation. Recurring costs sit mostly in infrastructure you operate, including compute, database service, backup storage and monitoring, plus any support retainer. Ask for any quote to separate one-time work from recurring items, and to state which database platform and X-Road release it assumes. A quote that does not name these two things cannot be compared with another.
How long does a Central Server high availability project take?
No duration figure has been established for this work, so treat any number you are given as a claim to verify. Timing is set by whether you build a new cluster or convert a running Central Server, the state of your database platform, change-control approval windows, the number of environments, and the test cycles needed to prove failover behavior. If you must upgrade first, that work adds time. The current release is 7.8.3, and X-Road 8 is in beta with a production release scheduled for December 2026, so a plan that targets 8 must account for that schedule. Ask for milestones in the written scope.
What does our team need to provide for the engagement?
The work needs decisions and access that only your organization can give. Typically this includes:
- Infrastructure access, such as cloud accounts, data center networks or virtualization platforms, with DNS and firewall changes approved
- A named owner for the shared database platform, who can confirm backup, replication and failover behavior
- A Central Server administrator and a security officer available for key and certificate decisions on each node
- Change windows for cutover and for failover tests, and a rollback plan approved in advance
- Existing monitoring and backup tooling, or agreement on what will be used
Delays usually come from waiting on these people, not from the technical build.
Can our own platform team run Central Server high availability in-house?
Yes, if your team already runs a single Central Server and has operated a replicated PostgreSQL service with tested failover. The build itself is mostly configuration, but the hard parts are the operating rules: each node has its own signing key and address, changes must be applied consistently across nodes, and recovery after a node or database loss needs rehearsal. Check that at least two people can perform these tasks and that the runbooks are written before go-live. If any of those skills is missing, a partner can cover the gap, and you can still keep day-to-day operations in-house. Confirm the cluster procedures in the current X-Road documentation for your release before committing staff time.
Is a Central Server cluster needed, or is a cold standby enough?
The answer depends on how long you can tolerate the Central Server being unavailable and how many people must act during an outage. A cold standby is simpler, but promotion is manual and usually depends on a restored configuration, so recovery time is set by your restore and approval steps. A cluster on a shared database removes the dependency on one node, but it moves the critical path to the database. A database outage then affects every node, so the database design matters as much as the Central Server design. Confirm with NIIS documentation what Security Servers do with cached global configuration while the Central Server is down, because that sets how much outage you can absorb.
How do we test Central Server failover without risking production?
Test in a non-production environment that matches production in release, node count and database topology. Start with a documented baseline: confirm configuration changes, signing and global configuration distribution all work. Then stop one node and check that remaining nodes continue serving, and that administrative changes still succeed or fail as the runbook predicts. Test database failover separately, and only after a verified backup. Record expected and actual behavior for each step, time the recovery, and restore the node before the next test. Once the test passes, repeat it after each upgrade or database change, because a failover that worked last quarter may not work after a configuration change.
What does the choice of X-Road release mean for support?
Build on a supported release. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also listed as supported. X-Road 7.8.0 is the last new-feature release of the 7 line, and NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but has not decided how long that period will last. That means 7.x will keep receiving fixes for now without a fixed end date, so ask NIIS or your partner for the current position in writing. X-Road 8.0.0 Beta 2 is for testing, not production. Plan a move to 8 as a separate project with its own evaluation and upgrade path.
How DeployOpen scopes a Central Server cluster engagement
DeployOpen plans, implements, hardens, backs up and documents X-Road in the client's own infrastructure, whether that is their cloud accounts, data centers or air-gapped networks. For a Central Server cluster, that work usually covers the node layout, the shared database and its replication, per-node signing keys and addresses, the operating runbook for adding and removing nodes, and the evidence the client's security and compliance teams will ask for. Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before work starts. For a cluster, the written scope should name each node, the database topology and failover approach, the backup and restore tests to be run, and who on the client side owns the global configuration and the operating rules after handover.
DeployOpen does not publish a price list. A quote follows from the written scope, so the useful preparation on the client side is a clear statement of the number of Central Server nodes intended, the database platform (self-managed PostgreSQL or a managed service), the network zones and load balancing already in place, and the hardware security module or certificate authority arrangements that the cluster must work with. Ask the quote to separate one-time work (design, installation, testing, documentation and handover) from recurring work, which is typically upgrades, patching, backup verification and operational support. Ongoing support, upgrades and continuous testing are available as a retainer, and the retainer scope should be written against the same runbook so that the operating rules do not drift after the project ends.
DeployOpen is not an official X-Road partner, reseller or certified provider, and it does not issue audit reports or certifications. Before selecting a partner, confirm with the X-Road maintainers which release line your cluster will run, since the current release and supported versions are listed on the X-Road releases page, and confirm with your own assessors which controls the cluster evidence must support. The written scope should record those assumptions so that a change in release support or in the database platform becomes a scope change rather than an unplanned gap.
How DeployOpen delivers X-Road high availability
DeployOpen plans, builds and hands over X-Road Central Server clusters inside your own infrastructure, with per-node keys, addresses and database design agreed before installation starts. The work is scoped in writing, tested against node and database failure, and documented so your operators can run the cluster after handover.
How we scope
- Written scope covers node count, per-node signing keys and addresses, and the shared database design for the cluster
- Failure cases to test, such as a lost node or database failover, are listed with expected behavior before build
- Operating rules for the cluster, including who changes global configuration and in what order, are agreed in the scope
- Engagements are fixed-scope, with deliverables and timelines agreed before work begins
How we build
- Central Server nodes are installed in your cloud accounts, data centers or air-gapped networks on supported platforms
- The shared PostgreSQL database and its replication and TLS settings are configured to match the cluster design
- Node failure, database failover and configuration change scenarios are tested and the results recorded
- Hardware security module or PKCS#11 key handling is set up where your signing key policy requires it
How we hand over
- Runbooks cover adding or removing a node, rotating keys, backup and restore, and the upgrade order for the cluster
- Your operators receive the recorded test results, network port lists and configuration inventory for review
- Your security and compliance teams get the design and evidence they need for their own internal review
- Knowledge transfer sessions walk your operators through failure drills on the cluster you will run
How we support
- Ongoing support, upgrades and continuous testing of the cluster are available as retainers
- Upgrades to later X-Road 7 releases are planned against the cluster runbooks and tested before rollout
- Retesting follows significant changes to the nodes, the database or the global configuration process
- Support scope and response arrangements are written into the retainer before it starts

