When a self-hosted OpenProject needs more web and background worker capacity
Slow pages and delayed work in a self-hosted OpenProject usually have different causes, and they call for different fixes. Scaling web workers and scaling background workers are separate levers. Web workers answer the HTTP requests from people using the interface and API, so slow page loads point toward them. Background workers run the jobs that happen after a request returns, so emails that arrive late, project copies that hang or backups that never finish point toward them. Before changing anything, identify which symptom your users are reporting, because adding capacity to the wrong tier will not clear the other one.
Background workers handle four kinds of work: email delivery, project copying, backups and resource deletion. When these jobs queue faster than workers can process them, the backlog grows and users see the delay. OpenProject exposes the path /health_checks/worker_backed_up, which signals that background workers may need scaling. Use it as an early warning and check it on a schedule, not only during an incident. A backed-up result tells you the queue is behind, but it does not tell you why. Pair it with the worker logs to see whether the jobs are slow, failing and retrying, or simply arriving faster than the current worker count can handle.
Web capacity is controlled by settings such as OPENPROJECT_WEB_WORKERS, OPENPROJECT_WEB_MIN__THREADS and OPENPROJECT_WEB_MAX__THREADS, while background concurrency is controlled by OPENPROJECT_GOOD__JOB__MAX_THREADS. Packaged installs add background workers with the openproject scale worker=N command. Each change affects memory use and database connections on the same host or cluster, so confirm the total load on PostgreSQL before raising counts. The OpenProject scaling documentation lists the current options for your install method. Verify the exact names and behavior against your release, since the Kubernetes replica settings follow a different pattern.
How web requests and background jobs share the instance
Requests start at users and reach the web workers, where Puma threads serve pages within the limits set by OPENPROJECT_WEB_WORKERS, OPENPROJECT_WEB_MIN__THREADS and OPENPROJECT_WEB_MAX__THREADS. When a request needs slow work such as sending email, copying a project, running a backup or deleting resources, it queues a job. Background workers, sized by OPENPROJECT_GOOD__JOB__MAX_THREADS, pick those jobs off the queue. Check the worker_backed_up health check, which reads queue state, to see whether the background workers are keeping up.
Web requests queue slow work for background workers, which the health check watches.
Which concurrency setting to change and when
This table compares the four concurrency settings and the packaged-install scale command, with the symptom that points to each and what raising it costs. Read it from the symptom column: find what you are seeing, then check the trade-off before changing anything. Raise one setting at a time and watch database connections and memory after each change.
| Setting | What it controls | Symptom that points to it | Trade-off of raising it |
|---|---|---|---|
| OPENPROJECT_WEB_WORKERS | Number of web worker processes serving HTTP requests | Requests queue or time out under load while the database and host still have headroom | Each added worker adds memory use and database connections, so the database limit may be reached first |
| OPENPROJECT_WEB_MIN__THREADS | Minimum threads each web worker keeps running | Idle-time response is fine but bursts of concurrent requests stall at the start of a spike | Raises baseline memory and connection demand on every worker even when traffic is low |
| OPENPROJECT_WEB_MAX__THREADS | Maximum threads each web worker can grow to under load | Saturation during peaks, with request timings rising in logs while CPU is not fully used | Higher ceiling allows more simultaneous database work per worker, which can overload PostgreSQL during peaks |
| OPENPROJECT_GOOD__JOB__MAX_THREADS | Concurrent threads processing background jobs such as email, project copies, backups and deletions | The worker backlog health check reports backed-up jobs, or emails and project copies wait for long periods | More threads process jobs faster but add database connections and can slow interactive requests on shared hosts |
| openproject scale worker=N (packaged installs) | Number of background worker processes started by the packaged service | Same backlog signal as above, when thread tuning alone does not clear the queue | Each process adds memory and database connections; confirm the command and its limits in the release you run |
How scaling differs across packaged, Docker and Kubernetes installs
Packaged installs (the .deb and .rpm packages for 64-bit Linux) run OpenProject as system services on one host. Background worker capacity is changed with the openproject command-line tool rather than by editing service files by hand. The worker count is set with openproject scale worker=N, where N is the number of background worker processes you want running. Web and thread settings are handled through the configuration variables described in the scaling documentation, so the change survives package upgrades.
- Worker count: Run
openproject scale worker=Nand then confirm the new processes with the worker service status on the host. - Web and thread settings: Review
OPENPROJECT_WEB_WORKERS,OPENPROJECT_WEB_MIN__THREADSandOPENPROJECT_WEB_MAX__THREADSbefore raising any count, since they control the web side of concurrency. - Background thread limit: Check
OPENPROJECT_GOOD__JOB__MAX_THREADSif you increase workers, because thread limits set how much each worker can process at once. - Host capacity: Confirm the host has enough cores and memory for the added processes, using the sizing guidance for your user count.
- Restart and verify: Watch the worker backlog health check after the change to see whether queued jobs are draining.
Confirm the exact command syntax and variable names against the scaling documentation for your deployed version before you change production.
Docker and Compose deployments do not use the packaged openproject scale command. Capacity is changed through environment variables set on the OpenProject containers, and the stack is recreated so the new values take effect. The same settings that govern web workers, web threads and background thread limits apply, but they are passed in your Compose file or container environment. Because each container may run both web and background roles depending on the image and configuration, confirm which container runs the worker process before you tune it.
- Environment variables: Set
OPENPROJECT_WEB_WORKERS,OPENPROJECT_WEB_MIN__THREADSandOPENPROJECT_WEB_MAX__THREADSin the environment section of the service definition. - Background concurrency: Set
OPENPROJECT_GOOD__JOB__MAX_THREADSfor the worker container and check it against the host's cores. - Separate worker containers: If your layout runs workers in their own service, scale that service and set its variables separately from the web service.
- Recreate, do not just edit: Apply the change with a container recreate, then confirm the values inside the running container.
- Memory headroom: Each added process uses memory, so re-check the host against the sizing guidance before adding several at once.
Confirm the exact variable names and service layout for your image version in the scaling documentation, and keep the previous environment file so you can roll back.
Kubernetes installs use the OpenProject Helm chart to scale horizontally. Web and background workloads are separate deployments, so each has its own replica count in the chart values. Adding replicas adds pods that share the same database and attachment storage, which means shared storage and database connection limits become the constraint, not only the pod count. Changes are made in version-controlled values files and applied with a Helm upgrade.
- Replica settings: Find the web and worker replica keys in the chart values for your chart version and set them in your values file, not with ad hoc
kubectl scalecommands. - Resource requests and limits: Set CPU and memory requests for each workload so the scheduler places pods on nodes with room for them.
- Database connections: Check that the external PostgreSQL instance can handle the connections created by additional pods.
- Shared storage: Confirm that attachment storage supports the access mode the pods need when they run on several nodes.
- Rollout and rollback: Apply the change with a Helm upgrade and keep the previous release revision available for rollback.
Confirm replica and variable names against the scaling documentation and the chart for the version you deploy, because chart values change between releases.
How to scale OpenProject workers in sequence
This sequence moves a slow OpenProject instance from a measured baseline to a verified capacity change, so each new worker or thread setting is tied to a visible bottleneck and confirmed afterward. It keeps database connection limits in view so a capacity gain does not become a new failure point.
Record a baseline before changing anything
Before touching any setting, capture the current state: the output of
/health_checks/worker_backed_up, the number of web and background processes, the current values of the worker and thread variables, and the time it takes to complete a few representative jobs such as sending a notification email or copying a project. The person running the change, usually the platform or OpenProject administrator, keeps this record in the change ticket. The step is done when you can say which health check reading and which job timings you are trying to improve, and anyone else on the team could reproduce the baseline.Read the worker backlog check and logs
Query the worker backlog health check and review the worker and web logs for the same time window. A backed-up reading points to background workers falling behind, while slow page responses with no backlog point toward web capacity or other causes. Look for repeated job failures in the logs, since retries can look like a capacity problem. The step is done when you have written down whether the evidence points to web or background work, and the reason for that conclusion.
Identify whether web or background work is the bottleneck
Decide which tier to change first. Web concurrency settings affect how many requests the application handles at once, while background worker counts affect how many queued jobs run in parallel, covering email delivery, project copying, backups and resource deletion. If the backlog is in background jobs, changing web threads will not clear it. The step is done when one tier is named as the bottleneck and the other tier is recorded as unchanged for this round.
Change one setting at a time
Adjust a single variable, such as the background worker count or the good_job maximum thread count for a packaged install, and leave the rest alone. Use the documented controls: the
OPENPROJECT_WEB_WORKERS,OPENPROJECT_WEB_MIN__THREADS,OPENPROJECT_WEB_MAX__THREADSandOPENPROJECT_GOOD__JOB__MAX_THREADSsettings control concurrency, and packaged installs scale workers withopenproject scale worker=N. Record the old and new values. The step is done when the change is written in the ticket with its reason, so a later reader can tell which change produced which result.Check PostgreSQL connection headroom
Every additional worker or thread can open database connections, so compare the new total against the connection limit configured on the PostgreSQL server and any connection pooler in front of it. Confirm the limit with your database administrator and check current connection usage during peak load. If the new total leaves little margin, reduce the increase or raise the limit before continuing. The step is done when you have a written calculation or observed usage figure showing the new counts fit within the database limit with margin your team accepts.
Restart or redeploy as the install method requires
Apply the change the way your install method supports it. Packaged installs use the
openprojectcommand and its services, Docker installs need the container configuration updated and recreated, and Kubernetes installs change replica or environment values through the Helm chart and roll out the deployment. Confirm in your own environment which method applies and which steps are needed. The step is done when every web and worker process reports the new configuration and no pods or services are stuck in a restart loop.Re-check the health check and job completion times
Query
/health_checks/worker_backed_upagain and repeat the representative job timings from the baseline under similar load. Compare the results with the baseline record and review the logs for new errors such as connection exhaustion or timeouts. The step is done when the backlog reading and job times are recorded beside the baseline, and the team agrees whether the change worked. If it did not, return to the bottleneck step rather than increasing several settings together.
Security and operational risks when adding workers
Adding web or background capacity changes more than throughput. It draws on the same database, memory and host that already run OpenProject, and it touches data that is hard to recover. The cards below cover the checks to make before and after a scaling change.
Database connections and host memory
Each extra web thread or background worker holds connections and memory against the same PostgreSQL instance and host. Before raising OPENPROJECT_WEB_MAX__THREADS or OPENPROJECT_GOOD__JOB__MAX_THREADS, confirm that the database accepts the combined connection count with headroom for backups and admin sessions. Then watch memory on the host after the change, not only during the first load test. Ask your team which PostgreSQL connection limit applies to your deployment and whether a pooler sits in front of it.
Jobs that touch backups and deletions
Background workers process backups and resource deletion, so a scaling change or a misbehaving worker can affect data that is hard to restore. Take a verified backup and test the restore path before changing worker counts on a production instance. Keep the change window clear of scheduled backups so two runs do not compete for the same resources.
Protecting health check endpoints
The worker backlog and other health check endpoints reveal operational state about the instance. Do not expose them publicly. Restrict them at the reverse proxy or network layer, and protect them with the password option your installation documents before a monitoring tool polls them from outside the cluster. Confirm the exact setting in the monitoring documentation for your version.
Monitoring docsLog volume from added workers
More web and background workers write more log lines, and those lines can contain personal data such as user identifiers and request details. Set a retention period for worker logs before you add replicas, and confirm who can read them in your central logging system. Review the retention decision with your data protection owner, since extra replicas multiply the volume you hold.
Config drift across replicas
Worker settings such as thread counts must match across every replica, or each instance behaves differently under load. Keep environment variables and Helm values in version control, and review each change through the same approval path you use for application code. After a change, compare the effective values on every replica rather than trusting the file you edited.
Access to hosts and cluster
Anyone who can run openproject scale or change a Kubernetes deployment can change concurrency, stop workers or reach the database. Limit host and cluster access to named administrators, log their actions, and separate production credentials from test environments. Review who holds these rights each time the team changes.
Questions teams ask before scaling OpenProject workers
Can our in-house team scale OpenProject workers on its own?
Yes, if you have people who can change the deployment configuration, read metrics and test changes before they reach production. Your team needs access to the OpenProject configuration for your install method, access to the health check and metrics endpoints, and access to worker logs. A staging copy of the instance matters most, because you need to watch how a change to worker counts or thread settings behaves under realistic job load before you apply it to users. Teams without a staging environment or without someone who owns the database often choose to bring in a partner for the first change, then keep the runbook in-house.
What drives the effort to scale OpenProject workers?
Effort depends on four things: how you installed OpenProject, how many users you have, how large your background job backlog already is, and how much headroom your database has. A packaged install scales workers with the openproject scale command, while Docker and Kubernetes installs change replica or environment settings. User count sets the starting point for sizing, and the job backlog shows whether workers are already falling behind. If PostgreSQL is near its connection or resource limits, adding workers can move the bottleneck rather than remove it, so the database check adds time to the work.
How long does it take to confirm a worker scaling change?
No fixed duration applies, because it depends on your instance, your install method and the test plan you agree before the change. A confirmation normally includes a baseline reading of the worker backlog health check, the change itself, and a period of observation under normal and peak load, including email delivery, project copies and backup jobs. Ask any provider to state the steps, the load you will test against, the rollback method and the evidence you will receive before they quote a timeline. For a fixed-scope engagement, the written scope sets the schedule.
What sizing guidance do the OpenProject docs give?
The OpenProject system requirements suggest 4 cores and 4 GB RAM for up to 200 users, 8 cores and 8 GB RAM for about 500 users, and 16 cores and 16 GB RAM for about 1,500 users. These are starting points for the whole server, not a measure of how many workers you need. Treat them as a baseline to check against your own usage, including how many users are active at the same time, how many large projects you copy, and how often backups run. Confirm the current requirements for your release before you plan hardware, because the documentation is updated with new versions.
Does scaling workers replace database or cache work?
No. Adding background workers or web threads increases how many requests and jobs run at once, which also increases demand on PostgreSQL and any cache backend. If the database is slow, more workers can make it slower by adding connections and lock contention. Check database statistics and connection limits before you raise concurrency, and review cache configuration if response times are high. Worker scaling fixes a backlog that comes from insufficient processing capacity, while database tuning, cache changes and timeout settings address different causes.
What does the worker backlog health check tell us?
The /health_checks/worker_backed_up endpoint signals that background workers may need scaling. Read it as a prompt to investigate, not as a diagnosis. A backlog can come from a burst of email or project copies, a stuck job, a failing dependency or a worker that stopped, and each cause needs a different fix. Record the reading over time, compare it with job activity in your logs and confirm that the alert is wired to a person who can act on it. Your monitoring setup determines how quickly you see the signal.
Which settings should we review before raising worker counts?
Review the web worker count, the Puma minimum and maximum thread settings, and the background job thread limit before changing anything. These settings control how many requests and jobs run in parallel, so raising several at once can overload memory and the database together. Change one setting at a time, record the baseline, and watch memory use, database connections and response times after each change. Keep a written record of the previous values so you can roll back quickly if the change does not help.
Limits to confirm in your environment
The scaling settings in this topic depend on your OpenProject release, your install method and your database. Each card below names one assumption to check before you change worker counts, thread limits or replica numbers.
Exact variable names and defaults
The worker and thread settings, including OPENPROJECT_WEB_WORKERS, OPENPROJECT_WEB_MIN__THREADS, OPENPROJECT_WEB_MAX__THREADS and OPENPROJECT_GOOD__JOB__MAX_THREADS, are documented in the scaling guide, but defaults and accepted values can change between releases. Read the scaling page for the exact release you run, note the current values in your environment file or Helm values, and record them before you change anything so you can roll back.
Scaling docsSupport for the worker scale command
The packaged command openproject scale worker=N is the documented way to add background workers on package installs. Confirm that your install method uses it, since Docker Compose and Kubernetes deployments scale workers through other mechanisms. Run the command on a non-production copy first and check that the expected worker processes appear in the service list afterward.
Helm replica support in your chart
Kubernetes horizontal scaling depends on the replica settings exposed by the Helm chart version you deploy. Check the chart's values file for separate web and worker replica keys, confirm that they are not ignored by your chart version, and verify that your persistent storage and session handling allow more than one pod to run safely.
PostgreSQL 16 and required extensions
Since OpenProject 16.0.0, the supported database is PostgreSQL 16 or later, and the pg_trgm, btree_gist and unaccent extensions must be present. More workers means more concurrent database connections, so check the server version, the extensions and your connection limits before adding capacity. A missing extension will not show up as a scaling problem until a feature fails.
System requirementsEnterprise plan requirements
Most scaling settings apply to every edition, but any feature your teams rely on may need an Enterprise plan. Confirm which edition covers each feature in use, such as SSO or LDAP group synchronization, before you size workers for that load. Ask OpenProject or your account contact to confirm plan requirements for your user count, since pricing depends on named users per tier.
Pricing and plansJira Migrator is beta and separate
The Jira Migrator is in beta, and its documentation advises using it only in test setups. It has no bearing on worker counts or thread settings, so do not include migration jobs in your capacity plan or treat migration activity as a reason to change these settings. Keep migration tests on a separate instance from production.
Reading the worker backlog health check
The endpoint /health_checks/worker_backed_up is a signal that background workers may need more capacity, but it is a prompt to investigate, not an instruction to add workers. It reports that the job backlog has grown beyond what the current workers are clearing. Before you change any count, find out what is sitting in the queue. Background workers handle email delivery, project copying, backups and resource deletion, so a backlog can come from a burst of notification email, a large project copy, a stalled backup or a job that keeps failing and retrying. Adding workers helps only the first case. The job queue and worker logs tell you which one you have.
Wire this endpoint into alerting alongside the liveness endpoint covered in the monitoring topic. Liveness answers whether the instance is up and should page someone quickly. The backlog check answers a different question, whether work is being delayed, so it should usually alert at a lower severity and reach the team that owns operations. Protect both endpoints the same way, and confirm with your monitoring stack how often it polls and how it treats a non-healthy response. Keep the endpoint's response code and body in your runbook so that whoever is on call knows what they are reading.
Treat the state differently depending on how long it lasts. A brief backed-up state that clears on its own usually follows a predictable event, such as a bulk notification, a large import or a scheduled backup, and needs only a note in the record. A persistent backed-up state over a sustained period suggests that the workers cannot keep up with steady demand, or that jobs are failing and being retried. Check whether the backlog grows during business hours, after scheduled jobs, or after an upgrade, and compare it with the worker logs. Only after that comparison should you raise worker counts through the scaling settings, and then confirm that the backlog clears and stays clear before you call the change done.
How DeployOpen works on this
DeployOpen treats worker scaling as a planned change to your OpenProject install, not a guess made during an outage. We scope the current load, size web and background capacity for your environment, and deliver the changes with a written record your operations team can run.
How we scope
- We review current web and background worker counts, thread settings and the install method in use.
- We confirm which background work matters most to you, such as email delivery, project copying and backups.
- We record the worker backlog health check results and the load pattern that triggers them.
- Engagements are fixed-scope, with scaling targets and deliverables agreed in writing before work starts.
How we build
- We set web worker, thread and background concurrency values for your install method, whether packaged, Docker or Kubernetes.
- We test the changes in a non-production environment that mirrors your database, storage and network layout.
- We check that the backlog health check responds as expected under a representative background job load.
- We confirm that database connection limits and host resources still hold after the worker count changes.
How we hand over
- You receive a written configuration record with each setting, its value and the reason it was chosen.
- We document the commands and replica settings used to adjust workers later, with rollback steps.
- We walk your operations team through reading the worker backlog health check and deciding when to add capacity.
- Runbooks state which symptoms point to web saturation and which point to a background worker backlog.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover re-checking worker sizing after OpenProject version upgrades and user growth.
- We can review backlog health check trends with your team and adjust worker counts on a planned schedule.
- Ask for the support scope, response expectations and upgrade handling in the written quote before signing.

