midPoint server and database sizing

Size midPoint and PostgreSQL from your user count, audit retention and availability needs, using Evolveum's reference guidance as the starting point and a written sizing request when your profile falls outside it.

On this page

How to plan midPoint server and database sizing before you buy hardware

Start with the number of identities midPoint will manage, the number of nodes you plan to run, how long you keep audit and history records, and how available the service must be. Those four inputs drive the server and PostgreSQL capacity you request, and they should be written down before anyone prices a virtual machine, a cloud instance or a Kubernetes resource request. Evolveum's system requirements assume that only a reasonably small amount of history, such as audit records, is kept. If your organization needs longer retention, that extra history has to be added to your database sizing rather than assumed away, so confirm your retention period with your compliance and records owners first.

Use this page before procurement, cloud sizing or when you write a Kubernetes resource request, because each of those commits you to memory, CPU and storage numbers that are hard to change later. Check the reference table in the midPoint system requirements against your user count, then confirm with Evolveum or your partner how heap settings, the database server and a separate audit database should be sized for your case. Plan a test run with realistic data volumes so you can measure disk growth from audit records before you commit to storage.

Ask for custom sizing when your identity count is large, when you run several nodes with high availability, when you expect heavy reconciliation or synchronization load, or when audit retention is long or regulated. Those cases change the picture enough that a generic table is not enough, and a partner or Evolveum should review the design. Ask the reviewer to state the assumptions behind any figure they give you, including retention, peak task load and growth over the planned life of the hardware, so you can check each assumption against your own environment.

Sizing inputs and when each option fits

This table compares the main sizing choices for midPoint and its PostgreSQL database, from the reference tier to custom sizing. Read each row for when the option fits, what it changes in servers or database disk, and what you must confirm before choosing it.

Sizing choiceWhen it fitsWhat it changesWhat you must confirm
Standard reference tier by user countIdentity population is close to a tier in Evolveum's published reference table and the workload is typicalSets starting CPU, memory and database sizing for the midPoint server and PostgreSQL hostCurrent identity count, expected growth over the planned life of the platform, and which tier Evolveum's table lists for that count
Single nodeSmall user base, a single operating window for changes, and tolerance for a restart during maintenance or node failureOne application server and one database host, with the lowest server count and simplest operationsAcceptable downtime during patching, recovery time expectations and whether scheduled reconciliation runs can wait for a restart
Multi-node clusterHigher availability needs or heavier task load, with nodes sharing one central databaseTwo or more midPoint nodes behind a sticky load balancer, with shared database capacity and cache invalidation between nodesNode count, load balancer design, network path between nodes and the team's capacity to operate a cluster
Short audit retentionCompliance needs only recent audit history and disk growth must stay predictableSmaller audit tables and less database disk, with lower storage cost over timeRetention period required by policy or auditors, and who owns the decision to purge audit records
Long audit retentionRegulators or internal policy require audit history over many yearsAudit tables grow over time, so database disk, backups and restore times must be sized for the full retention periodRetention length in years, expected event volume per user, backup window and restore time limits
PostgreSQL standby for availabilityRecovery targets require a database that can take over quickly after primary failureAdds a second database server with replication, plus disk and CPU on the standby; automatic failover needs external toolsRecovery time and recovery point targets, replication mode, and who operates failover tooling
Custom sizing requestEnvironment has unusual constraints, such as air-gapped hosts, shared hypervisors, very large identity counts or strict retention and recovery targetsA written sizing plan from the implementation team tailored to the environment rather than a published tierUser count by source system, growth forecast, retention period, recovery targets, hosting platform and maintenance windows

How midPoint nodes, PostgreSQL and audit data fit together

The diagram starts with users reaching midPoint through a load balancer, which spreads requests across one or more midPoint nodes, each with its own JVM heap. Every node reads and writes the shared PostgreSQL repository, so adding nodes adds load on that one database. Audit records follow a separate path into an audit database or a separate area on the same server, and retention settings grow that store over time. Before sizing, check the node count, the retention period for audit data, and whether a hot standby and backup storage are included in the plan.

Components that drive sizing, with node count loading the repository and retention growing audit storage.

Using Evolveum's reference table without guessing

Start by fixing the baseline before you read any sizing figure. Confirm the midPoint version and the Java release you will run, because Evolveum's guidance is tied to them: midPoint 4.11 and later recommend Java 25 (Java 21 supported), while 4.10 and older recommend Java 21 (Java 17 supported). Record the version the table applies to, and check whether your chosen midPoint release is still within its support window on Evolveum's midPoint releases page. A table written for one release line is a weak basis for a production decision on another.

