When midPoint high availability becomes a requirement
A midPoint deployment needs high availability once its provisioning, access requests and access certification campaigns are business-critical enough that a single node outage stops joiners, movers and leavers from being processed. The question for the team is how many nodes it needs and how the database will survive a failure. midPoint's documented multi-node model answers the first part with a sticky HTTP load balancer in front of several nodes that share one central database. Nodes invalidate each other's caches over HTTPS, and Quartz handles distributed task scheduling so that scheduled reconciliations and campaigns are not run twice.
Before committing to that design, confirm the current multi-node requirements in the midPoint system requirements for your target release, including the Java version, the recommended separate PostgreSQL server and the network paths between nodes. Decide how many nodes you need for your peak load and for maintenance windows, and whether the nodes sit in one data center or span zones. Write down your recovery time and recovery point objectives for the identity repository, because those numbers drive the database design more than the application tier does.
The hard part is that the database becomes the single point to protect. Every node depends on it, so replication, failover, backups and restore tests must be designed and rehearsed for PostgreSQL, not assumed from the application layer. Cache invalidation and distributed task behavior also need explicit verification: test that a change made on one node is visible on the others, that a task is claimed by exactly one node, and that a node failing mid-task leaves the work recoverable. Plan these tests before go-live, because they fail quietly under normal traffic.
Which midPoint components a cluster depends on
A multi-node midPoint cluster is only as available as its weakest shared part. The nodes, the load balancer, the PostgreSQL repository, the cache invalidation path and the task scheduler each need a deliberate setting in your environment before you rely on failover.
midPoint nodes
Each node is a running midPoint instance that serves the user interface, API and connector work against the same shared state. Run the nodes on Linux in a virtual machine or from Docker images, and keep node builds identical so that every node runs the same midPoint release and configuration. Confirm the Java runtime on each node: midPoint 4.11 and later recommends Java 25 (Java 21 supported), while 4.10 and older recommend Java 21 (Java 17 supported).
System requirementsSticky HTTP load balancer
The load balancer distributes user sessions across nodes and must keep each session pinned to the node that created it. Confirm that stickiness works for the midPoint web interface and for any API clients you run, and test what happens when a node is removed mid-session. Decide how health checks mark a node as down so that traffic moves before users see errors.
Shared PostgreSQL repository
PostgreSQL is midPoint's native repository database, and every node reads and writes the same central database. Evolveum recommends running it on a separate database server rather than on a node, so plan the database as its own availability tier. Confirm replication, failover and connection limits with your database team before you size the node count.
Repository requirementsCache invalidation over HTTPS
Nodes keep local caches, so a change made on one node must reach the others or they will act on stale data. midPoint sends cache invalidation between nodes over HTTPS. Confirm that node-to-node traffic is allowed through firewalls and internal networks, that certificates are trusted by every node, and that you test a change on one node and observe it on another.
Quartz task scheduling
Quartz schedules midPoint tasks such as reconciliation and synchronization across the cluster, so a task is not meant to run twice on two nodes at once. Confirm which nodes are allowed to execute scheduled tasks, how a failed node's tasks are picked up by another node, and where job state is stored. Review task schedules after any change in node count.
Decisions to make before building a midPoint cluster
This table compares the main choices for a multi-node midPoint cluster: how nodes are packaged, how the database is made highly available, where stickiness is enforced, and how the repository is backed up. Read each row for when the option fits and what it asks of your team after go-live, such as on-call load, patching and restore testing.
| Decision | Option and when it fits | What it costs the team to run |
|---|---|---|
| Node packaging | Virtual machines fit teams that already patch and image Linux servers through a standard process and want node configuration managed the same way as other servers. | Your team owns OS patching, Java runtime updates matched to the midPoint release, and image rebuilds for each node. |
| Node packaging | Docker images fit teams with a container platform and an image pipeline, and make identical nodes easier to replace during upgrades. | Your team owns image scanning, registry access, container host patching and the orchestration rules that keep nodes sticky and stateless. |
| Database HA, managed service | A managed PostgreSQL service fits teams that want the provider to handle replication, failover and minor patching, provided the service meets your data residency and network rules. | Lower on-call effort for failover, but you depend on the provider's failover behavior, maintenance windows and restore options. Confirm these in writing. |
| Database HA, self-run replication | Self-run primary and standby PostgreSQL fits organizations with database administrators who already operate replication and need control over placement, air-gapped or on-premises networks. | Your team owns replication monitoring, failover runbooks, split-brain prevention and regular failover drills. This adds on-call load. |
| Load balancer placement | A sticky HTTP load balancer in front of the nodes fits most clusters, and its session stickiness setting must be confirmed against the midPoint documentation for your release. | Your network team owns health checks, certificate termination, stickiness settings and the failure behavior when a node drops out. |
| Repository backup | Scheduled logical or physical PostgreSQL backups with off-host copies fit teams whose recovery target is defined by the business, not by the platform. | Your team owns backup schedules, retention, encryption keys and the storage account. Backups without restore tests give little assurance. |
| Restore testing | Regular restores into a separate environment fit any cluster, and should include the midPoint configuration directory and the repository together. | Restore drills take engineer time each period. Record the time taken and the gaps found so the runbook improves. |
| Distributed task scheduling | Quartz-backed scheduling fits clusters where tasks should run on one node at a time, and needs a shared database that all nodes reach. | Your team monitors task health and stuck jobs after node restarts, and confirms the scheduler settings for your release. |
How requests, cache messages and tasks flow across the cluster
The diagram starts with users and administrators reaching a sticky load balancer, which routes each session to one midPoint node. Nodes share a single PostgreSQL repository, and a backup path sits beside it in the database zone. Cache invalidation messages pass node to node over HTTPS, and Quartz uses the shared database to decide which node runs each scheduled task. Check that the balancer keeps sessions on one node, that every node points at the same database, and that the cache and task paths stay inside your internal network.
Request, cache and task paths across a midPoint cluster, with trust boundaries marked.
Build sequence for a midPoint cluster
This sequence takes a midPoint deployment from a single database and one node to a cluster where nodes share one repository, see each other's changes, schedule tasks once, and keep user sessions stable behind a load balancer. Each step ends with a check you can record before moving on.
Prepare the PostgreSQL repository and backups
Your database team, with the midPoint team, provisions PostgreSQL on a separate database server, as midPoint's system requirements recommend, and creates the midPoint repository database and its role. Configure backups and a tested restore procedure for that database before any node connects to it. Done means a restore of a recent backup into a scratch instance completes and midPoint's schema can be read from it. Confirm the supported PostgreSQL versions for your midPoint release in the system requirements.
Install identical midPoint and Java builds on each node
Your platform team installs the same midPoint release on every node, using the same packaging method (Linux virtual machine or Docker image), with the Java version the release documentation specifies for it. Matching versions matter because nodes exchange cache and task state. Done means every node reports the same midPoint version and Java runtime in its logs or administration pages, and the configuration files are identical except for node-specific settings. Check the supported Java versions for your release in the system requirements.
Point every node at the shared repository
Set each node's repository connection to the shared PostgreSQL database and start them one at a time. Confirm the first node initializes or upgrades the schema, then confirm each later node starts without altering it. Done means every node reaches a running state, the repository connection is logged as successful on each one, and a test object created through one node's interface is returned by a second node. Confirm the exact repository configuration keys in the release documentation.
Configure cache invalidation between nodes
Enable node-to-node cache invalidation over HTTPS so that a change made on one node clears stale cached data on the others. Use the certificates and trust settings your security team approves for internal node traffic. Done means a change to a test user on one node, such as a changed attribute, is visible on a second node without a restart. If the change is not visible, check the node addresses, TLS trust and firewall rules before continuing. Confirm the configuration keys in the release documentation.
Enable Quartz task scheduling across nodes
Enable the Quartz-based scheduler in the shared configuration so that nodes coordinate which node runs each scheduled task. Create a simple test task with a known schedule and output. Done means the task runs once per scheduled occurrence and not once per node, and the result is recorded in the task history. Also confirm that stopping the node currently running the task leaves the task to be picked up by another node. Confirm scheduler settings in the release documentation.
Configure the sticky HTTP load balancer
Place the nodes behind an HTTP load balancer configured for session stickiness, so that a user's session stays on the node that created it. Your network team owns the load balancer, and the midPoint team supplies the health check endpoint and the session cookie behavior to expect. Done means a logged-in administrator sends repeated requests to the same node, and a request on a fresh session is routed to a healthy node. Record the health check result for each node.
Run a controlled node restart
Take one node out of the load balancer, restart it, and return it to service, then repeat for each node in turn. Watch the scheduler, cache and session behavior during each restart, and confirm that a task scheduled during the restart is not lost. Done means each node restarts without a data change being lost, the load balancer drains and restores it cleanly, and the restart steps are written into your runbook. Repeat the test after any upgrade, and confirm backup restore timing against your recovery objectives.
How the cluster differs for single node, virtual machine and container deployments
A single midPoint node suits pilots, proof-of-concept work and non-critical environments where a short outage is acceptable. No load balancer is needed, so client traffic goes straight to one node. The database can run on the same host for a pilot, but midPoint recommends PostgreSQL on a separate database server, and that recommendation should hold even for a pilot if the data will later be reused.
- Load balancer: none required, and session stickiness does not apply.
- Database placement: a single PostgreSQL instance, ideally on a separate server rather than the midPoint host.
- Upgrade path: stop the node, upgrade, and restart, with a maintenance window and a tested backup taken beforehand.
- Verification effort: smallest, since cache invalidation and distributed task checks do not apply.
- Recovery: a restore from backup is the only recovery path if the node or database fails.
Before relying on a single node for anything beyond a pilot, confirm the recovery time you can accept with your business owners and the Java version your release requires under the midPoint system requirements.
A multi-node cluster on virtual machines runs several midPoint nodes on Linux VMs behind a sticky HTTP load balancer, all sharing one central PostgreSQL database. Nodes exchange cache invalidation messages over HTTPS and coordinate scheduled work through Quartz. The load balancer must keep each user session on the same node, and the nodes must be able to reach each other on the cache invalidation path.
- Load balancer: a sticky HTTP load balancer, with health checks that match the midPoint endpoints you configure.
- Database placement: one shared PostgreSQL service, with its own high availability and backup design (covered in the database section of this topic).
- Upgrade path: rolling upgrades are possible only if the nodes stay compatible during the change, so test that sequence in a non-production cluster first.
- Verification effort: higher, because you must confirm session stickiness, cache invalidation between nodes and that each scheduled task runs once.
- Network controls: confirm node-to-node HTTPS paths and certificates with your network and security teams.
Confirm with the Evolveum documentation how your chosen release handles rolling upgrades before you commit to a maintenance plan.
A multi-node cluster from Docker images follows the same logical design as the VM model: sticky load balancing, one shared PostgreSQL database, node-to-node cache invalidation and Quartz-based task scheduling. What changes is how nodes are started, configured and replaced. Images are rebuilt and redeployed rather than patched in place, which shifts effort toward image management, configuration injection and secret handling.
- Load balancer: still a sticky HTTP balancer in front of the container nodes, with the balancer configuration managed as code.
- Database placement: the same external PostgreSQL service, reachable from every container network segment.
- Upgrade path: replace nodes with a new image version, which needs a tested image tag, configuration compatibility checks and a clear rollback image.
- Verification effort: adds checks on container restart behavior, configuration injection and that secrets are not baked into images.
- Orchestration: Kubernetes or other orchestrators need platform-specific design, which the supplied facts do not cover, so confirm it with your platform team.
Before committing, confirm which image sources and orchestrator your platform team approves for use in your infrastructure, including any air-gapped mirroring requirements.
What drives the effort and cost of a midPoint cluster
This table lists the main drivers that change the effort and running cost of a multi-node midPoint deployment, with a way to keep each one down. Read it as a checklist for scoping a quote: the drivers that grow with environments, database design and evidence requirements usually matter more than the node count itself.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| Nodes and environments | Each node, plus test, staging and production copies, needs its own configuration, patching, Java runtime and monitoring. Node count and environment count multiply the work. | Standardize node images or containers, keep one configuration source for all environments, and confirm the node count your production load needs before adding more. |
| Database HA design | midPoint uses a shared PostgreSQL repository, ideally on a separate server. Replication, failover and connection handling add design and testing work, and the team may have to build this from scratch. | Reuse the database platform your organization already operates and runs, and confirm with the database team who owns failover before design starts. |
| Backup and restore testing | A backup that has never been restored is not proven. Restore tests, including checks that midPoint starts and reconciles against restored data, take recurring effort. | Automate restore tests on a schedule, and define a restore scope that covers the repository and the configuration held outside the database. |
| Scheduled tasks and connectors | midPoint uses Quartz for distributed task scheduling. The more connectors and reconciliation tasks that run on schedules, the more care is needed to confirm each task runs on exactly one node. | Group tasks by connector, document which node or cluster setting runs each one, and test failover of long-running reconciliations before go-live. |
| Customization that affects caching | Custom mappings, object templates and extensions can change how often objects are loaded and invalidated across nodes, which affects cache consistency and load. | Keep customizations within a documented list, test cache invalidation between nodes after each change, and review custom expressions during each upgrade. |
| Compliance evidence | Auditors may ask for proof of availability design, change records, backup restore results and access to audit logs. Producing this evidence is ongoing work, not a one-time task. | Agree the evidence list early, generate restore and failover records automatically, and confirm with your auditor which artifacts they expect. |
How to secure the cluster's network paths and secrets
A multi-node midPoint cluster exchanges sessions, cache invalidation messages and database traffic across several network paths, and each one carries identity data or credentials. The cards below cover the paths and stores to lock down first, from the load balancer to the repository database and the files nodes read at startup.
TLS on the load balancer and node traffic
Terminate TLS at the sticky load balancer for user and API sessions, then confirm the cache invalidation path between nodes also runs over HTTPS, since midPoint uses HTTPS for that exchange. Check certificate chains on every node, not only the front door, and confirm which internal certificate authority your nodes trust. A mismatch here often shows up as cache drift between nodes rather than as a clear error.
System requirementsRepository database network placement
Place the PostgreSQL repository on a separate database server reachable only from midPoint nodes and named administrator hosts. Restrict the database port with firewall or security group rules that list node addresses explicitly, and keep the database out of any segment that hosts user-facing or batch workloads. Test the rules from each node after every network change, because a failed node often looks like a slow one.
Database account privileges and credentials
Give midPoint its own PostgreSQL role with rights to the midPoint schema only, and keep migration rights for upgrade windows in a separate account that is not used at runtime. Store the database password outside application files in a secrets manager or a root-readable file, and rotate it with a planned restart of every node. Ask your DBA to confirm that backup and monitoring accounts are separate from the runtime role.
Protecting configuration and startup secrets
Nodes read their database connection, keystore and connector settings at startup, so these files are the highest-value target in the cluster. Keep them identical across nodes under version control, restrict file permissions to the service account, and inject passwords from a vault or environment variable instead of committing them. Verify that the file hashes match on every node after each change, since a node that starts with stale settings can pass health checks.
Restricting access to node management endpoints
Each midPoint node exposes management and monitoring interfaces that are not meant for end users. Bind those interfaces to an internal address, route them only through administrator networks or a bastion, and block them at the load balancer so that public requests never reach them. Ask your team to list every endpoint each node serves and confirm which ones the load balancer forwards.
Logging administrative actions on every node
Administrative changes made on one node must be traceable across the whole cluster, so ship logs from each node to a central store with consistent timestamps and node identifiers. Confirm that the audit trail records changes to configuration, connectors and role assignments, and that the logs are kept outside the database they describe. For the administrator permissions that produce these events, see the separate security hardening topic.
How to test that midPoint high availability works and fails safely
The purpose of this test plan is to prove that a multi-node midPoint cluster behaves as one system and that a single failure does not corrupt data, duplicate work or silently stop identity changes. Start with cache invalidation: make a change on one node, such as updating a user's attribute or an assignment through the user interface, then read the same object through each other node and through the load balancer. The change should be visible everywhere without a restart. Repeat the check after changing a role or an object template, because cached configuration is the easiest thing to leave stale. Confirm that the node-to-node invalidation traffic runs over the HTTPS path you configured, and that the nodes can reach each other on it through your network policies.
Next, test sticky sessions and scheduled tasks. Log in as an administrator, note the node that served the session (the load balancer access log or the node's own request log will show it), and confirm that subsequent requests stay on that node until the session ends. Then confirm that a scheduled reconciliation or recompute task runs once per schedule across the cluster, not once per node. Quartz is the scheduler here, so check the task history in midPoint and the Quartz tables in the repository database for a single execution record per run. Finally, stop one node while a long task such as a bulk reconciliation is running. A safe result is that the task is either resumed or restarted by another node, that it does not run twice in parallel, and that the final object state matches a run that was never interrupted. Confirm the exact recovery behavior for your midPoint version before you write the pass criteria.
The last two tests cover the database and recovery. Simulate a database failover on the standby setup you chose for PostgreSQL, then confirm that midPoint nodes reconnect without manual steps and that no task or change is lost or half applied. Then restore the most recent backup into a separate, isolated environment and start midPoint against it. Verify that the restored instance has the expected objects, configuration and audit records, and that it does not contact production connectors. A test fails when a change is missing on one node, when a task runs twice, when a node stop leaves objects in an inconsistent state, or when a restore cannot be started without undocumented fixes. Record the test version, node count, configuration files, timestamps, log excerpts, task history and the restore checksum as evidence, and keep the results for your auditors.
Questions teams ask before building midPoint high availability
Can our own team build a midPoint cluster without a partner?
Yes, a team with the right skills can build a cluster in-house, but it is a multi-discipline job, not a single change to a working install. The cluster needs a sticky HTTP load balancer, a shared PostgreSQL repository that sits on its own database server, node-to-node cache invalidation over HTTPS, and Quartz-based task scheduling across nodes. Most teams underestimate the testing: failover, node restarts during running tasks and connector behavior under load all need to be proven before production. Ask whether your team has run a clustered application with session affinity and a database failover before, since those patterns carry most of the risk.
What skills does our staff need for midPoint high availability?
The work spans four skill areas, and a gap in any one of them slows the project. Your team needs PostgreSQL administration for replication, backups and failover; Linux administration for the nodes, Java runtime settings and service management; load balancer configuration for sticky sessions and health checks; and identity skills to understand how midPoint tasks, connectors and synchronization behave when a node stops. Java 25 is recommended for version 4.11 and later, and Java 21 for 4.10 and older, so the platform team should confirm the runtime for the chosen release. If one of these areas is thin, plan for training or outside help before the build starts.
How long does a midPoint cluster build take, and what sets the duration?
The duration depends on the scope of the identity project around the cluster, not on the cluster software alone. The main drivers are the number of nodes and environments you need, whether database high availability and backups are being built from scratch, how many target systems and connectors must be tested under cluster conditions, the state of your existing infrastructure, and the approval steps your change process requires. Your internal review and testing time usually adds more than the installation itself. For a structured estimate, read the implementation plan topic on scoping a midPoint project, and confirm the schedule against your own environment before committing to a date.
Does an Evolveum support subscription change how we build a cluster?
A subscription changes who you can call when something breaks, not what the architecture must look like. Evolveum offers Product Support subscriptions for resolving product bugs, with an 8x5 next-business-day or 24x7 SLA, and Platform Subscriptions that add feature development and roadmap influence. The support subscriptions page lists no prices, so request a quote from Evolveum for the level you need. Note that support covers midPoint product issues; your own load balancer, PostgreSQL and infrastructure remain your responsibility unless a separate agreement covers them. Confirm exactly which components each subscription includes before you rely on it for a cluster.
Which midPoint release line should we choose for a cluster?
Choose a long-term support release for a production cluster unless you need a specific feature from a newer line. According to the releases page, midPoint 4.8 (Curie) is a long-term support release supported until 17 October 2028, while midPoint 4.10 (Braille) is a feature release supported until 26 November 2027. Midpoint 4.9 support ends 18 October 2026, and 4.11 (Čapek) is planned for 21 October 2026. Factor in the Java version each line needs, the upgrade effort of moving a cluster between releases, and the time between your go-live and the end of support. Check the current release page before you finalize the decision.
What should a fixed-scope quote for cluster work include?
A useful quote lists each deliverable and the environment it applies to, so you can compare offers on equal terms. Ask for the node count and environments covered, the load balancer and sticky session configuration, the PostgreSQL topology including replication, failover and backup and restore testing, the Quartz task scheduling setup, and the cache invalidation configuration between nodes. The quote should also state which tests prove failover works, who runs them, what documentation is handed over, and what happens to configuration during later upgrades. Clarify what is one-time work and what recurs, such as monitoring, backup verification and support. Ask the vendor to state any assumptions about your infrastructure, since unclear assumptions are a common source of change requests.
Which parts of a midPoint cluster fail most often in operation?
The failures that cause the most trouble are usually at the seams between components rather than inside midPoint itself. Common problems include load balancers that do not keep a user on the same node, so the session breaks, database failovers that the application does not handle cleanly, and nodes that cannot reach one another for cache invalidation because of firewall or TLS settings. Scheduled tasks can also run twice or stall after a node restart if distributed scheduling is not verified. Test each of these deliberately, including a planned node restart during a running synchronization, and record the expected behavior so operators know what a healthy failover looks like.
What to monitor, back up, upgrade and document after go-live
After go-live, the operating routine for a clustered midPoint deployment rests on four signals: node health, load balancer status, database replication and backup success, and the outcome of scheduled tasks. Each node should be checked individually, not only through the load balancer, because a node that is down or dropping cache invalidation messages can leave users seeing stale data while the front door still looks healthy. Scheduled tasks run on the Quartz scheduler shared across the cluster, so a task that fails or stops producing output is often the first visible sign of a database or node problem. Assign an owner to each signal, agree the thresholds in advance, and review the results on a fixed cadence. Confirm with your monitoring team which metrics and health endpoints your deployed midPoint version exposes, since the exact set depends on the release and deployment method.
Backup has two parts that both need to be proven. The first is a regular backup of the PostgreSQL repository, which holds the state of the whole cluster, so the node file systems are not the recovery source. The second is a restore test: take a backup, restore it into an isolated environment, start midPoint against it, and confirm that users, roles, resources and task history look correct. Record how long the restore took and what manual steps were needed. Also confirm that the backup covers the configuration files and any secrets or keys the nodes depend on, because a database restore alone may not bring a node back into service. Repeat the restore test after any significant change to the database or the midPoint version.
Upgrades across a cluster need a planned rolling sequence, with one node upgraded and checked at a time while the others keep serving requests. Before planning, check the support end dates for your current and target releases on the midPoint releases page, because a release nearing end of support changes how much time you have to act. Java requirements also change between releases, so confirm the runtime against the system requirements before the first node is touched. Document the node inventory (hostnames, versions, Java runtime, role in the cluster), the load balancer configuration including sticky session settings, the backup and restore runbooks, and the results of each failover test. Keep these records current, since they are what an operator or auditor will ask for first. For release selection and the upgrade test plan, see the midPoint upgrades and support topic.
How DeployOpen scopes, builds and hands over midPoint clusters
DeployOpen plans, implements, hardens, backs up, documents and supports midPoint inside the client's own infrastructure, including multi-node clusters with a sticky load balancer and a shared PostgreSQL repository. Each engagement starts with a written, fixed scope so the cluster design, test plan and handover are agreed before work begins.
How we scope
- Confirm the midPoint release line, such as 4.8 LTS or a feature release, and its Java version before any node is built
- Map where the cluster runs, including virtual machines or Docker images, load balancer, and network paths between nodes
- Agree in writing which database HA and backup targets, failover tests and recovery objectives are in and out of scope
How we build
- Configure a sticky HTTP load balancer and verify that sessions stay on one node during administrator and self-service logins
- Set up the shared PostgreSQL repository on a separate database server, with replication and backups defined in the design
- Test node-to-node cache invalidation over HTTPS and confirm Quartz distributed task scheduling runs each job once across nodes
How we hand over
- Deliver a runbook covering node restart order, adding or removing a node, and cache and task troubleshooting steps
- Document the failover and restore tests performed, with observed results, so your operations team can repeat them
- Walk your platform and database teams through monitoring, backup restore procedures and the upgrade path agreed in the scope
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, based on the written scope
- Re-run failover and restore tests when the Java version, database version or midPoint release changes
- Coordinate with Evolveum product support subscriptions for product bugs, where your organization holds one

