How to plan a clustered X-Road Security Server upgrade without losing exchange availability
Whether a clustered Security Server upgrade needs an offline window or can run as a rolling sequence depends on the cluster design and the target release. Settle both before you touch a node, because the answer determines how long the load balancer must send traffic to a reduced set of members and whether nodes may run different versions side by side during the window, which the release notes for your target must confirm. This page covers upgrades within 7.x only. The supported 7.x targets are 7.8.3, the current release, and 7.7.4 and 7.6.5, as listed on the X-Road releases page.
Your target matters more than it first appears. X-Road 7.8.0, released at the beginning of February 2026, is the last new-feature release of X-Road 7. NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but it has not decided how long that period will be, so ask NIIS or your ecosystem's operator for its current position before you fix a long-term 7.x target. X-Road 8 is a different case. Version 8.0.0 Beta 2 is available for testing, and the production release is scheduled for December 2026. Moving to X-Road 8 is a separate migration, covered by sibling topics, and should not be folded into a cluster upgrade window.
Before you choose, write down three facts about your own cluster: which node holds the primary role and how replication is paused and resumed, how the load balancer detects and drains a node, and how many members you can lose while still serving the exchange volume you need. Check each against your installation documentation and your load balancer's health check settings, and confirm the replication steps in the upgrade instructions for your chosen 7.x release. If any answer is unclear, resolve it first, because an offline window and a rolling sequence each fail in their own way when a step is skipped or performed out of order.
Which X-Road Security Server upgrade path a 7.x cluster can take
This table compares the release, maintenance, operating system, database and hardware conditions that affect a clustered X-Road 7 upgrade. Apply each row to every Security Server node, including the primary and each secondary, because nodes in one cluster must run supported combinations. The main takeaway is that the cluster is only ready when all nodes meet the same supported release, platform and resource checks.
| Change | Impact on a cluster | Action needed |
|---|---|---|
| 7.8.0 is the last new-feature release of X-Road 7 | Feature work in the 7 line ends at 7.8.0, so clusters on 7.8.x receive the final feature set. | Confirm the release notes for your target version, then check every node against the supported combinations. |
| 7.8.3 is the current release, with 7.7.4 and 7.6.5 also supported | Nodes can run 7.8.3, 7.7.4 or 7.6.5, but mixed versions are only acceptable during the rolling window. | Pick one target version for the cluster, confirm its release notes, and check every node against the list. |
| NIIS intends to maintain X-Road 7 with fixes and security patches beyond 2026 | Maintenance is planned, but the length of the period has not been decided, so the end date is unknown. | Confirm NIIS's current position and the target release notes, then record a review date in your upgrade plan. |
| X-Road 8.0.0 Beta 2 is for testing only | Beta 2 must stay off production nodes, and production X-Road 8 is scheduled for December 2026. | Test the migration on a non-production cluster and confirm the production date on the X-Road releases page. |
| Security Server operating systems | Each node must run Ubuntu Server 22.04 or 24.04 LTS on x86-64, or Red Hat Enterprise Linux 8 or 9. | Check every node's OS and version against this list and confirm the target release notes list the same platforms. |
| PostgreSQL requirement, including managed services | Each Security Server needs PostgreSQL, local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. | Confirm the target release's database requirements, then check each node's database location, version and connectivity. |
| Minimum memory and free disk | Each node needs at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk space. | Check every node's RAM and free disk against this list, adding space for packages, backups and monitoring add-ons. |
What to inventory and back up before the first node changes
Before the primary node is touched, the cluster needs a written record of what runs where, what state lives outside the packages, and how traffic reaches each node. These six checks cover the inventory, database, key material, access model, network path and a test cluster that lets you rehearse the upgrade. Finding a gap now costs far less than finding it with one node already upgraded.
Node inventory
Record the installed X-Road version, operating system and version, RAM and free disk on every Security Server in the cluster, including nodes that receive little traffic. The installation guide sets a minimum of 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk, and supports Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9. Keep one inventory row per node and fix any node below those figures or on an unsupported OS before the upgrade window opens. Compare each node's version with the currently supported 7.x releases.
Installation guideDatabase and backup
Each Security Server requires PostgreSQL, either local or remote, and remote options include managed services such as AWS RDS and Azure Database for PostgreSQL. Confirm which database each node uses, who owns it, and whether your backup schedule covers it. Restore a fresh backup into a scratch environment and start a node against the restored copy before the upgrade begins. A backup that has never been restored is unverified, so the restore test is the part of this check that matters most.
HSM and PKCS#11 state
If signing or authentication keys sit on a hardware security module, record the PKCS#11 driver, the token and the key labels for each RSA and EC key on every node. X-Road reaches HSMs through PKCS#11 drivers using the xroad-addon-hwtokens package, so confirm that package and driver version are installed where they are needed. Check that every node sees the same tokens and that keys are reachable after a service restart. Ask your HSM vendor which driver version supports the operating system you are moving to.
Admin access and roles
The Security Server defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Admin users authenticate through PAM, and where LDAP is used through SSSD, LDAP groups map to X-Road roles. List every local account, group and role mapping on each node, and confirm they match across the cluster. Check that the people running the upgrade hold the roles they need, and that no group change during the window removes that access.
User guideNetwork and load balancer
Record the path from the load balancer to each node: TCP 5500 for message exchange and TCP 5577 for OCSP from external networks, TCP 4000 for the admin UI, and TCP 8080 or 8443 for information system access from internal networks. Confirm which node the load balancer sends traffic to at each stage of the upgrade. Write down the health check and the steps that remove a node from rotation so routing moves away from a node before it changes. Verify these ports with your firewall and load balancer owners, not from memory.
Test cluster
Build a test cluster that mirrors the production topology: the same number of Security Servers, the same database layout, the same network rules and the same load balancer. Include the load balancer, because routing behavior only shows up when traffic passes through it. Use the test cluster to rehearse the full sequence, time each stage in your own environment, and record the rollback point you would use if a node fails. Treat a test run that skipped the load balancer as incomplete.
Clustered X-Road Security Server upgrade sequence, node by node
This sequence takes a clustered Security Server installation through a version upgrade one node at a time, so the remaining nodes can carry traffic while each one is changed, where the cluster design allows it. The primary is upgraded first, then each secondary is removed from the load balancer, upgraded, checked and returned to service. It ends with routing, log and OCSP checks that confirm the cluster is consistent on the target version.
Confirm cluster health and take a backup
Confirm that every Security Server in the cluster reports healthy, that the primary and secondaries show matching configuration, and that the PostgreSQL database is reachable from each node. Record the installed package versions on each node, then take a fresh backup of each node and of the database. Done means the health review is written down and at least one backup has been checked as readable. The rollback point for this step is the backup itself: if a later check fails before any node has changed, you have a known state to restore from.
Route traffic away from the target node
Set the load balancer so new exchanges avoid the node you are about to change, and let in-flight requests on it finish. Then pause replication if the cluster design requires it, and confirm the pause on the node. Done means the load balancer no longer routes new traffic to that node and replication reports as paused. The rollback point is the load balancer entry: returning the node to the pool restores the previous routing. Check the release notes for the target version to confirm whether replication must be paused, and how.
Upgrade the primary and verify its endpoints
Upgrade the primary node using the package steps in the release notes and installation guide for the target version. Exact commands and package steps come from those documents. Once services have started, check that the admin UI answers on TCP 4000, and that message exchange on TCP 5500 and OCSP on TCP 5577 respond from the networks that use them. Done means all three respond and the node reports the target version. The rollback point is the backup from step one, and the node stays out of the pool until these checks pass.
Resume replication and verify secondary state
Resume replication from the primary once it passes its checks, as the release notes and cluster design direct. Then check each secondary's state against the primary: configuration version, replication status, and whether the admin UI and exchange ports respond. Done means the secondaries show the state the primary expects before you move to the next node. The rollback point is the paused replication state. If a secondary does not match, leave the remaining secondaries untouched and investigate before continuing.
Upgrade each secondary one at a time
For each secondary, remove it from the load balancer pool, upgrade it, and run the same port and replication checks used on the primary. Return it to the pool only after those checks pass, then confirm that it is taking new traffic. Start the next secondary only after the previous one has returned and is serving. Done means every secondary has been upgraded in turn, with a check recorded at each return to the pool. The rollback point for each node is its own backup, and the node stays out of the pool until it passes its checks.
Finish with routing, log and OCSP checks
After the last secondary returns, confirm that the load balancer distributes traffic across all nodes and that each node answers on the expected ports. Review the Security Server logs on every node for errors raised during the upgrade, and check that OCSP responses are served from each node on TCP 5577. Done means routing, logs and OCSP all look clean across the cluster, and the upgrade record lists the target version on each node. The rollback point is the backup from step one, along with the step at which you stopped if the cluster is not yet consistent.
The load balancer should skip any node that is being upgraded
This illustrative topology places one load balancer in front of a primary and secondaries, with PostgreSQL local or remote. Member traffic arrives on TCP 5500 and 5577, information systems call in on 8080 or 8443, and administrators reach the admin UI on TCP 4000 of each node. The upgrade starts with a secondary, which the load balancer takes out of routing before its package upgrade. The primary sends configuration to every secondary, so confirm that configuration sync is healthy before the upgraded node returns to rotation. Check these ports, routing rules and database placement against your own design.
Illustrative topology: the secondary being upgraded leaves load balancer rotation.
Offline window or rolling upgrade: choosing the cluster approach
In an offline window, every node in the cluster leaves service, gets upgraded, and returns together. All members run the same version whenever exchange is live, so there is no mixed-version state to test or explain to reviewers. The price is a full interruption of message exchange for the length of the window, which the business and its counterparties must accept in advance.
- Simpler state: All nodes move from one version to the next as a group, so the cluster never serves traffic from two releases at once.
- Full exchange interruption: Consumers and providers that rely on this cluster cannot exchange messages while it is down, so send notices and prepare fallback procedures before the window opens.
- Maintenance window approval: The window needs sign-off from change management and, where agreements require it, from partner organizations.
- Before starting: Back up each node and the PostgreSQL database, confirm the target version is on the supported list, and freeze configuration changes.
- Verification gates: Confirm every node reports the target version, the load balancer routes test requests to all members, and message logs show exchanges resuming before the window closes.
Before you commit to this approach, confirm with the NIIS release notes whether mixed 7.x versions in one cluster are supported and for how long, since a window that finishes in one session may make that question moot.
A rolling upgrade takes one node out of rotation at a time, upgrades it, returns it to service, and then moves to the next. Exchange can continue through the remaining nodes, but only if the load balancer stops sending new requests to the node being changed and replication keeps configuration consistent across members. For the length of the rollout, nodes run different versions, and that period is the main risk to plan for.
- Continuous availability, conditionally: Availability depends on correct load balancer health checks and connection draining, so a node being upgraded receives no new requests.
- Replication correctness: Confirm replication is healthy before you pause it, upgrade the primary, and then upgrade the secondaries in the order you documented.
- Mixed versions in the cluster: Nodes run different 7.x versions for part of the rollout, so test every exchange path that could land on either version.
- Before starting: Document the node order and rollback point for each node, test the load balancer routes and health checks, and confirm the target version is on the supported list.
- Verification gates: After each node, confirm it reports the expected version, passes health checks, receives traffic through the load balancer, and that replication has caught up before you move on.
Before you start, confirm with the X-Road releases page and NIIS release notes whether mixed 7.x versions in one cluster are supported and for how long, because that answer limits how long the rollout may run.
The choice depends on what the business can absorb and on what your routing layer can prove. An offline window is simpler to verify and approve, while a rolling upgrade keeps exchange running but extends the period when versions differ. Use the factors below to set the constraints either approach must meet, then pick the one your environment can verify end to end.
- Tolerance for interruption: If counterparties cannot accept any gap in exchange, a rolling approach is the only option, and it works only if routing is verified.
- Routing evidence: Check whether your load balancer can drain a node and show which node served each request. Without that evidence, a rolling upgrade cannot be verified.
- Version coexistence: Ask NIIS whether mixed 7.x versions are supported for your target release and how long that support lasts.
- Rollback path: Decide how you would return each node to its previous version under each approach before the window opens.
- Team capacity: Both paths need the same backup and verification steps, but the rolling path repeats them for every node in the cluster.
Record the chosen approach in writing with your change board, and keep the NIIS answer on mixed versions as a stated condition of the plan.
When to roll back a failed node and when to roll forward
Settle the rollback option for each node before its upgrade starts, because the copy you can restore determines how far back you can go. The options are a host snapshot of the virtual machine or disk, the configuration backup taken before the change, a full Security Server backup, and a database restore from PostgreSQL. Each recovers a different layer. A host snapshot returns the operating system and installed packages, the configuration backup returns Security Server settings, a full backup returns the complete server state, and a database restore returns the stored data. Confirm which of these you have tested on a non-production node and how long each restore takes in your environment. The steps, order and limits of each option are covered in Rolling back a failed X-Road upgrade, so use that topic as the procedure and this section to choose the option that applies.
When a single node fails during a rolling upgrade, take that node out of the load balancer pool first, then decide between rollback and roll forward. Confirm that the remaining nodes serve traffic correctly on the version and configuration they ran before the change, because they form the known-good pool you route to during recovery. No rollback should start while the failed node still receives requests. Roll forward when the cause is understood, the fix is a package or configuration correction supported by the release notes, and the node passes the same post-upgrade checks as its peers. Roll back when the cause is unknown, when the node cannot reach a consistent state, or when the fix would require changing a component that other nodes depend on. Return the node to the pool only after its health checks pass.
Roll forward is usually the safer route once the primary already runs the new version, because rolling one secondary back can leave it on an older version than its peers. Confirm in the release notes whether mixed versions are supported during the change window, and plan for that check before the upgrade begins. A database restore needs particular care: if the nodes share one PostgreSQL database, restoring it affects every node, not only the failed one, so treat it as a cluster-wide decision. Confirm your database layout before the change. Record the state of the pool, the node and the database at each step so that whichever route you choose can be audited and repeated.
What makes a clustered X-Road upgrade take longer
This table lists the drivers that change how long a clustered upgrade takes and what each one adds to the work. Read each row against your own cluster, then use the last column to write that scope into your request. The main takeaway is that node count, database placement and access checks often add more work than the package upgrade itself.
| Driver | Why it changes the work | What to ask for in a quote |
|---|---|---|
| Number of nodes and secondaries | Each node is upgraded in sequence and checked before the next one starts, so effort grows with node count. | Effort per node, the sequence and checks for each node, and who runs them. |
| PostgreSQL topology, database size and message log size | A local database shares the node's disk, while a remote or managed database adds credentials and snapshot steps. Larger databases and message logs take longer to back up and restore. | Backup and restore steps for each database type, who holds database credentials, and how backup size and duration are estimated. |
| HSM and PKCS#11 integration | Keys sit behind a vendor driver added with the xroad-addon-hwtokens package, so driver support for the target release must be checked on every node. | Confirmation of driver support for the target release, a token access test on each node, and who contacts the HSM vendor if needed. |
| LDAP or SSSD role mapping | Admin logins go through PAM, and SSSD maps LDAP groups to the five X-Road roles, so each node's mapping must be tested after the upgrade. | A review of group-to-role mappings on every node, a login test for each role, and who owns directory changes. |
| Information system services and access rights | Every service and access right has to be confirmed after the upgrade, and a larger inventory multiplies the checks on each node. | An inventory of services and access rights, a post-upgrade verification list, and who signs off the results. |
| Monitoring add-ons and the RAM minimum | Monitoring add-ons raise the RAM minimum from 3 GB to 4 GB, so an undersized node may need more memory before it can be upgraded. | Confirmation that each node meets the 4 GB minimum with add-ons, and whether any memory change is in the quote or the client's scope. |
| Load balancer change control and maintenance window | Removing and restoring nodes in the load balancer needs approval, and the window must cover pausing, upgrading and verifying every node. | Who changes load balancer pools and when, the approvals required, and the window the plan assumes. |
| Test cluster availability | A rehearsal on a cluster that matches production shows the node sequence and the checks before any production change. | Whether a matching test cluster is included, who provisions it, and who pays to keep it running. |
| Mixed OS versions across nodes | Nodes on different Ubuntu or RHEL releases need separate package steps and checks, so one plan may not fit every node. | The OS version on each node, whether OS upgrades are in scope, and separate steps for each OS version. |
Questions buyers ask before outsourcing a clustered X-Road upgrade
How long does a clustered X-Road Security Server upgrade take?
The duration depends on how many nodes the cluster has, how long each change window is, how much testing runs before production, and how many approvals sit between steps. Each secondary is upgraded and checked before the next one starts, so more nodes means more cycles, and every failed check adds time. No duration is fixed on this page, so ask for a written schedule as part of the scope. It should show milestones for planning, test cluster runs, each production window, post-upgrade verification and any retest, along with the approvals each milestone depends on. Ask the provider to mark which dates depend on a change window you have not yet booked.
What does an outsourced clustered X-Road upgrade cost, and what recurs?
Cost depends on who does each phase and how many times it repeats. Planning, test cluster work, execution in the change window, verification and retest are separate pieces of effort, and a quote should price each one. Most of these are one-time costs for this upgrade. A recurring retainer applies only if you also want ongoing upgrades, support or continuous testing after the cluster runs the new release. Costs rise with node count, the number of test passes, the number of change windows and the number of information systems that depend on the Security Servers. Ask for each phase, the named responsibilities, what is one-time, what is recurring and how extra work is priced. DeployOpen does not publish a price list, and a quote follows from the written scope.
Can our own team upgrade a clustered X-Road Security Server alone?
Yes, if your team has Linux administration and PostgreSQL skills and a test cluster that matches production. The official X-Road guides cover the platform, database and network baseline, and the upgrade documentation for your target release covers the steps. The areas teams tend to underestimate are change control, reading logs during a failed node upgrade and rehearsing the rollback. Someone on your side also needs the authority to stop a window. Outsourcing fits best when you need a fixed scope with a written plan and set dates, or when internal engineers cannot commit the hours for planning, testing and the production window.
What must our team provide before a clustered X-Road upgrade starts?
Before work starts, your team provides the inputs that decide the schedule. Expect to supply:
- Access to every Security Server node, the load balancer, the PostgreSQL database and a test environment, with the accounts the work needs.
- Change windows for test runs and production, plus a fallback window for each.
- Written approvals from your change board, the service owner and any team whose systems depend on the cluster.
- An inventory of nodes, package versions, certificates, hardware security module or token setup and load balancer configuration.
Gaps in the inventory tend to move the schedule, so confirm each item before the scope is signed.
Should we move to 7.8.3 first or go straight to X-Road 8?
Start from the 7.8 line. Every X-Road 8 upgrade starts from 7.8.x, and the current release is 7.8.3, with 7.7.4 and 7.6.5 also supported. X-Road 7.8.0 is the last new-feature release of X-Road 7. NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but the length of that period has not been decided. X-Road 8 "Spaceship" is available for testing as 8.0.0 Beta 2, with production release scheduled for December 2026. A sensible sequence is to bring the cluster to a supported 7.8.x release now and plan X-Road 8 separately in a test environment. Confirm the X-Road 8 release status with NIIS before you commit a date.
Does DeployOpen issue audit reports or certifications for the upgraded cluster?
No. DeployOpen does not issue audit reports, attestations or certifications. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, change records, verification results and access documentation for the upgraded cluster. Independent auditors and certification bodies perform the assessment and issue any report or certificate. Ask your auditor which evidence they expect before the first production window. Records are easier to collect while the work happens than to rebuild afterward, so agree the evidence list in writing as part of the scope.
What goes wrong during a rolling X-Road Security Server upgrade?
The problems that cause the most damage appear after a node has changed, so plan a check before each step. Common failures include a node that fails its post-upgrade checks, replication that does not catch up after it resumes, configuration that differs between nodes and a database change that one node expects and another does not. Verify the primary before any secondary moves, then verify each secondary before the next one starts. Decide in advance who can stop the window and what state counts as safe to continue, so the decision is not made under time pressure.
How do we keep load balancer routing correct during a rolling upgrade?
Drain each node from the load balancer before its upgrade, and confirm the balancer has stopped sending it new requests. Check the node's health and the ports the balancer depends on, such as TCP 5500 for message exchange, before returning it to the pool. Keep the order fixed and written: pause replication, upgrade the primary, verify it, then upgrade each secondary in turn. Record the pool membership at each step, so the team can see which nodes served traffic during every phase. Test the drain and return steps on the test cluster before the production window, because they are easy to get wrong under time pressure.
How DeployOpen works on this
DeployOpen treats a clustered Security Server upgrade as a change to a live data exchange service. We agree the upgrade order, replication pause and load balancer checks in writing before work starts, then run the work inside your infrastructure and leave a runbook your team can reuse.
How we scope
- The written scope lists every Security Server node, its operating system, its PostgreSQL location and the load balancer.
- We agree whether the upgrade runs offline or as a rolling upgrade, and which maintenance window your team approves.
- Engagements are fixed-scope, so deliverables, the cutover sequence and acceptance checks are agreed in writing before work starts.
How we build
- Record the installed 7.x version on each node and check it against the supported releases: 7.8.3, 7.7.4 and 7.6.5.
- Pause replication, upgrade the primary first, then each secondary, and check that the load balancer routes only to healthy nodes.
- Take a rollback point before each node, such as a host snapshot or database backup, and note its restore steps.
How we hand over
- Deliver a runbook with the node order, replication commands, load balancer changes and checks used during the upgrade.
- Post-upgrade verification covers node versions, message exchange tests and load balancer health checks on every node.
- Your team receives the runbook, the agreed configuration records and the verification results for its audit file.
How we support
- Ongoing support, upgrades and continuous testing for the cluster are available as a retainer after handover.
- Confirm with your team how the X-Road 8 timeline affects the cluster plan before the upgrade is scheduled.
- Later changes, such as a new node or a new release, are scoped as separate written work.