Next, read the assumptions behind the numbers. The sizing guidance on Evolveum's system requirements page assumes only a reasonably small amount of history, such as audit records, is kept, and states that longer retention must be added to the database sizing. Write down your planned audit and task history retention in days or years, and ask your team how many audit events per user and per day your design will generate. If your retention exceeds the assumption, the table's database figure is a floor, not a plan.

Then compare your workload with what the table does not describe in detail. Count the roles and assignments you expect, the number of resources and connectors, how often reconciliation and live sync run, and how many custom mappings and expressions will execute on each change. Each of these affects load on the midPoint nodes and on PostgreSQL in ways that a user count alone does not capture. Get the current reference table directly from Evolveum rather than from third-party blogs or forum posts, and keep a dated copy with your architecture record so the next reviewer can see which figures you relied on.

What drives audit retention disk growth

Database disk use for midPoint is set by several inputs that grow at once: how long records are kept, how many events each identity change produces, how many resources are connected, and how much task history accumulates. Backup and WAL retention then sit on top of all of them. Evolveum's sizing assumes only modest history, so each driver below should be measured in a pilot before the storage figure is trusted.

Audit retention period

Audit records are kept for as long as your retention policy says, and every extra day of retention adds rows that stay in the audit database until a cleanup removes them. Evolveum's sizing assumes only a reasonably small amount of history, so longer retention must be added to the database estimate. Ask the team to confirm the retention setting in their environment and to measure how many audit rows a week of normal activity writes before fixing a disk size.

System requirements

Event volume per lifecycle change

Each joiner, mover or leaver event can produce several audit entries, depending on how many mappings, assignments and resource changes it triggers. Direction is simple: more lifecycle activity from HR feeds or bulk reconciliations means more audit rows per day. In a pilot, run a representative set of hire, transfer and termination cases and count the audit entries each one produces, rather than assuming a single event per change.

Number of managed resources

Every connected target system adds its own provisioning, synchronization and reconciliation events to the audit trail. A deployment with many resources writes more records for the same number of identities, so resource count changes growth even when user count stays flat. Ask the team to list each resource with its expected sync frequency, then measure audit output per resource during the pilot to see which connectors dominate the disk use.

Task and reconciliation history

Scheduled tasks, reconciliation runs and their results are stored in the repository, and frequent or large runs accumulate history quickly. The effect is a steady rise in repository size that continues after user count levels off. In the pilot, record how many task and reconciliation executions run per day, how long each result is kept, and whether a cleanup routine is planned to remove old entries.

Backup and WAL retention

PostgreSQL write-ahead log (WAL) archives and base backups are needed for point-in-time recovery, and they consume storage outside the live database. Keeping a longer recovery window multiplies the space needed, even if the audit data itself stays the same size. Ask the team to confirm the recovery window required by their policy, the archive location and the backup schedule, and to measure WAL volume per day during the pilot.

Continuous archiving docs

Sizing sequence from user count to written sizing

This sequence turns a user and resource count into a written sizing decision for midPoint and PostgreSQL, with audit retention set before disk and memory are chosen so the plan can be checked against a pilot.

  1. Confirm user and resource counts

    Agree the number of identities, the number of accounts across each target system, and the expected yearly change in joiners, movers and leavers with the HR owner and the identity owners of each connected system. Record the counts with their source and date, and separate active identities from leavers still held in the repository. Done when the counts are signed off by both owners and the list of connected resources matches the integration scope.

  2. Pick the midPoint and Java versions

    Choose the midPoint release that will run in production, based on the support dates in the releases page, and the Java version recommended for that release. Midpoint 4.11 and later recommend Java 25, while 4.10 and older recommend Java 21. Confirm the supported PostgreSQL major version that will hold the repository. Done when the release, Java runtime and PostgreSQL version are written in the design record with their support end dates.

  3. Read the current reference guidance for the release

    Open Evolveum's system requirements page for the chosen release and note the reference sizing for your user range, the assumptions behind it and the hardware it describes. Compare those assumptions with your own counts, connectors and task load. Ask Evolveum or your partner to confirm anything the reference does not cover, such as heavy reconciliation or large numbers of accounts. Done when each assumption is marked as matching or differing from your environment.

  4. Set the audit and history retention policy in writing

    Decide how long audit records, task history and other repository history must be kept, which records go to the separate audit database, and who approves changes to that period. Evolveum's sizing assumes only a reasonably small amount of history is kept, so any longer requirement from your compliance or legal owners must be stated here. Done when the retention periods and their owners are recorded in a signed policy document that the sizing review can reference.

  5. Size PostgreSQL server and disk with retention added

    Size the dedicated PostgreSQL server, including CPU, memory and storage, starting from the reference guidance and adding the storage needed for the retention period set in the previous step. Include growth from joiner, mover and leaver volume, database backups and write-ahead archives, and leave headroom for maintenance and major upgrades. Done when the disk plan shows the retention volume explicitly and the reviewer confirms that the database disk figure includes it.

  6. Set JVM heap and container memory limits

    Set the midPoint JVM heap through JAVA_OPTS or the equivalent setting for your platform, and leave enough memory beyond the heap for the JVM itself and the operating system. If you run midPoint in containers, set the container memory limit above the heap size so the process is not stopped by the runtime. Repeat this for each node in a cluster. Done when the heap, memory limit and node count are written in the configuration with the reason for each value.

  7. Validate the sizing in a pilot with monitoring

    Run a pilot with a representative subset of identities and connectors, and monitor CPU, heap use, database load, disk growth and task duration over a period long enough to see retention and reconciliation effects. Compare observed growth with the disk plan and adjust the heap, memory and storage values where they diverge. Done when the pilot results, the adjusted values and the sign-off by the platform owner are stored with the sizing record, and the next review date is set.

