Why midPoint task management decides how long your reconciliation runs take
A reconciliation or recompute run that overlaps business hours or blocks other work is usually a task management problem before it is a hardware problem. In midPoint, a task is a unit of background work such as an import from a target system, a reconciliation that compares resource accounts with midPoint's view of identities, or a recompute that re-evaluates assignments and mappings across many objects. Parallel processing changes how that work is divided: worker threads process parts of the same job at once, and in a multi-node deployment, worker tasks can be spread across nodes so that one long job does not monopolize a single server.
Plan task management deliberately when the identity population is large, when one midPoint instance synchronizes many target connectors, or when the change window is short enough that a run finishing late has consequences for the next business day. Those conditions raise the number of objects each run must touch and the number of systems that can slow it down, including the target systems themselves, which may rate-limit or lock accounts during a bulk pass. A single-node setup can be enough for a smaller population with few connectors and a generous window, and adding nodes or threads without that need can add coordination work without a matching gain. Your own environment decides which side of that line you are on.
Task processing options and when each fits
This table compares the four ways midPoint can process a reconciliation, import or recompute task, with what each option changes and where it adds load. Read each row as a step up in parallelism, and check the trade-off column before raising thread counts or node counts.
| Option | What it changes | Workload it suits | Main trade-off |
|---|---|---|---|
| Single-node execution | One node runs the task and its work items in one process | Small populations, first test runs, and tasks against slow or fragile targets | Longest elapsed time, and a single node carries all the load |
| Worker threads within an activity | Several threads on one node process items of the same activity at once | Large sets on one node where the target can absorb more concurrent requests | More concurrent calls to the shared database and target system, which can cause throttling or lock contention |
| Multi-node distribution through worker tasks | Worker tasks are spread across cluster nodes that share the central database and Quartz scheduling | Very large populations and jobs that need to finish within a fixed window | Coordination overhead, cluster setup effort, and the combined load on the database and targets from all nodes |
| Auto-scaling on multi-node tasks | midPoint adds or uses worker tasks as the job runs, when worker tasks are defined | Multi-node jobs with uneven work where fixed worker counts would sit idle | Less predictable load on targets, so confirm the behavior in a test environment before production use |
| Auto-scaling disabled per activity | Fixed behavior for a specific activity while other activities still scale | Activities that write to rate-limited or sensitive target systems | Requires manual sizing of workers for each activity |
| Confirm before choosing | Target system rate limits, database connection capacity and maintenance windows | Any multi-node or threaded design | Ask your target system owner and DBA for limits before raising concurrency |
How a multi-node task is distributed across nodes
The diagram starts with a task submitted on one midPoint node. Quartz, which midPoint uses for distributed task scheduling, hands the work to the cluster, and worker tasks are picked up by other nodes. Every node reads and writes the shared central database, and each node calls the target system through its ConnId connector. Both the database and the target system are where capacity runs out first, so check them before adding nodes or threads. This is an illustrative view of the documented architecture, not a sizing guide.
Illustrative view of the documented multi-node task architecture; the shared database and target system limit throughput.
How auto-scaling changes worker allocation in midPoint
Auto-scaling in midPoint applies only to multi-node tasks that have worker tasks defined, and it can be switched off per activity. That scope matters for planning: a single-node task does not gain extra workers from auto-scaling, and a multi-node task without worker tasks defined will not be redistributed by it. Before you rely on the feature, confirm in the auto-scaling documentation how the scaling decision is made, which task types and activities it covers in your midPoint version, and how it interacts with the worker thread settings you have chosen for each node.
A large import is a typical case for keeping auto-scaling enabled. The work is bulk, the target system can usually absorb the extra throughput, and the operations team benefits from the task finishing sooner across the nodes already in the cluster. A sensitive recompute is a different case. If a recompute touches many assignments and pushes changes to downstream systems, you may want a fixed, predictable worker count so that load on the database and connected targets stays within limits you have tested. For that activity, disable auto-scaling in the activity definition and set the worker count yourself. Illustrative example: an import of an HR feed runs with scaling on during a maintenance window, while a monthly recompute of role assignments runs with scaling off on a fixed worker count agreed with the database owner.
Write down, per activity, whether auto-scaling is on, the expected worker count, and the peak load the target systems can take. Test the choice on a non-production copy with realistic data volumes and watch database connections and target system response times during the run. Then confirm the behavior in the documentation for your exact midPoint release, since scaling defaults and task options change between versions. Review the choice again after each upgrade, because a setting that was safe on one release may no longer match the load profile of the next.
Four decisions that limit midPoint task throughput
Throughput for reconciliation, import and recompute tasks depends on four choices that interact: how many nodes take part, how the work is divided, whether auto-scaling is active, and how much the target system and repository can absorb. Changing one shifts load onto the others, so decide them together and test with production-like data volumes before the first full run.
Nodes in the cluster
Every node that joins a multi-node deployment shares the same central database and task scheduling through Quartz, so adding nodes adds parallel capacity but also adds database connections and cache invalidation traffic between nodes. Decide which nodes are allowed to run tasks and confirm that each one can reach the shared PostgreSQL server. The usual symptom of too many nodes is lock contention and slower commits, not faster tasks. Check task progress per node before adding another.
System requirementsWorker task splitting
Worker tasks divide one large activity into smaller units that run in parallel, which is how a multi-node task spreads its work. Too few workers leave nodes idle, while too many create queued sub-tasks, more repository writes and more connector sessions against the same target. Choose the split so each worker handles a bounded slice of the object set. Watch for a long tail where one worker holds most of the remaining objects, which usually means the split is uneven.
Auto-scaling per activity
Auto-scaling lets midPoint add or remove workers for multi-node tasks that define worker tasks, and it can be disabled per activity. It helps when load is uneven across a run, but it makes throughput less predictable and can start more parallel work than the target system expects. Decide activity by activity: keep it on for internal recompute work and consider turning it off for imports from fragile sources. Record which setting each activity uses so that a slow run can be explained later.
Auto-scaling docsConnector and repository capacity
Every worker opens connector calls to the target system and writes results to the PostgreSQL repository, so the slowest of those two limits the whole run. Ask the target owner how many concurrent sessions and requests the system tolerates, and size the database connection pool and server capacity for the combined load. The symptoms are timeouts from the target, rising task error counts, and long database waits even when nodes are underused. Raise parallelism only after both limits are confirmed in a test run.
Setting up multi-node task distribution step by step
This sequence takes a midPoint cluster from a verified multi-node foundation to a tested, multi-node task that spreads its work across nodes without overloading the target system. Each step closes with a check so the team knows whether to continue.
Confirm the cluster prerequisites
The platform or infrastructure team checks the cluster against midPoint's system requirements: a sticky HTTP load balancer in front of the nodes, a shared central database that all nodes use, cache invalidation between nodes over HTTPS, and Quartz configured for distributed task scheduling. Confirm each item in your own environment rather than assuming the defaults match. The step is done when every node reports the same midPoint version and can reach the shared database and each other's cache invalidation endpoints.
Verify node registration and scheduling
Open the task view in the administration interface and confirm that every node in the cluster is registered and visible to the scheduler. Check the node status pages and the logs of each node for scheduling or database connection errors at startup. Do not proceed if a node is missing, because work cannot be distributed to a node the scheduler does not see. The step is done when all expected nodes appear as active.
Define the parent task with worker tasks
The integration or identity engineer creates the reconciliation, import or recompute task and configures it as a multi-node task with worker tasks defined for its activities. Record the resource, object class and any filter or scope so the task's purpose is documented before it runs. Auto-scaling applies to multi-node tasks with worker tasks defined, so confirm which activities should use it and note any activity where it should be disabled. The step is done when the task definition saves cleanly and the worker configuration is recorded in your change documentation.
Run the task on a test copy of production data
Run the defined task against a non-production copy of the data that matches production in volume and shape, and against a test instance of the target system where possible. Start with a limited scope if the task supports one, so the first run is observable without touching the full population. Watch the target system's own logs and load metrics during the run, not only midPoint's. The step is done when the task completes or stops in a known state and the target system shows no unplanned spikes in requests or errors.
Check distribution in the task view
Open the task view for the running multi-node task and confirm that worker tasks are being picked up by more than one node. Look at which node is processing each worker and whether progress counters advance on several nodes at the same time. If all work lands on a single node, review the scheduling configuration and the prerequisites from the first step before continuing. The step is done when the task view shows work distributed across at least two nodes.
Confirm the target system stays within its agreed load
Compare the target system's request rate, connection count and error rate during the distributed run against the load the system owner agreed to accept. Ask the target system owner to confirm the limit in writing before the production run, because the right ceiling depends on the system and its contract, not on midPoint. If the load exceeds the agreed level, stop the task, reduce the scope or adjust the activity settings, then rerun the test. The step is done when the system owner signs off on the observed load.
Document the approved configuration for production
Record the final task definition, the node topology, the scope used in testing, the observed distribution and the target system load figures in the runbook. Note any activity where auto-scaling was disabled and why. Capture the steps a операtor must follow to stop the task if the target system shows distress. The step is done when the runbook is reviewed by the platform team and the integration owner and is stored with the change record.
Choosing task settings by workload and environment
The first full reconciliation after go-live usually touches every account on every connected resource, so it is the run most likely to load target systems and the midPoint repository at once. The priority is controlled throughput and a clean baseline, not speed. Plan the run in a window where source and target systems can absorb the load, and agree with the application owners what will be changed on the first pass.
- Run one resource at a time: Start with a single low-risk resource, confirm the results, then add the others so that a problem stays contained.
- Test thread counts in a non-production copy first: Raise worker threads gradually and watch connector latency and database load before you adopt a value.
- Run in simulation or preview mode where possible: Review the proposed changes before midPoint applies them to production accounts.
- Watch for mass changes: Check safety thresholds and the number of accounts that would be disabled or removed before allowing the run to apply changes.
- Confirm backups and monitoring first: Make sure you can restore the repository and can see task errors in real time.
Before the run, confirm with your platform team the connector limits of each target system and who will stop the task if a target slows down.
A routine nightly reconciliation should be quiet, predictable and finish well before business hours. Its settings should be stable and tuned to the normal account population, so most of the work is checking for drift and handling small exceptions. The main risk is a nightly run that quietly grows longer over time until it overlaps with the next schedule or with backups.
- Fix the schedule and avoid overlap: Keep runs on separate windows so that two heavy tasks do not compete for the same database and connector endpoints.
- Keep thread counts conservative: Adopt the values proven in the first full run and change them only after a documented test.
- Track run duration as a trend: A gradual increase usually points to growing data, a slow connector or missing indexes, so review it weekly.
- Review error counts each morning: Repeated errors on the same accounts often indicate a correlation or mapping problem that will not fix itself.
- Limit scope where it helps: Narrow the run to the resources or object types that changed, if your design supports it.
Confirm with the operations team who receives task failure notifications and what the escalation path is when a run does not complete.
A recompute after a role model change re-evaluates assignments and mappings for every user affected by the change. The effect can be broad and hard to reverse, because a small edit to an inducement or mapping can add or remove entitlements across many identities. Prioritize a clear understanding of the blast radius before the task starts, and treat the run as a change to production access.
- Estimate the affected population first: Use search or reporting to count the identities that the changed role or policy touches, and compare that number with what you expected.
- Preview before applying: Check the projected changes for a sample of users from each affected department and role family.
- Test the change in a copy of production data: Run the recompute against a restored copy so you can see the resource effects before they reach live systems.
- Stage the rollout by population: Recompute a small group first, confirm the results with the business owners, then continue.
- Plan for rollback: Keep the previous role definition available and confirm that reverting it will not trigger a second mass change.
Before starting, confirm with the role owners and the security team who signs off on access removals, and whether any approval or certification workflow must be paused.
A lab or test environment exists to prove the task configuration and to practice operations safely. Its settings can differ from production, but they should be documented so that results carry over. The main risks are false confidence from a small dataset and connectors pointed at real systems by mistake.
- Use realistic data shapes, not production data: Build test populations that cover the edge cases your correlation rules must handle, such as duplicates, leavers and missing attributes, and mask any personal data.
- Point connectors only at test endpoints: Check connector configuration and target hostnames before every run, since a copied configuration can reach production.
- Measure, then record the settings: Record the thread counts, distribution choices and timings you tried, so the production team can repeat or reject them.
- Rehearse failures deliberately: Stop a task mid-run, simulate a slow target and practice recovering the task state.
- Keep the environment version aligned: Run the same midPoint and Java versions as production, or the test results will not transfer.
Confirm with the platform team which settings are environment-specific and which must match production before you treat a lab result as evidence.
Stopping runaway tasks and handling task errors
Reconciliation, import and recompute tasks change real accounts in target systems, so a task that misbehaves can do damage long before anyone reads a log. The cards below cover four risks we see most often in midPoint operations, each with the warning sign, the safe first response and what to record. Treat them as a runbook outline to adapt to your own task inventory and change process.
Task running past its window
A task that was expected to finish within a maintenance window is still running when business hours start, or it keeps processing the same objects in a loop. The warning sign is a progress counter that stops advancing while the task still shows as running, or a total that grows past the number of accounts in the source. Check the task's current activity and its recent processing rate in the administration interface before deciding anything. If the task is still making progress but will not finish in time, pause it rather than letting it compete with interactive users. Record the task name, the time it was paused, the activity it was in and the reason for the decision.
Error counts growing unnoticed
Some tasks finish with a high error count while the overall status still reads as completed, so nobody acts on the failures. The warning sign is an error count that rises between runs or a closed task with unresolved failed objects. Open the error records for the task and group them by cause, such as a missing attribute, a connector timeout or a correlation conflict. Fix the shared cause first, then rerun only the affected objects where the task supports it. Record the error categories, how many objects each affected, and the date each was resolved.
Task overloading a target or database
A task with too many worker threads can exhaust connection pools on the midPoint database or flood a target system with requests until its API throttles or its directory slows for other users. The warning sign is rising response times from the target, database connection waits, or connector timeouts that appear only while the task runs. Reduce the activity's parallelism or pause the task, then confirm the target has recovered before resuming. Check with the owner of the target system before raising thread counts again. Record the thread settings before and after the change and the target system's observed response behavior.
Repeated changes after partial failure
When a task fails partway through a batch, a restart can apply the same change to objects that were already updated, which matters most for provisioning actions such as group membership or entitlement grants. The warning sign is duplicate entries, repeated notifications or a count of changes larger than the count of affected objects. Before restarting, compare the target state for a sample of objects with what midPoint believes it has set, using a read-only check in the target system. Restart only after you confirm which objects still need the change. Record the task run identifier, the objects checked, the target state found and the decision to restart or reconcile.
Questions teams ask about midPoint task management
What does midPoint task management work cost?
The cost depends on how much of the environment needs tuning and how much testing it takes to change it safely. Cost follows scope: the number of midPoint environments (for example, development, test and production), the number of connected target systems and their data volumes, the complexity of the role model and mappings that reconciliation and recompute tasks exercise, and the volume of test runs needed to prove a change. Most engagements are fixed-scope, so the written scope should list each environment, each task type in scope and the test evidence you will receive. Ask for the quote to separate one-time tuning work from any recurring retainer for monitoring or upgrades. DeployOpen does not publish a price list.
How long does midPoint task tuning take?
Tuning is easier to plan in phases than in days, because each phase depends on evidence from the one before. A typical sequence is a baseline of current task durations, errors and resource use; changes to worker threads, multi-node distribution and auto-scaling settings, tested in a non-production environment; and a controlled rollout to production with a monitoring window afterwards. The baseline phase depends on how much task history you keep, and the rollout depends on your change windows. Ask a partner to state the phases, the exit criteria for each and the dependencies on your staff, rather than a single number of days.
What does the client need to provide for tuning?
The work goes faster when the client prepares access and decisions before the engagement starts. Typically this includes:
- Read access to midPoint task and audit history, plus database access for the PostgreSQL repository and any audit database, under the controls your security team sets
- A non-production environment with representative data volumes, so task runs can be measured safely
- Named owners for each connected target system, who can confirm load limits and maintenance windows
- Agreed change windows for production rollout and a rollback plan
Confirm each item with your own change board and database team before work starts.
Can our internal team tune midPoint tasks without a partner?
Yes, if your team has midPoint administration skills, Java and PostgreSQL experience, and access to a test environment that matches production. Internal teams usually need time to learn how task thread counts, multi-node distribution and auto-scaling interact with the connectors and the database. A partner is most useful when the environment is large, when production changes are risky, or when your team needs an independent review and documented evidence. Evolveum also offers training and support subscriptions, which can complement an internal team. Decide based on the skills you have, not on the tool alone.
How do we ask a partner for a written task management scope?
Ask for a scope document that names each task type in scope (reconciliation, import, recompute and any others), each midPoint node and environment, and each connected target system. The document should list the deliverables, such as a baseline report, configuration changes, a runbook for stopping runaway tasks, and test evidence. It should also state what is out of scope, the client responsibilities listed above, the change windows, and the acceptance criteria. Ask how the partner will handle a change that makes results worse and how a retest is included. A fixed-scope agreement signed before work starts makes these points easy to compare across bids.
What goes wrong when tuning midPoint tasks in production?
The most common problems come from raising parallelism faster than the target systems or database can handle. Too many worker threads can overload a connector's source system, cause lock contention in the repository, or create task errors that retry and extend the run. Multi-node distribution can also surface cache or scheduling issues if nodes are not configured consistently. Stopping a runaway task should be part of the runbook before any change is made, so operators know how to halt a task safely and what state it leaves behind. Test each change against a copy of production load and keep the previous settings ready for rollback.
Does auto-scaling in midPoint need to stay enabled?
Auto-scaling applies to multi-node tasks that have worker tasks defined, and you can disable it per activity. Whether to keep it on depends on the activity: it can help distribute work across nodes, but some activities may be easier to reason about with fixed behavior while you are diagnosing errors. Check the Evolveum auto-scaling documentation for the exact conditions and settings in your midPoint version before you change anything. Test the choice on each activity type in a non-production environment, and record which activities you disabled and why so the setting does not stay in place by accident.
How DeployOpen scopes and delivers midPoint task management work
DeployOpen approaches midPoint task management as a fixed-scope piece of work agreed in writing before any changes are made. We map the reconciliation, import and recompute tasks in your environment, then build and document the task configuration inside your own infrastructure so your team can run it afterward.
How we scope
- Inventory the tasks that run in your midPoint deployment, including reconciliation, import and recompute jobs and their schedules.
- Confirm your midPoint version, Java runtime, node count and PostgreSQL setup, since these determine which task options apply.
- Agree in writing which resources, activities and worker settings are in scope, with deliverables and timelines fixed before work starts.
How we build
- Configure worker threads, multi-node distribution and auto-scaling settings for each activity in a staging environment that mirrors production.
- Test runaway-task stop procedures and task error handling against realistic data volumes before changes reach production.
- Record every configuration change in version-controlled files so the settings can be reviewed, reproduced and rolled back.
How we hand over
- Deliver a runbook covering task schedules, expected behavior, error states and the steps to stop a task safely.
- Walk your operations team through monitoring task progress and reading task error reports in your own environment.
- Document open questions, such as vendor confirmations on connector behavior, so your team knows what still needs checking.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants external help after handover.
- Review task configuration again when you change midPoint versions, add connectors or grow the number of nodes.
- Quote ongoing work from the written scope so cost follows the systems and activities you actually operate.

