Recovering an X-Road Central Server HA cluster after a failure
The Central Server HA installation guide documents recovery for three cases: the configuration database and its replicas are lost, one or more nodes are lost while a backup exists, and some nodes are lost with no backup. Each case leads to a different sequence of steps, so the first job for an operator is to know which case applies and to have the procedure for it written down before anything fails. Recovery planning starts at installation, when the team records where each node's backups are kept, who holds the database credentials, and which node holds the authoritative configuration. Teams that run a Central Server cluster for a national or sector ecosystem should treat a tested recovery plan as a standard operating requirement, not an afterthought, because the Central Server manages member classes, global configuration and onboarding for every Security Server that depends on it.
The Central Server is the operator's component in the X-Road ecosystem. It holds the configuration that defines which members, Security Servers and services exist, and it distributes global configuration that Security Servers use to validate messages. In an HA design, several Central Server nodes share one database, and each node has its own signing key and address. That design keeps the service running when one node fails, but it moves the dependency to the shared database. A failure there, or a node that was rebuilt from the wrong backup, affects the whole cluster. Operators should confirm with the installation guide which backup files each node needs, how a replacement node joins the cluster, and what the guide says about signing keys for a new node.
Security Servers keep exchanging messages on the global configuration they already hold, so exchange continuity is not lost at the moment the Central Server fails. The duration of that cache and the changes a team can make while the Central Server is degraded are questions to confirm in the guide and in the environment under test, not assumptions to carry into a runbook. A useful next step is a recovery drill in a non-production environment that runs each of the three cases end to end, times the steps against the team's own change windows, and records what the operator must check before declaring the cluster healthy.
Which recovery path applies when a Central Server cluster fails
The Central Server HA guide sorts failures by what was lost: the configuration database and its replicas, some nodes with a backup available, or some nodes with no backup. Each case starts from a different state, so identify which one you are in before running any recovery step.
Configuration database and replicas lost
This is the most severe case: the shared configuration database and all of its replicas are gone, so no node holds a complete, current copy of the Central Server state. Recovery depends on restoring the database from a backup taken from the cluster, not on rebuilding nodes. Confirm in the guide which backup form it expects, how far behind the restored data may be, and how each node re-attaches to the restored database. Treat the loss of any signing key material as a separate question to verify against the guide.
HA installation guideNodes lost with a backup
One or more Central Server nodes fail, but the database is intact and a backup of the lost node is available. The usual approach is to rebuild the node on replacement hardware or a clean host, restore its backup, and rejoin it to the cluster. Confirm which node-specific files the backup contains, including the per-node signing key and address, and whether the restored node must be reconfigured before it accepts traffic again.
Nodes lost without a backup
Here the failed nodes cannot be restored from their own files, so they must be replaced as new cluster members. The risk is that a replacement node is configured with the wrong identity, which can conflict with a surviving node. Confirm from the guide how a new node is registered, what per-node values must be generated fresh, and how the surviving nodes remove the lost entries from the cluster before the replacement joins.
Security Servers on cached global configuration
While the Central Server is being recovered, Security Servers keep exchanging messages using the global configuration they already cached. This gives a window to restore service, but it does not allow new members, certificate changes or updated services to reach them. Ask the guide how long cached configuration remains valid and what happens once it expires, so you can set a recovery deadline and communicate it to members.
How long Security Servers keep working on cached global configuration
Security Servers keep exchanging messages on their cached global configuration while the Central Server is unavailable, so an outage of the Central Server cluster does not stop existing data exchange on its own. The Security Server holds a local copy of the global configuration it needs to validate peers and route requests, and it works from that copy until it refreshes it. What the reader cannot assume is how long that copy stays usable. The supplied material does not give a cache lifetime or a maximum outage duration, so the operator must confirm the exact behavior, any expiry settings and any limits in the Central Server HA guide and then prove it in their own test environment.
Plan the test around the scenario that matters for recovery. Take the Central Server cluster down for a period longer than your expected recovery window, then check that member traffic still succeeds, that certificate status checks still resolve, and that the Security Servers log the point at which they can no longer refresh global configuration. Record which Security Server components depend on fresh configuration, such as new members, new services, changed access rights and certificate changes, because those changes will not appear until the Central Server cluster is back. Also confirm how a Security Server behaves when it restarts during the outage, since a restart may depend on reading configuration that is no longer current.
Global configuration is published over HTTPS from version 7.4, as the X-Road security hardening guidelines describe, so the operator should confirm that the Security Servers in their estate fetch it over HTTPS and that the certificate trust chain used for that fetch will remain valid through the outage window. An expired or rotated certificate on the distribution path can end the cache's usefulness sooner than the cache itself would. Ask the Central Server HA guide's authors or your NIIS contact what the documented refresh interval and expiry behavior are for your release, and write the answers into your runbook with the test results.
Recovery options and when each fits
This table compares the three documented recovery cases for a Central Server HA cluster: restoring a lost configuration database, rebuilding a lost node from a backup, and rebuilding nodes without a backup. Read each row against your own backup coverage, since the right path depends on which component failed and what you prepared in advance.
| Situation | What is restored | What the operator must prepare | Main risk |
|---|---|---|---|
| Configuration database and its replicas are lost | The shared configuration database, rebuilt from a backup taken before the loss | A tested, current database backup stored apart from the cluster, and a documented procedure for re-pointing nodes to the restored database | Configuration changes made after the last backup are lost and must be re-entered |
| One or more nodes lost, backup available | The failed node's state, rebuilt from its own backup onto a replacement host | Node backups taken on a schedule, the node's signing keys and addresses recorded, and a spare host with matching OS and package versions | Restoring an outdated or mismatched backup can bring back stale keys or addresses that conflict with the running cluster |
| Some nodes lost, no backup | The node is rebuilt as a new installation and joined to the cluster, with its per-node material generated again | Installation media, the procedure for joining a node to the existing database, and records of the cluster's operating rules | Per-node signing keys and addresses are not recovered from a backup, so the rebuilt node may not match what other parties and the cluster expect |
Preparing and running a recovery drill for the Central Server cluster
This sequence gives your team a repeatable way to prove that a Central Server HA cluster can be recovered from its documented failure cases, and it leaves dated evidence that auditors and the operations team can review. It is written to be run against the HA installation guide for the exact X-Road release you operate.
Inventory nodes, signing keys and addresses
The operator lists every Central Server node in the cluster, along with each node's signing key, network address, and its place in the shared database setup. Record the release running on each node, since the current supported versions are 7.8.3, 7.7.4 and 7.6.5 and recovery steps differ by release. Check that the inventory matches what the nodes report when queried, and file it as the baseline for the drill. The inventory is complete when every node has a matching entry and no node is missing from the list.
Confirm backup scope and restore procedure
The team reviews what the backups cover: the configuration database, the per-node material needed to rejoin the cluster, and the database replicas. Compare this list against the three recovery cases in the Central Server HA guide: lost configuration database and replicas, lost nodes with a backup available, and lost nodes without a backup. Confirm where backups are stored, who can read them, and how the restore steps are written for your release. Any gap found here goes into a written action list before the drill starts.
Rehearse a restore on a test cluster
Build a separate test cluster that mirrors the production topology, load a copy of the configuration from backup, and run the restore steps exactly as the HA installation guide describes them for the release you run. Commands must come from that guide, not from memory or from this page. Stop at each documented checkpoint and record what the team did and what the system returned. The rehearsal is complete when the test cluster reaches a working state that matches the inventory from step one.
Verify node registration and global configuration
After the restore, confirm that each node is registered in the cluster, that the nodes agree on the configuration they hold, and that the global configuration is published and readable. Check that Security Servers using the cluster still receive the global configuration they had before the failure. Use the status and diagnostic views described in the guide for your release. The check passes when all nodes report the same configuration state and no node is left in a partial or pending condition.
Record evidence of the drill
The team writes a drill record that lists the date, the people involved, the release and node inventory used, the backup set restored, each command outcome, each check result, and every deviation from the guide. Deviations are assigned owners and resolved before the drill is closed. Store the record with the change and operations documentation so it can be produced during a compliance review. The drill is closed when the record is signed off by the operations lead and the open deviations list is empty or has accepted owners.
What backups must cover for a clustered Central Server
A Central Server HA cluster has two kinds of state that a backup must capture: the shared configuration database that all nodes read and write, and the per-node material each node holds on its own. The shared database is the single record of members, security servers, services and global configuration decisions, so it is the first thing to restore in any recovery. Per-node state is different. Each Central Server node has its own signing key and its own address, and those are not held in the shared database. A backup plan that covers only the database leaves the cluster unable to restore a node to its original identity. Before you accept a design, confirm with the vendor documentation and your own environment exactly which files and keys sit on each node, and which of them can be regenerated and which cannot.
A node lost without a backup has consequences beyond the hardware. If its signing key is gone, the replacement node cannot sign with the same identity, so the cluster's record of that node no longer matches a working server. The address of the lost node must also be reconciled with the rest of the cluster, otherwise peers may keep pointing at an address that answers no one. Treat each node's key material as a secret with the same protection as the database backup, and record where each node's key and address are held. The HA installation guide sets out the procedure for rebuilding a node, and you should walk through it on a test cluster before you rely on it.
Backup frequency and retention are decisions for your own risk assessment, not something this page can set. Ask yourself how much configuration change you could afford to lose and how long you need to keep older restore points for audit and investigation. Then confirm the answers with your operations team and, where your obligations require it, your compliance lead. Test restores on a schedule, because a backup you have never restored is not yet evidence that recovery works. Record the results, including how long the restore took and which steps needed manual work. Backup protection, including encryption and access control of the backup store, is covered in the security operations topic, and key handling is covered in the certificates and trust services topic.
Security risks during recovery
A Central Server cluster is rebuilt under pressure, and that is when shortcuts are most tempting. The risks below share one root: a recovery that restores service quickly can also restore a stale, tampered or over-trusted component, so each restore step needs its own check.
Restoring an outdated or tampered database
The configuration database holds the member, service and trust settings that every node relies on. A backup restored from an older point can silently roll back approvals or certificate changes, and a copy that was modified before restore will be trusted without question. Before you bring any node back, compare the restored data against the last known good state recorded outside the cluster, and confirm who authorized the restore point.
Reusing keys from a lost node
Each Central Server node has its own signing key and address. If a lost node's key material is copied onto a replacement, the new node can sign as the old one, and any copy of that key that left your control stays valid until it is revoked. Generate fresh node keys during rebuild, and confirm with your certification authority how the old certificates will be revoked.
Weak admin account controls during rebuild
Rebuilt nodes often start with default or shared administrator access because the normal identity path is unavailable. Apply the hardening guide's baseline before the node joins the cluster: account lockout after failed logins, passwords of at least 16 characters, and key-only SSH. Verify each setting on the rebuilt host, because a recovery image or script can reintroduce weaker defaults.
- Lockout after 3 failures
- 15 minutes
Exposing backups during restore
Configuration backups contain database content, keys and settings that let someone impersonate a node or read cluster data. Backups copied to a staging host, a shared drive or an unencrypted object store during an incident often outlive the incident. Limit who can read restore media, encrypt copies at rest, and delete temporary staging copies once the node is verified.
Unchecked admin access to the database
The shared database accepts connections from every Central Server node, so a rebuilt node that is given broad database rights can change configuration for the whole cluster. Use separate database accounts per node with the minimum rights needed, and confirm that connections use TLS where your environment supports it. Review database role grants before the cluster resumes changes.
Skipping a post-recovery security check
Once service returns, teams tend to stop looking. Record which keys, certificates, accounts and backups were touched during recovery, then review each against the hardening baseline and your access records. Ask the vendor or NIIS documentation team to confirm any Central Server setting you cannot verify in your own environment.
Questions teams ask before recovering a Central Server HA cluster
What does it cost to recover an X-Road Central Server HA cluster?
Cost depends on what you already have and who does the work. The main components are your own staff time, any partner fee set by a written scope, and infrastructure you may need to rebuild, such as nodes or a database. Recovery from a current backup costs far less than rebuilding keys and configuration from memory. No public price applies to this work, and DeployOpen does not publish a price list. Ask any provider for a quote that separates one-time recovery work from recurring items such as rehearsals, monitoring and upgrades, and that states what is excluded.
How long does recovery of a Central Server cluster take?
The duration depends on which case applies and how well it has been rehearsed. The Central Server HA guide separates three cases: the configuration database and its replicas are lost, one or more nodes are lost with a backup available, and some nodes are lost without a backup. Each case has different steps and different prerequisites. Teams that have never run the procedure should expect the first run to take longer than later runs. Ask for a timeline tied to a named case and to a rehearsal result, not a generic estimate.
What drives the effort of an X-Road Central Server recovery?
Four factors drive most of the effort: backup maturity, cluster size, the state of the shared database, and the scope of rehearsal. Backups that are recent, complete and tested shorten recovery. A larger cluster means more nodes to rebuild and verify, and more per-node signing keys and addresses to check. A damaged or unclear database state adds diagnosis time. A rehearsal that covers only one case leaves the other two untested. Ask a provider how each factor affects their estimate.
Which Security Servers keep working while the Central Server is down?
Security Servers keep working on the global configuration they have already cached, for as long as that cache remains valid for their needs. Changes to members, certificates or services cannot be distributed while the Central Server is unavailable. The exact cache behavior and any time limits should be confirmed against the X-Road documentation for your release, such as the Security Server user guide, and tested in your own environment before you rely on it in a recovery plan.
What does recovery need from our own operations team?
Your team must own the decisions and the access. Expect to provide named staff who can approve the recovery case, access to the cloud accounts, data centers or hosts running the nodes, database administrators who understand the shared configuration database, and the backup media and keys. Someone must record the state before and after each step. Ask any partner which of these roles they expect you to fill, and plan who covers them outside working hours.
Can our team recover the cluster without outside help?
Yes, if your team has the skills, the documented procedure and a tested backup. The Central Server HA guide documents recovery for the three cases above, and your engineers can follow it in a non-production environment first. Teams without recent experience with the Central Server, the shared database or certificate and key handling face more risk, especially in the case where nodes are lost without a backup. Run at least one rehearsal before you need the procedure in production.
When should we bring in a partner for Central Server recovery?
Bring in a partner when recovery is needed under pressure and your team has not rehearsed it, when the backup status is unclear, or when the cluster is large enough that one person cannot hold the full state. A partner is also useful before an incident, to plan and rehearse the three cases in your own infrastructure. DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms in infrastructure you control, under a written, fixed scope. Confirm with any provider what they will deliver and what they will not.
Decision path for a Central Server cluster failure
The diagram starts when a Central Server node or the shared configuration database fails and the operator confirms what is lost. The first branch asks whether the configuration database and its replicas are gone, which is the first documented case. If the database survives, the second branch separates node loss with a backup available from node loss without one. Every path ends at the same checks: confirm that Security Servers keep serving traffic on their cached global configuration, then confirm registration after recovery. Find the branch that matches your loss before running any restore steps.
Decision path from failure detection to post-recovery checks.
How DeployOpen works on this
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including X-Road. For a Central Server HA cluster recovery, we start by establishing which failure case applies, then agree on a written scope before any change is made to a production cluster.
How we scope
- We confirm which failure applies: lost configuration database, lost nodes with a backup, or lost nodes without one.
- We inventory node versions, database layout, signing keys, backups and the Security Servers that depend on cached global configuration.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before recovery work starts.
How we build
- We rebuild or re-join nodes in the order the Central Server HA installation guide describes for the failure case at hand.
- We verify that configuration and database state match on every node before any Security Server is asked to pick up changes.
- We test recovery steps on a non-production copy of the cluster where the client's environment allows it.
How we hand over
- We deliver a runbook for the recovery path used, with commands, checkpoints and rollback steps written for your operators.
- We document the backup and restore schedule, the node replacement procedure and the checks that confirm a healthy cluster.
- We walk your platform and security teams through the results and record open risks for your own decisions.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for clusters that must stay recoverable over time.
- A retainer can cover periodic restore tests, release upgrades between supported 7.x versions and review of changes to the cluster.
- Ask any provider to confirm response expectations, service levels and what is included in writing before you sign.