How single-node and clustered midPoint change the sizing

A single node runs one midPoint process on a dedicated Linux virtual machine or container and connects to one PostgreSQL server. The web interface, the in-memory caches, the connector work and every scheduled task live in that one JVM, so sizing is about that process and the database it depends on.

  • Memory: The JVM heap is the main lever. Caches are local to the node, so the heap must hold the working set for your user count and the largest connector result sets you expect during reconciliation.
  • Database connections: One connection pool serves all work. Size it against the PostgreSQL connection limit and leave headroom for the audit database, administrative sessions and maintenance.
  • Scheduling: Reconciliation and other long tasks compete with interactive administration on the same process. Schedule heavy tasks outside business hours and watch their duration over time.
  • Failover: No second node can take over. Recovery means restarting the process or restoring the database, so the recovery time depends on procedures you have written down and timed.
  • Database: One PostgreSQL server holds the repository and, if you separate it, the audit database. Without a standby, the database is a single point of failure.

Before you fix heap and pool settings, check them against Evolveum's system requirements for your user count, and time a full restart from a cold start.

Operational risks of an undersized database or heap

Most sizing failures in midPoint show up slowly: disks fill, queries lengthen, and backups stretch past their windows before anyone notices. Each risk below pairs a signal you can monitor with the planning decision that keeps it from becoming an outage, so sizing is reviewed as retention and user counts change.

Database disk filling from audit retention

Evolveum's sizing assumes only a reasonably small amount of history, such as audit records, is kept. Longer retention has to be added to the database sizing, and it is easy to skip when audit is switched on without a retention decision. Watch the growth rate of the audit database and the free space on the PostgreSQL volume each week. Decide the retention period and cleanup method before go-live, and size the volume for that period plus headroom for spikes during bulk reconciliation runs.

System requirements

Slow queries and task runs

An undersized repository shows up as long-running searches in the GUI, reconciliation tasks that take longer each cycle, and growing backlogs in scheduled jobs. Track task duration trends and slow query logs on PostgreSQL. Plan CPU, memory and storage IOPS for the expected user count and task schedule, not for the day-one count. Ask for the sizing guidance for your user count before you choose instance classes, and re-test after large imports or new resources are connected.

JVM memory pressure and restarts

A heap set larger than the container memory limit causes the process to be killed by the orchestrator, often with no clear application error. A heap that is too small causes long garbage collection pauses and failed requests under load. Check GC logs, restart counts and container memory usage together. Set JVM heap options with explicit headroom below the container limit, and confirm the values against the midPoint release you run, because Java requirements differ between 4.10 and 4.11.

Backup windows that grow with retention

A full backup of a database that holds years of audit history takes longer each month, and a backup that overruns its window can overlap with business-hour reconciliation. Measure the duration of each full and incremental backup and compare it with the window you agreed. Decide the audit retention and partition strategy with backup time in mind, and confirm that restore time, not only backup time, fits your recovery objectives.

No tested recovery path

A single PostgreSQL server holding the only copy of identity data turns a disk failure or corrupt volume into a full identity outage. PostgreSQL does not detect a failed primary and promote a standby by itself, so failover needs external tooling and a runbook. Record the recovery point and recovery time you need, and test a restore into a separate environment on a schedule. Keep point-in-time recovery archives in place so a restore does not depend on the last full backup alone.

Continuous archiving docs

Questions buyers ask about midPoint sizing and cost

How much does a midPoint sizing exercise cost?

