Why MISP background workers with Supervisor decide whether your instance stays current
When publishing feels delayed, caches look stale or a sync partner reports lag, the first question for an operations owner is whether MISP's background workers are running and keeping up. MISP hands much of its asynchronous work, such as correlation, cache updates and feed processing, to background jobs rather than doing it inside the web request. Supervisor is the process manager that keeps those worker processes alive, so a worker that crashes or stops quietly is the kind of fault that shows up first as slow or missing data rather than as an error on screen.
Teams need this topic in three situations: right after a fresh install, after every upgrade, and whenever the job queues start growing faster than they drain. Installation and upgrades change the worker layout and the configuration that Supervisor reads, so a setup that worked on the previous release can leave workers unmanaged or pointed at the wrong user or path. Backed-up queues are harder to spot, because MISP keeps accepting new events while the backlog grows. The work needs someone who can read the diagnostics and worker logs, edit the Supervisor configuration with the same care as other production services, and schedule restarts in a window the organization agrees to.
Worker behavior, queue names and the exact Supervisor setup should be confirmed against the MISP release you run, since the project changes the background job system between versions. Check the release notes in the MISP GitHub releases page and the installer documentation for your release before you change anything. Record the current worker configuration and queue state before any change, so you can tell a regression from a pre-existing backlog.
How jobs move from the web app to workers and back
The flow starts when a user action in the MISP web application adds a job to a Redis-backed queue. Supervisor-managed worker processes on the worker host take jobs from those queues, run them against the MySQL or MariaDB database, and write results and status back to the database. Workers also write their own log files. Check the trust boundary: the web tier and worker hosts must reach the same Redis and database, and nothing else should cross it.
Jobs flow from the web app through Redis to Supervisor-managed workers, which write results and logs back.
What each of the six queues handles
MISP sends slow or deferred work to background workers, and each queue carries a different kind of job. Confirm the queue names and their assignments in the job administration view of your exact MISP version before you map symptoms to queues, because names and routing can change between releases.
Email and notification jobs
This queue carries outbound mail such as alert notifications, publication notices and account messages. When it backs up, users report that alerts and password resets arrive late or not at all, while the web interface still responds normally. Check whether the mail transport settings are valid and whether the queue is growing faster than it drains. A stalled email queue often looks like a mail problem even when the worker itself is healthy.
Priority jobs for user actions
This queue is intended for work that a user is waiting on, so that interactive actions are not stuck behind bulk processing. If it backs up, analysts see publishing or tagging actions that appear to complete but take much longer than usual to reach other users. Compare the queue depth against the time of day and against any large imports running at the same moment. Avoid adding more workers to this queue without first checking whether a bulk job has been routed to it by mistake.
Cache rebuild jobs
Cache jobs rebuild the data MISP keeps ready for fast lookup, including feed and warninglist caches held in Redis. When this queue falls behind, searches and matching can return results based on older feed content, and cache-dependent pages load slowly. Check Redis memory and connectivity before restarting anything, since a full Redis instance can make every cache job fail in the same way. Watch the timestamps of the last cache refresh after any change to feed settings.
Correlation and attribute processing
Correlation and attribute processing work runs after new attributes are saved, so that matches against existing intelligence are recorded. A backlog here means new events show no related events for a period after they are added, which can hide overlaps from analysts. Large imports and noisy attributes raise the load on this work, so review the recent import history when the queue grows. Coordinate with your correlation tuning settings before you change worker counts, because the cause is often the volume of input rather than the worker capacity.
Sync and push jobs
Sync and push jobs carry events and attributes to and from connected MISP instances and communities. When this queue backs up, partner instances receive updates late, and recently published items may appear missing on their side. Check whether the remote server is reachable and whether a single failing server is blocking queued work for others. Use the synchronization logs to confirm which job is retrying before you clear anything, because clearing a sync job can leave a partner out of step until a pull is run.
Scheduled and maintenance tasks
Scheduled tasks include recurring jobs such as feed fetches, housekeeping and data cleanup that run on a timer. If this queue stops moving, scheduled feed updates stop, and the instance can look current in the interface while its intelligence goes stale. Check the last successful run of each scheduled task and confirm the worker that handles them is running under Supervisor. Restart only the affected worker, and review the log entry for the failed task so the same job does not return to the queue on the next start.
Supervisor and worker configuration options and when each fits
This table compares the main Supervisor and worker setup choices for MISP background jobs, from process counts per queue to log handling and the account workers run under. Read each row as a trade-off between throughput, resource use and the effort needed to debug a stuck queue. The main takeaway is that a small instance usually needs fewer workers and simpler logs, while a busy instance needs per-queue capacity and a clear owner for the worker account.
| Option | What it controls | Trade-off | When it fits |
|---|---|---|---|
| Processes per queue | How many worker processes Supervisor starts for each job queue | More processes clear backlogs faster but use more memory and database connections | Start with one process per queue and add capacity only when jobs wait for long periods |
| Autostart | Whether workers start when the host boots | Keeps job processing available after reboots, but a broken config can start failing workers automatically | Production hosts where MISP must process jobs without manual intervention |
| Autorestart | Whether Supervisor restarts a worker that exits | Recovers from crashes quickly, but a worker in a crash loop can hide the root cause unless logs are checked | Production, paired with log review so repeated restarts are noticed |
| Log file location and rotation | Where each worker writes output and how old logs are removed | Central, rotated logs are easier to search and keep disks safe, but rotation settings need checking against retention needs | Any instance where worker errors must be traced after the fact, with rotation sized to the disk available |
| Worker runs as web server user | The account that owns and executes worker processes | Simple file permissions for the MISP tree, but a compromised worker has the same rights as the web application | Small or test deployments where a separate account adds more admin work than it removes risk |
| Worker runs as dedicated account | A separate system user with limited rights to MISP files and logs | Better isolation and clearer audit trails, but requires permission setup for cache, temp and log directories | Production and regulated environments where hardening reviews expect separated service accounts |
| Restart after configuration change | Whether Supervisor reloads workers after edits to its config | Applies changes immediately, but restarting during active jobs can interrupt processing | Change windows, or when the queue is confirmed idle before the restart |
Setting up Supervisor for MISP workers
This sequence takes a MISP host from confirmed worker prerequisites to a running Supervisor group in which each of the six SimpleBackgroundJobs queues is consuming jobs. Each step ends with a check so problems surface before the instance goes into use.
Confirm workers match the installation path
Start by confirming which installation path built the host, since the official installer, Docker images, Ansible roles, Puppet and RPM packages each place the worker scripts and Supervisor configuration differently. The administrator or the partner engineer checks that the MISP installation directory contains the worker tooling, that the PHP and Python runtimes the worker uses are the ones the release expects, and that the Supervisor package is present. Confirm the target release on the MISP download page, since MISP 2.5 is the recommended line for new deployments. The step is done when you have written down the install method, the MISP root path, the PHP binary path and the release version, and every item resolves on the host.
Confirm the background job settings in MISP
Before writing Supervisor files, check the background job configuration inside MISP so the workers and the web application agree on the queue backend. The administrator reviews the background job settings in the administration interface and confirms the Redis connection the workers will use, since SimpleBackgroundJobs depends on Redis. Record the expected queue names so each Supervisor program maps to exactly one queue. The check passes when the settings show the Redis host and port the host can reach, and a simple connection test from the MISP user returns a successful response.
Write one Supervisor program per queue
Create a Supervisor configuration file, typically under the Supervisor conf directory, that defines one program block for each of the six queues, each running the worker command for that queue under the MISP service user. Set the working directory to the MISP root, direct stdout and stderr to dedicated log files, and set restart behavior so a crashed worker returns without manual action. Keep the file under change control, because later edits to worker count or queue names should be reviewed like any other configuration change. The step is done when the file parses without errors and lists six distinct program names, each with its own log file path.
Validate the configuration before reloading
Before Supervisor reads the new file, check the syntax and the commands it will run. Run the Supervisor configuration check to confirm every program block parses, and run each worker command once by hand as the MISP service user to confirm the binary path, the working directory and file permissions are correct. Confirm that the log directory is writable by that user. This prevents a single typo from leaving every queue down after a reload. The check passes when the configuration check reports no errors and each manual run starts and waits for work without exiting with an error message.
Reload Supervisor and start the worker group
Ask Supervisor to reread its configuration and update the program set, then start the new programs. Use the reread and update commands rather than restarting the whole Supervisor service, so unrelated services managed by the same daemon keep running. An operator with root or sudo rights performs the change during an agreed window if the instance is already in use. The step is done when the status listing shows all six worker programs in a running state with process identifiers and an uptime value, and the log files begin to record startup lines.
Verify each queue is consuming jobs
Confirm the workers are not only running but actually taking work from their queues. Check the MISP background job status view for each queue, and where needed, queue a harmless test job from the administration interface, such as a small enrichment or cache refresh, then watch the matching worker log for the job being picked up and completed. Repeat for each of the six queues, since a program that runs but is attached to the wrong queue will look healthy in Supervisor alone. The step is done when every queue shows at least one completed test job and no error entries appear in the matching log file.
Record the baseline and confirm restart behavior
Finish by capturing what a healthy state looks like so future troubleshooting has a reference. Save the Supervisor status output, the program definitions, the Redis connection details without secrets, and the time each queue last completed a job. Test the restart path once by stopping a single worker program in Supervisor, confirming the automatic restart or the manual start brings it back, and checking that its queue resumes. Ask the partner or internal team to confirm the restart policy and the log rotation settings against their own operations standards before go-live. The step is done when the baseline record is stored with the change ticket and one forced restart returns the worker to consuming jobs.
Restarting workers and reading their logs without losing jobs
A worker restart is needed after three kinds of change: a configuration edit to the Supervisor program definitions, a code or dependency change that the running PHP or Python processes have not loaded, and a worker that has stopped taking jobs or is stuck on one. Before restarting, check the queue first. Confirm that the background job queues are not actively processing a large batch, that no scheduled import, feed fetch or sync push is mid-run, and that nobody is running a maintenance or upgrade step that depends on the workers. Supervisor's status output shows which programs are running and for how long, which gives you a baseline. If a restart is planned, pause new job submission where your change process allows it, so the queues drain instead of being cut mid-task.
When you read worker logs, start with the Supervisor program log for each worker, since Supervisor captures stdout and stderr from every process it manages. The log file paths are set in the Supervisor program definitions, so confirm them in your own installation rather than assuming a default location. To tie an entry to a queue, match the program name in the Supervisor log file name or the [program:...] section to the queue it runs, then use the timestamp to find the job activity around the same moment in the MISP application logs. Errors that repeat with the same stack trace on one worker point to that queue's job type, while errors spread across all workers usually point to a shared dependency such as the database or Redis connection.
Keep a short record before and after each restart: the time, the reason, the Supervisor status, and the number of jobs waiting in each queue. If jobs fail after a restart, do not requeue them in bulk until you know why they failed, because a repeated failure can flood the queue again. Ask your team to confirm the approved restart procedure for your environment, including whether your change process requires a window or a second approver. Clearing failed or stuck jobs is covered in a separate section, so use this record to decide whether the problem is a worker problem or a job problem before you touch either.
Clearing stuck and failed jobs by situation
A queue that is long but still draining usually needs patience and capacity, not intervention. Before touching anything, confirm that the count is falling over time and that the workers are completing jobs. Many backlogs follow a bulk import, a large feed fetch or a correlation run, and they clear on their own once that work finishes.
- Measure the trend: Check the queue depth at two points a few minutes apart. A falling number means the backlog is healthy.
- Check the worker processes: Confirm with
supervisorctl statusthat the expected worker programs are in the RUNNING state and have not restarted repeatedly. - Look at the worker log: Recent entries showing completed jobs confirm progress. Repeated timeouts point to a different situation.
- Avoid adding workers blindly: Extra workers compete for the same database and Redis resources, so confirm the bottleneck first.
- Recover by waiting or scheduling: If the backlog is from a known bulk task, defer further large jobs until it drains.
Check that the queue depth is decreasing and that no job type dominates the backlog before deciding whether capacity needs changing.
A stuck job is one that holds a worker or queue slot without completing and without a clear error. The main risk is misreading a long-running job as stuck and killing it mid-write. Establish how long the job has been running and what it is waiting on before taking any action.
- Identify the job and its age: Use the MISP job view or the worker log to find the job type, its start time and the event or feed it relates to.
- Check dependencies: A job waiting on a slow external feed, a proxy or a database lock can look frozen while it is simply blocked.
- Inspect the database and Redis: Long-running queries or locks on the database, and a Redis instance that is slow or out of memory, often explain a stalled job.
- Restart the single worker program: If the job is confirmed hung past any reasonable run time, restart only that worker program with
supervisorctl restart, not the whole host. - Re-run rather than delete: After a restart, re-queue the work from the source so the job completes from a known state.
Confirm the job's start time, its dependencies and that no active transaction is still writing before restarting, and record what you changed.
When the same job fails again and again, the failure is almost always deterministic. Retrying without changing something wastes capacity and fills logs. The goal is to read the error message, find the input or configuration that triggers it, and fix that cause.
- Read the first error, not the last: The initial exception in the worker log usually names the real cause, such as a missing module, a permissions error or malformed data.
- Group failures by job type: Several failures from one source feed or one module point to a single broken input or configuration.
- Check recent changes: An upgrade, a PHP or Python dependency change, or a new feed configuration often precedes a run of failures. Compare against the upgrade notes in the MISP GitHub releases for the version you run.
- Fix the cause, then re-queue: Correct the input or setting, then re-run the failed items once so you can confirm the fix.
- Review failed-job records before clearing them: Confirm what each record refers to, since some may point to events you still need.
Before clearing any failed job entries, confirm that the underlying cause is fixed and that you know which data each record references.
A worker that restarts in a loop is a supervision problem as much as a job problem. Supervisor will keep restarting a program that exits, so the restart count and exit reason matter more than the number of queued jobs. Stop the loop before attempting recovery, since each restart may re-run the job that killed the worker.
- Check Supervisor state: Run
supervisorctl statusand look for FATAL or repeated BACKOFF states, which show Supervisor has given up or is retrying. - Read the crash output: The Supervisor stderr log and the MISP worker log show the exit reason, such as memory exhaustion, a PHP fatal error or a missing binary.
- Pause the affected queue: Stop only the worker program that is crashing so the rest of the instance keeps running while you investigate.
- Confirm resources: Check memory and disk on the host, since out-of-memory kills often appear as silent exits.
- Recover in order: Fix the configuration or resource problem, start the worker once, and watch it through several jobs before returning it to normal operation.
Do not delete queue contents to stop a crash loop. Confirm what the queued jobs contain first, because they may hold work that still needs to run.
Security and operational considerations for worker hosts
The worker host runs code that reads and writes MISP event data, holds credentials for the database and Redis, and writes logs that can contain sensitive intelligence. The cards below cover the controls that keep those components contained and make worker failures visible before analysts notice them.
Least-privilege worker accounts
Run the background workers under a dedicated system account that owns only the MISP application directory it needs to write to, not the web server account or root. Confirm which user the Supervisor programs run as and that it cannot edit the MISP source tree, the configuration file or other services' data. Check that the account has no interactive login shell if your policy requires it. A worker that is compromised through a malicious module or import should have the smallest possible reach into the host.
Protecting Redis and database credentials
Workers connect to MySQL or MariaDB and to Redis using the same settings as the web application. Give the database user only the grants MISP requires, and keep the Redis instance on a private interface with authentication enabled where your version supports it. Confirm the database and Redis passwords are not written into shell history, world-readable files or Supervisor command lines that appear in process listings. Rotate these credentials through the same change process as the web tier.
Restricting access to worker logs
Worker logs record job payloads and error messages, and those messages can include event titles, attribute values and sharing details. Restrict the log directory to the worker account and the administrators who troubleshoot it, and set retention so logs are rotated rather than kept indefinitely. Before sharing a log excerpt with a vendor or community, review it for indicators or organization names. Treat log access as access to the underlying intelligence.
Keeping Supervisor configuration under change control
Supervisor program definitions decide which queues run, how many processes start, and which user and working directory they use. Store the files for these programs in version control, review every edit, and record which MISP release they were written for. After each MISP upgrade, compare the worker definitions with the shipped template so that a missed queue or a changed path does not stay silent. Record who restarts Supervisor and when, so that a restart in a change window can be traced.
Monitoring worker health
A stopped worker rarely produces a visible error in the web interface. Monitor the Supervisor process state for each worker program, alert on repeated restarts, and check that the queue backlog in the MISP background jobs view does not grow over time. Confirm that a failed process triggers a notification to the team that owns MISP operations. Ask your monitoring team which metrics they can collect from Supervisor and the host without adding a new agent, since the answer decides how much custom alerting you will build.
Questions buyers ask about running MISP workers
How much effort does it take to set up Supervisor for MISP workers?
Setup is usually a bounded task for an engineer comfortable with Linux services, but the effort depends on how the instance was installed and how much testing your change process requires. The work covers confirming the worker user and PHP path, writing Supervisor program definitions for the background job processes, reloading Supervisor, and checking that each of the six queues starts and drains. Effort rises if the instance was built by hand rather than with the official installer, if workers run under a different user than the web application, or if you must test in a staging copy first. Ask any partner to split the quote into configuration, verification on a non-production instance, and the production change window, so you can see where the hours go.
Can an internal team run MISP workers without outside help?
Yes, if you have someone who can read Supervisor status output, follow MISP's worker logs, and restart services safely. Most of the day-to-day work is watching queue behaviour and clearing stuck or failed jobs, which an internal platform team can learn from the documentation and a test instance. Outside help is most useful for the first configuration, for diagnosing failures that involve database locks, memory pressure or version mismatches after an upgrade, and for a one-time review of your setup. Decide early who owns the on-call response for a stalled queue, because a worker problem often shows up as missing correlation or delayed sync rather than as a visible error.
What access and time does the work need from our team?
The work needs administrative access to the MISP host, read access to the MISP and Supervisor logs, and a credential that can restart the worker processes without touching the database. Plan for a non-production copy of the instance where configuration can be tested before the production change. Restarting workers can interrupt correlation and sync jobs, so agree a change window with the people who depend on those jobs, and confirm whether your change board needs a written rollback step. If your MISP instance feeds detection tooling, ask who must be informed before a restart. Request a list of the access, approvals and windows the partner will need in the written scope, so your team can book them before work starts.
What drives the cost and duration of worker work up or down?
The main drivers are the age and install method of the instance, the number of hosts running workers, whether a staging copy exists, and how much evidence your change process needs. An instance that follows the official installation layout is quicker to bring under Supervisor than a heavily customised one. Cost also rises with troubleshooting that uncovers unrelated problems, such as stale Python dependencies or an incomplete upgrade. Each cost component is labour: who configures, who tests, who documents and who attends the change window. Ask for a quote that states the assumptions behind each line, names the environment it covers, and lists what happens if a failure needs a separate diagnostic task. Be wary of quotes that do not say what is included.
What should we check in the worker logs after setup?
After setup, confirm that every expected worker process is running under Supervisor, that none is in a restart loop, and that queued jobs move through rather than accumulating. Look for repeated errors in the Supervisor logs and in MISP's own worker output, paying attention to database connection failures, permission errors on cache or temporary directories, and PHP fatal errors after a restart. Record a baseline of queue activity so a later stall is easy to spot. A practical check is to trigger a known action, such as a small import or a publish, and confirm the related job completes. Keep the log locations and restart commands in your runbook so the next person on call does not have to rediscover them.
When does a retainer for MISP operations make sense?
A retainer makes sense when your team cannot reliably cover worker health, upgrades and recovery work within its normal duties, or when a failed queue would disrupt sharing commitments. Ongoing support can include watching worker behaviour after each MISP release, reviewing Supervisor configuration after upgrades, responding to stalled queues, and running scheduled checks. Retainers recur, so the cost is a standing commitment rather than a one-time project fee. Compare a retainer with the cost of an internal on-call rota and with the cost of an outage that delays intelligence sharing. Ask what response expectations, reporting and access the retainer includes, and whether it is priced per instance or per host.
Does DeployOpen offer MISP support as a fixed-scope engagement?
DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. A worker configuration task can be scoped as its own engagement, with the configuration, verification on a test copy, the change window and handover documentation listed as deliverables. Ongoing support, upgrades and testing are available as retainers. DeployOpen does not publish a price list, so a quote follows from the written scope. For MISP itself, the project's own support page describes paid support and third-party providers, which is a useful comparison point when you collect quotes.
How DeployOpen works on this
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, and MISP background workers are handled the same way. The work starts with a written scope covering the queues, Supervisor configuration and the operating procedures your team will follow.
How we scope
- Confirm which MISP release and installation method your instance uses before defining worker changes.
- Map the six background job queues to the features your team relies on, such as sync, enrichment and correlation.
- Agree in writing which hosts, Supervisor files, log locations and restart procedures are in scope.
- Record who approves worker restarts and job clearing in your change process before work begins.
How we build
- Write and review the Supervisor program definitions for the MISP worker processes on your hosts.
- Set log rotation and log locations so failed jobs can be traced without guesswork.
- Test worker restarts, job retries and recovery from a stuck queue in a staging copy first.
- Check that worker settings match the diagnostics and resource limits of your server.
How we hand over
- Deliver a runbook covering starting, stopping and restarting workers under Supervisor.
- Document the steps for reading worker logs, identifying failed jobs and clearing stuck jobs safely.
- Walk your operations team through the runbook and the configuration files that were changed.
- Provide the written list of settings, paths and access rights your team needs to maintain the setup.
How we support
- Fixed-scope engagements have deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and worker reviews after each MISP release are available as a retainer.
- Support covers re-checking Supervisor configuration when your MISP version or installation changes.
- Ask for a written quote that follows from the agreed scope, since DeployOpen does not publish a price list.

