Zammad performance tuning with background workers: when a busy helpdesk slows down
When agents report slow tickets, delayed email or lagging search during peak hours, the usual first answer is more hardware. For Zammad, the more productive first step is usually separating background work from the web application and sizing each part on its own. Background jobs such as inbound mailbox fetching, session jobs and AI requests compete with agent browsing for the same CPU, memory and database connections. Working out which of those workloads is actually saturated is worth doing before you buy servers.
This page covers the levers that matter most in a busy self-hosted Zammad: running dedicated worker processes for inbound mailboxes, session jobs and AI requests, setting worker thread counts, storing attachments on the filesystem instead of in the database, placing Elasticsearch on its own host, and deciding when core workflow Ajax mode is the right fix for unreliable field updates. Each lever changes a different bottleneck, so the sequence matters. Measure first, change one thing at a time and record the result.
The Zammad documentation sets a baseline of PostgreSQL 15 or newer and Redis 7 or newer for realtime websocket communication, and lists Elasticsearch as optional but strongly recommended for faster search. Before tuning, confirm that your versions meet these requirements, because some tuning options assume them. Check the software requirements page for your release and note your current PostgreSQL, Redis and Elasticsearch versions, host sizes and worker counts so you can compare before and after.
Where web, websocket, worker and search traffic land across hosts
The diagram starts with agent and customer browsers at the public edge, where the reverse proxy (Nginx or Apache) hands requests to the Zammad web application. Websocket traffic for realtime updates goes through Redis, and background workers handle inbound mailboxes, session and scheduled jobs, and AI requests. PostgreSQL holds the content, Elasticsearch runs on its own host for search, and Memcached appears when several Zammad instances share a cache. Check the exact worker grouping in the Zammad documentation for your installed version before you split services onto hosts.
Traffic paths and trust boundaries between edge, application and data tiers.
Which tuning levers fit which bottleneck
This table compares six tuning levers for a busy Zammad, with the symptom each one addresses, what it costs or risks, and what to measure before and after the change. Read it by finding your slowest symptom first, then checking the cost column before you touch configuration. Measure each change on its own so you can tell which lever actually helped.
| Lever | Symptom it addresses | Cost or risk it adds | Measure before and after |
|---|---|---|---|
| Separate workers for inbound mailboxes | Ticket creation and replies delayed while mail backs up behind other background jobs | Extra worker processes and more connections to PostgreSQL and Redis; more to monitor | Queue length and age of unprocessed email jobs, and time from mail arrival to ticket creation |
| Separate workers for session jobs | Agent sessions feel slow or stale when background jobs crowd the same queue | Additional process to run and restart; shared database connection limits must be rechecked | Session job backlog and browser response times for agents during a normal working hour |
| Separate workers for AI requests | Slow ticket pages or queued work when AI requests wait behind routine jobs | Outbound calls to AI providers consume worker time and may add cost on the provider side; data handling must be reviewed | AI request latency and queue depth, plus worker utilization before and after |
| Thread count per worker | Workers sit idle while jobs wait, or the host runs out of memory and CPU when threads are too many | More threads add concurrent database connections and memory use; too many can cause contention | CPU and memory on the host under peak load, and database connection count during peak |
| Filesystem attachment storage instead of database storage | Database growing quickly, slow backups and slow queries because of large attachment rows | Filesystem storage must be backed up and restored alongside the database, and permissions must be managed | Database size and dump duration, and attachment open times for agents before and after the move |
| Elasticsearch on a dedicated host | Search and reporting slowed by competition for CPU, memory or disk with the Zammad application | Another host to build, patch and monitor; search must be rebuilt after moving if the index is reset | Search response times, host CPU and memory on the application host, and index health after the move |
| Core workflow Ajax mode | Field updates in forms feel unreliable or lag when websockets are blocked or unstable | Browsers fall back to Ajax polling, which adds steady server load on every open session | Request count per session and application server load before and after enabling, plus user reports of field update failures |
How tuning changes between package, Docker Compose and Kubernetes installs
With a package installation, Zammad runs as a set of services on the host itself, so background workers are started and scaled through the operating system's service manager. Tuning means deciding how many worker processes run, on which host, and which settings they read. Everything lives on the server's filesystem, so each change is made once per host and must be written to the right files to survive an upgrade.
- Worker processes: The web, websocket, scheduler and background job workers run as separate services on the same host. Confirm the service names for your release, since they can change between versions.
- Scaling: Scaling means adding worker capacity on the same server or moving workers to a second host that shares the same PostgreSQL and Redis instances. Check the host's CPU and memory before adding processes.
- Configuration location: Settings sit in the application's configuration directory and environment files under the install path. Edits made inside the package tree can be overwritten by upgrades, so keep a versioned copy of every changed file.
- Memcached: A single package host can use the file system cache, so Memcached only becomes necessary once more than one Zammad instance shares the work. Adding it earlier creates another service to run without a clear benefit.
- Attachment storage: Filesystem attachment storage defaults to a local disk. A second application host needs storage that both hosts can reach, or the workers on that host cannot read the same attachments.
After each change, check the service status, confirm in the logs that every worker is consuming jobs, and repeat the change in a test environment before an upgrade.
Docker Compose runs each Zammad role as its own container from one compose file, so scaling workers is a change to service definitions and replica counts. Configuration comes from environment variables in the compose file or an env file, and every container reads the same values. Multi-instance behavior is where Docker differs most from a package install, because containers that share work need Memcached and storage that all of them can reach.
- Separate containers: Web, websocket, scheduler and worker roles are defined as separate services, so you can run more copies of one role without duplicating the others. Verify the service list against the compose file for your version.
- Scaling: Scale worker services with the compose scale option or replica settings. Each added container opens more database connections, so check PostgreSQL connection limits before you scale.
- Configuration: Tuning values belong in environment variables in the compose file or an env file. Keep that file under version control and avoid editing values inside running containers, because recreating a container discards those edits.
- Memcached: Multiple Zammad containers need Memcached so they share cache state. Add it as a service and point every Zammad container at it.
- Shared storage: A named volume is local to one Docker host. If containers run on more than one host, attachment storage must be shared and mounted at the same path in each container.
Before you rely on a scaled setup, confirm that every replica uses the same database, Redis and Memcached endpoints, and that the attachment path resolves identically in each container. The Zammad Docker Compose installation guide lists the services for each release.
The Helm chart deploys Zammad as Kubernetes objects, so worker scaling is expressed as replica counts and resource settings in chart values, and the cluster scheduler decides where pods run. Zammad support covers only the Zammad application. Cluster-level questions such as node pools, autoscaling policy, ingress, storage classes and network policy stay with your platform team or a partner.
- Replicas: Web and worker deployments are scaled through replica values in the chart. Change the value in the values file and apply it through your normal release process, after confirming the value names for your chart version.
- Resource settings: CPU and memory requests and limits determine how many worker pods fit on each node. Set them from measured load in your environment rather than from the chart defaults.
- Configuration: Chart values hold most tuning settings, and secrets are referenced from separate objects. Store values in Git and manage secrets through your secret tooling so changes are reviewed before they apply.
- Memcached, Redis and shared storage: Every pod must reach Memcached and Redis, and attachment storage must be mounted by all pods that handle attachments. Confirm that your storage class supports shared access across nodes before scaling out.
- Cluster decisions: Node sizing, horizontal autoscaling and storage performance are cluster choices. Zammad support does not cover them, so assign them to your platform team or a partner before the first scale test.
Test each scale change in staging first, watch pod restarts and queue latency, and record which decisions Zammad support covers and which your own team owns.
Why filesystem attachments and a dedicated Elasticsearch host help a busy Zammad
Moving attachments from the database to the filesystem shrinks the PostgreSQL database and the time its backups take. When attachments live in database rows, every dump carries the binary content of every file ever sent to the helpdesk, so the dump grows with mail volume rather than with ticket metadata. Storing attachments on the filesystem keeps the database to text and references, and it leaves the bulk of the data in a directory you can copy, snapshot or replicate with tools that suit large files. The trade-off is scope. A complete restore now needs both the database and the attachment directory from the same point in time, and the backup procedure in the sibling backup pages must cover that directory explicitly. Before you change the setting, confirm with Zammad's documentation how existing attachments are migrated and whether the change applies to new files only. Check the file permissions on the storage path too, since the application user must read and write it and your backup account must read it without weakening the rest of the host.
An Elasticsearch host of its own keeps indexing and search load away from the application and database. Zammad uses Elasticsearch for faster search, reporting features and searching the content of email attachments, and the Zammad software requirements describe it as optional but strongly recommended. Indexing large attachments and running broad agent searches are CPU and memory intensive, and on a shared host they compete with the web workers and the PostgreSQL queries that agents wait on. Placing the cluster on a separate host lets you size it for search and give it its own heap and disk, and it means a heavy reindex does not stall ticket updates. The cost is another system to patch, back up and monitor, and a search index that is out of step with the database until it catches up. Measure attachment volume, index size and search latency in your own environment before and after the change, and confirm the Elasticsearch version your Zammad release supports before you build the new host.
Setup sequence for tuning a busy Zammad
This sequence turns a slow Zammad into a measured, staged tuning project, with each change tied to a baseline and a check so the team can tell which adjustment actually helped.
Measure the current behavior
Before changing anything, record what slow looks like. Capture the background job queue backlog during a normal business day, agent-facing response times for ticket views and search, PostgreSQL load (active connections, slow queries and CPU), and the health of Redis and Elasticsearch. The administrator or platform engineer owns this, and the output is a short baseline document with timestamps. The step is done when the team can say which symptom is worst and when it peaks, and when someone else on the team could reproduce the same measurements.
Confirm the version and documented worker options
Record the installed Zammad version, the install method (package, Docker Compose or Kubernetes), and the worker and thread settings that the documentation for that exact version describes. Settings for worker separation and thread counts can differ between releases, so the team should read the matching documentation rather than older blog posts. The platform engineer completes this, and the check is a written list of the supported options and their current values, reviewed against the Zammad release notes for the installed line.
Move attachment storage to the filesystem
Plan a move of attachments from database storage to the filesystem, because large attachments inflate PostgreSQL and its backups. Take and test a full backup first, then run the migration in a staging copy and confirm that attachments open from tickets and that the restored copy matches production. The administrator and database owner share this work. The check is a successful attachment open rate on a sample of old and new tickets in staging, and a restore test that completes before the change reaches production.
Move Elasticsearch to its own host
Place the search service on a dedicated host so indexing and search queries stop competing with the application and database for CPU and memory. Confirm the connection settings in Zammad, rebuild the index on the new host, and check that the cluster reports healthy. The platform engineer carries out the move, and the infrastructure team sizes the host. The check is that a set of known test searches, including searches of attachment content, return the expected tickets within the response time the business agreed on before the change.
Split inbound mailbox, session and AI workers
Run separate background workers for inbound mailboxes, session and realtime jobs, and any AI requests, so a slow mail fetch or an AI call cannot hold up agent sessions. Use the worker configuration that the documented version provides, start each worker group under its own process supervisor, and log each group separately. The platform engineer does this work with the administrator watching the queue. The check is that each worker group starts, appears in the process list, and processes its own queue without errors in the logs during a test period.
Adjust thread counts one change at a time
Change one thread count per test cycle, starting with the worker group that showed the largest backlog in the baseline. Keep a record of the old value, the new value, the time of the change and the queue and response measurements taken afterward. Stop raising a count when PostgreSQL connections or host CPU show sustained pressure. The platform engineer owns the change log. The check is that the queue drains during business hours and that the database connection count stays within the limit the team set in the baseline.
Retest against the baseline and agree on settings
Repeat the measurements from the first step under comparable load, and compare the queue backlog, response times, PostgreSQL load, and health of Redis and Elasticsearch with the baseline. Document the final settings, the rollback values, and the monitoring thresholds that should trigger a review. The service owner signs off on the result. The step is complete when the queue drains during business hours, search returns results within the agreed time, and the team can restore the previous settings from the written record.
Security and operational risks of splitting Zammad into more services
Each extra host for workers, Elasticsearch or Redis adds a network path, a set of credentials and a configuration copy that must stay in step. The cards below cover the controls and checks that keep a split deployment secure and consistent.
More hosts, more attack surface
Every worker host, search node and cache host is another system to patch, monitor and harden. Each one also holds credentials or reaches the database and attachment storage. Before splitting, list every host, the ports it opens, the accounts it uses and who patches it. Remove any host that cannot name an owner.
Software requirementsKeep Elasticsearch and Redis internal
Zammad documents Redis, PostgreSQL and Elasticsearch as separate services that need network controls of their own. Bind Redis and Elasticsearch to the application network only, and allow connections from the Zammad web and worker hosts alone. Check from a host outside that network that neither port answers, because an open search or cache port can expose ticket content.
Configuration drift between tiers
Worker processes need the same secrets, database settings, Redis address and environment as the web tier. When one host gets an old secret or a different setting, failures often appear only under specific jobs, such as a mailbox that stops fetching. Keep one configuration source for all hosts and compare a checksum of the settings file after each change.
Attachment files need permissions and backups
When attachments live on the filesystem rather than in the database, the files become a separate asset. The application user must read and write the storage path, and other local users must not. Backup jobs must cover that path on every host that writes to it, and a restore test should confirm that attachments open after recovery.
Test changes in a maintenance window
Moving workers, changing thread counts or switching attachment storage all affect running jobs. Schedule these changes in a maintenance window, take a backup first and record the previous settings so you can revert. Watch queue length and failed jobs for the first hours after the change, and confirm that inbound email and scheduled jobs still run.
Logs and monitoring for every worker
A worker that fails quietly is harder to see than a failed web request. Each worker, search node and cache host needs its own log collection and health alerting, and each should appear in the monitoring system. Confirm that a stopped worker raises an alert, since the Zammad health check reports on the application as a whole and may not reveal a single stalled process.
Questions buyers ask about Zammad performance tuning
Does tuning Zammad cost a license fee?
No license fee applies to self-hosted Zammad, according to Zammad's pricing page. The costs of tuning are labor and infrastructure. Labor covers profiling the current system, changing worker and service layout, moving attachment storage, adding an Elasticsearch host if you do not already have one, and testing each change. Infrastructure costs include any extra hosts or Memcached capacity you add. If you buy a vendor support subscription, that is a separate recurring cost. Ask any partner for a quote that lists each component, what is one-time and what recurs, and which items you already own.
How long does a Zammad performance tuning project take?
Duration depends mainly on the number of hosts, the data volume (tickets, attachments and mailboxes), and how change control works in your organization. A single-host installation with a clear bottleneck can be handled quickly. A multi-host deployment with separate workers, a dedicated search host and storage changes usually needs a measurement phase, a test cycle and a scheduled production window. Ask for a written timeline that separates the baseline measurement, the change plan, the test runs and the production change, and confirm which approvals each step needs before work begins.
What does the tuning work need from our team?
Plan to provide access to the metrics and logs your team already collects, a non-production copy of Zammad that resembles production, a defined maintenance window, and a current, tested backup. Before any change, confirm that a restore has been verified, not just that backups run. You will also need an owner who can approve configuration changes and report on agent-facing symptoms such as slow ticket loads or delayed email. Ask the provider exactly which of these items they expect and what they will do with the access they receive.
Can our own team tune Zammad without a partner?
Yes, a capable operations team can tune a Zammad installation, and the documentation covers the relevant settings. The main risks are changing several settings at once, tuning without a baseline, and testing in a copy that does not match production. A partner adds value when your team lacks time for measurement, needs an independent review of the design, or wants a documented change plan with rollback steps. Compare an internal plan against a written partner scope, and decide which parts your team can own after handover.
When do vendor support tiers matter for performance work?
Support tiers matter when you need a vendor to respond to a production problem during tuning. Zammad's self-hosted support subscriptions are Business at 2,999 EUR per year with 6-hour response times, Enterprise at 5,999 EUR per year with 4-hour response times, and Corporation at 9,999 EUR per year with 2-hour response times, according to Zammad's pricing page. Those response times are the vendor's commitments, not DeployOpen's. Choose a tier by how much downtime or degraded service your agents can tolerate and whether your team can diagnose problems without vendor help. Check the current terms on the pricing page before you decide.
How do we avoid tuning the wrong thing?
Measure before you change anything. Record baseline figures for agent page loads, websocket connection behavior, background job queue depth, email processing delay, search response time and database and storage load. Then change one variable at a time, retest with the same workload, and keep the result. Many slowdowns come from a single cause such as inbound mail jobs blocking session work, attachments inflating the database, or a proxy filtering websockets, so the symptom alone rarely points to the fix. Ask for the baseline report as a deliverable.
What engineering checks belong in the tuning plan?
A sound plan checks the worker layout, the thread count per worker, where attachments are stored, whether Elasticsearch runs on its own host, and whether the Ajax fallback or core workflow Ajax mode is involved in slow field updates. It also confirms Redis 7 or newer and PostgreSQL 15 or newer are in use, and that Memcached is present for multi-instance deployments. Each check should have a before-and-after measurement and a rollback path. Confirm the exact configuration keys and procedures against the Zammad documentation for your installed version before changing them.
Limits to confirm in your environment before you change anything
Performance tuning changes which processes run, how many threads they use and which components a request depends on. Each card below is a limit to confirm against the documentation for your installed version, or with Zammad vendor support, before you change a production setting.
Worker options in your version
Worker types, thread counts and the names of the settings that control them have changed between release lines. Zammad 7.2 was released on 23 September 2026, with security releases 7.2.1 on 6 October 2026 and 7.2.2 on 8 October 2026, and 6.5.5 on 15 October 2026 for the 6.5 line. Confirm which worker options and thread settings your installed version supports, and whether your patch level includes the fixes you need. Check the release notes before copying a setting from a blog or an older guide.
Zammad releasesMemcached for your layout
Memcached is needed for multi-instance deployments such as containers or cluster nodes, while single installations can use the file system cache. Splitting workers onto separate hosts or containers can turn a single-host setup into a multi-instance one without anyone noticing. Confirm whether your chosen worker layout requires a shared cache, and whether that cache is sized and monitored before you add hosts.
Software requirementsPostgreSQL and Redis version floors
Zammad stores its content in PostgreSQL 15 or newer and requires Redis 7 or newer for realtime websocket communication. Database and cache upgrades often happen on their own schedule, so a host that met the floor last year may not meet it after a platform refresh. Confirm the current minimum versions for the release you run, and test the worker layout against the same versions you will run in production.
Version requirementsAjax fallback under core workflow Ajax mode
Core workflow Ajax mode changes how field updates reach the server, and the browser falls back to Ajax polling when websockets are blocked. Moving load between workers can change how often those requests arrive and how long they take. Confirm in the admin documentation or with vendor support how the fallback behaves in your version, and measure server load in a test environment before enabling the mode for all agents.
Kubernetes support scope
Zammad documents a Kubernetes Helm chart, but its support covers only the Zammad application, not Kubernetes-specific issues. Splitting workers into separate pods, scaling replicas or changing ingress behavior falls on your platform team to troubleshoot. Confirm in writing with vendor support which parts of a worker split you can expect help with, and who owns the cluster, storage class and network policy side of the design.
Kubernetes installationAI feature traffic after upgrades
AI features add outbound requests and background jobs that can change the load profile of a busy helpdesk after an upgrade, even when your worker settings stay the same. Check which AI providers and features are enabled in your version, how their requests are queued, and whether they share workers with mailbox or session jobs. Benchmark before and after each upgrade, and confirm the data path with the vendor before enabling AI features in production.
How DeployOpen scopes and delivers Zammad performance tuning
DeployOpen starts performance tuning with a measured picture of how your Zammad instance behaves under load, then changes worker layout, storage and search only where the evidence points. Each change is built, tested and documented inside infrastructure you control, with ongoing support available as a retainer.
How we scope
- Written scope names the Zammad version, hosting model and the workloads being tuned, such as inbound mail, session jobs or AI requests.
- We confirm which hosts exist for the application, PostgreSQL, Redis, Elasticsearch and cache, and who administers each one.
- Scope states which tuning changes are in and which are out, including any work on browser sessions or core workflow behavior.
How we build
- We review current worker and thread settings against observed queue backlog, response times and resource use before changing anything.
- Changes are applied one at a time in a staging copy, including separated mailbox and session workers and filesystem attachment storage.
- Elasticsearch placement and core workflow Ajax mode are tested with representative agent and customer activity before production rollout.
How we hand over
- You receive a written record of every setting changed, the reason for it and the measured result before and after.
- Runbooks describe how to restart workers, check job queues and roll back each setting if a later Zammad release changes behavior.
- We walk your administrators through the monitoring signals to watch so they can tell when tuning needs revisiting.
How we support
- Support after handover can be arranged as a retainer covering Zammad upgrades and re-checks of worker sizing as ticket volume grows.
- Retainer scope, response expectations and review cadence are agreed in writing before the retainer begins.
- Re-tuning after a Zammad minor or security release is scoped separately so you can confirm the effort before work starts.