DeployOpen does not publish a price list, so the fee comes from a written scope. The main drivers are how many environments are sized (production, test, disaster recovery), whether the workload data already exists or must be collected, how many nodes and database servers the design covers, and whether audit retention is decided before the work starts. Ask any quote to list the deliverables (sizing worksheet, disk projection, JVM and PostgreSQL settings, a review of the assumptions), which parts are one-time, and whether a retest or resize after a pilot is included. Sizing is a one-time cost; infrastructure and database growth recur and are paid by you through your own cloud or data center budget.

How long does midPoint sizing take?

The duration depends on how quickly the inputs can be gathered and how many environments are in scope. A single production design with clear user counts and a settled retention rule moves much faster than a design that needs identity source profiling, audit volume estimates and recovery target workshops. Ask for a timeline tied to the written scope, with the dates on which you must supply each input. No general duration is given here because none has been researched for this page.

What information must our team provide for midPoint sizing?

Prepare the inputs before the first meeting so the sizing is based on your environment rather than assumptions. Typical inputs include:

  • Counts of identities, accounts per target system and roles or assignments expected per user
  • HR feed frequency and the expected volume of joiner, mover and leaver events
  • Audit and history retention rules, including how long records must be kept and who needs them
  • Recovery time and recovery point targets for the repository and audit database
  • Planned number of nodes, environments and whether a standby database is required

If some counts are unknown, ask the provider to show how each assumption changes the result.

Can our internal team size midPoint using Evolveum's guidance alone?

Yes, a team with database and Java operations experience can start from Evolveum's system requirements, which list the sizing assumptions and note that longer audit or history retention must be added to database sizing. The gap is usually the workload model: how many changes per day your HR and target systems generate, how many accounts each connector reads, and how fast audit records grow. Internal teams often validate with a load test in a non-production environment before committing to production capacity. An external review is most useful when the design carries compliance or uptime obligations that the team must defend to auditors.

When should we ask Evolveum for custom sizing?

Ask Evolveum when the deployment falls outside the reference assumptions: very large identity populations, many connectors with heavy synchronization, long audit retention, multiple nodes with strict uptime targets, or unusual data volumes from a single source. Evolveum's support and platform subscriptions are the vendor route for product guidance, and the subscriptions page lists support options without prices, so confirm the current terms directly. Keep the request concrete: include the assumptions, expected growth and the test results you already have.

How does our PostgreSQL version choice affect disk and upgrades?

The version sets how long you receive security fixes and how much upgrade work you face later. PostgreSQL 18 is supported until November 14, 2030, 17 until November 8, 2029, 16 until November 9, 2028, 15 until November 11, 2027 and 14 until November 12, 2026, while 13 and earlier are unsupported. Minor releases do not change the storage format, but a major upgrade needs a planned path such as pg_upgrade or logical replication. Ask the sizing provider to state which version the disk projection assumes and what the upgrade window looks like, since choosing an older version can force an early migration.

Does midPoint sizing change after a pilot?

Yes, the first sizing is an estimate, and a pilot measures real synchronization volume, task duration, audit growth and database size. Expect the pilot to change JVM heap settings, database memory, retention decisions and disk allocation. Plan the pilot with measurable exit criteria and budget a resizing review as part of the written scope, so the change is handled as planned work rather than an emergency. Ask whether the quote includes a post-pilot review or whether it is a separate engagement.

How DeployOpen scopes midPoint sizing and deployment

DeployOpen plans and implements self-hosted midPoint in your own infrastructure, including the server and database sizing that depends on your user count, audit retention and environments. We agree the sizing inputs and deliverables in writing before work starts, then document and support the result.

How we scope

  • Collect user counts, connected systems, audit retention needs and expected growth before any sizing decision is made.
  • Confirm the midPoint release line, Java version and PostgreSQL major version that the written scope will target.
  • Agree in writing whether the engagement is fixed-scope and whether ongoing support will follow as a retainer.

How we build

  • Size midPoint nodes, JVM heap settings and the PostgreSQL server against the agreed inputs and Evolveum's reference guidance.
  • Model audit retention separately so disk growth from history is planned rather than discovered later in production.
  • Test the sizing under representative load in your environment and record the results alongside the configuration.

How we hand over

  • Deliver a sizing document covering assumptions, resource settings, disk growth estimates and the triggers for resizing.
  • Provide configuration files, runbook steps for changing heap and storage limits, and the checks to run after each change.
  • Walk your platform and database teams through the handover so they can review the sizing and operate it independently.

How we support

  • Revisit sizing when user counts, connectors or audit retention change, or when you move to a new midPoint or PostgreSQL release.
  • Plan sizing checks alongside upgrades, since each supported release line can change resource needs.
  • Offer ongoing support, upgrades and continuous testing as retainers, with scope agreed in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.