Migrating MISP workers from CakeResque to SimpleBackgroundJobs

Older MISP instances that still run background jobs through CakeResque need a planned worker migration, not just a package update. This page covers what changes, how to sequence the move, and what fails if workers are left on the old system.

On this page

How to migrate MISP workers from CakeResque to SimpleBackgroundJobs

An older MISP instance that still runs its background processing on CakeResque needs a planned move, not a quick config edit. The change touches every queue that MISP uses for tasks such as publishing, correlation, enrichment and sync, so the team should treat it as a controlled change with a named owner, a maintenance window and a rollback point. The supported path runs through the MISP 2.5 line. MISP 2.4 is end of life with security fixes only, and the project strongly advises against installing new 2.4 instances, so an instance that stays on 2.4 will not get the full supported worker model. Confirm your current version before you plan anything else.

Plan the move around three areas that fail in different ways. The first is process supervision: SimpleBackgroundJobs workers need to be started, restarted and logged by a supervisor such as Supervisor, and the reader should confirm the exact worker definitions and program names in the release documentation for their target version rather than copying them from an old CakeResque setup. The second is Redis: the team should record the current Redis host, port, database number and any authentication settings, then confirm which of them the new workers read and where they are set. The third is the queue inventory. List every queue that is active on the old system, check which ones carry jobs on a typical day, and confirm that each one has a counterpart on the new system before the old workers are stopped.

The main risk is running two worker systems at once, or stopping the old ones before the new ones consume every queue. Jobs left on a CakeResque queue after cutover can sit unprocessed with no error shown to users, which is easy to miss in a sync-heavy instance. Before cutover, drain or inspect the old queues, confirm that the new workers pick up test jobs on each queue, and keep the old configuration available until the first full day of processing has been checked. Confirm the migration steps against the upgrade notes for your target release on the MISP GitHub releases page, since the exact removal point of CakeResque should be verified there rather than assumed.

What changes in MISP background processing and what each change requires

This table lists each change that affects background processing during the move from CakeResque to SimpleBackgroundJobs, with the effect on workers and the action your team must take. Read it before scheduling the cutover, since several rows depend on the exact release you are moving to. Confirm the release that changed the worker system in the project's release notes before you fix a date.

ChangeImpact on workersAction for your team
Move to SimpleBackgroundJobsQueued jobs are handled by a new worker model, so CakeResque workers no longer consume the same queues once the switch is madeConfirm in the release notes which 2.5 release made the change, then plan the cutover window and drain existing queues first
Redis dependency stays in the stackRedis remains the queue backend, so Redis connectivity, memory and persistence settings still govern job flow after the moveReview Redis settings, confirm the database index and authentication match the new configuration, and monitor queue length during testing
Process supervisor requiredWorkers are long-running processes that must restart after failure or reboot, which the new model expects to be managed externallyInstall and configure Supervisor, define one program entry per worker type, and confirm workers restart cleanly after a host reboot
Removal of CakeResqueLeftover CakeResque workers or cron entries can keep consuming jobs or hold locks, causing duplicate or stalled processingStop and disable every CakeResque process and scheduled entry, then verify no old worker processes remain in the process list
Per-queue checksEach queue (for example, correlation, enrichment, sync and cache jobs) must have a worker assigned after the move, or its jobs wait indefinitelyMap every queue to a running worker, submit a test job for each, and confirm it completes with the expected result in the logs
Database migration system in 2.5.47The release introduced a new database migration system, so schema changes run as part of the upgrade and must complete before workers restartRun database migrations in the documented order, back up the database first, and start workers only after the migration reports success
PostgreSQL supportWorkers connect through the configured database backend, so a PostgreSQL instance changes connection settings and driver behavior for every jobDo not switch database engines during the worker migration unless you have tested it separately; confirm supported combinations with the project
Leaving workers on the old systemJobs may be queued but never processed, sync and correlation can silently stop, and the old and new systems may compete for the same workTreat a worker that still points to CakeResque as a failed cutover, and check queue depth and job logs daily after go-live

Which components the worker move touches

The worker move changes how background jobs are queued, picked up and kept running, so it reaches more than the worker code itself. Each component below plays a distinct part in that chain, and each one should be inventoried before anything is switched off.

The MISP application

The MISP web application and its console commands are what enqueue background work, such as sync, correlation and feed jobs. Before changing anything, record the exact MISP version and the installation path, and confirm which worker-related settings the instance currently uses. Note any custom scripts or cron entries that call MISP console commands, since those depend on the same job system. Confirm the upgrade and migration notes for your version in the release notes before you change the job runner.

MISP releases

Background worker processes

Worker processes take jobs off the queue and run them. In an older instance these are CakeResque workers, and they may be started by hand, by a shell script or by a process manager. List every worker process, its queue assignment and the user it runs as, because each one must have a replacement in the new setup. A worker that is missed during cutover will keep running against an old configuration or stop silently.

Redis as the queue store

Redis holds the queued jobs and is the link between the application and the workers. Confirm which Redis instance, port and database number MISP currently uses, whether it requires authentication, and whether it is reachable from the host where the new workers will run. Check its memory settings and persistence configuration so queued jobs are not lost during a restart. Plan a window where the queue is drained before the switch.

Supervisor as the process manager

Supervisor keeps worker processes running, restarts them after failure and gives you a single place to start and stop them. If Supervisor is not yet installed on the host, that is a prerequisite step, and its configuration files need an owner. Inventory any existing Supervisor programs, their log locations and their restart rules. Confirm that no two systems are starting the same workers during the transition.

MySQL or MariaDB database

The database holds MISP events, attributes and settings, and some job state depends on it. The migration does not change the schema, but you should take a verified backup before the cutover so a failed step can be rolled back cleanly. Record the database version and confirm that the MISP database user has the permissions it needs from the new worker host. Check that long-running jobs are not writing to tables you plan to lock or restore.

CakeResque workers and their configuration

The old CakeResque setup includes worker definitions, queue names and any configuration that tells MISP where to send jobs. Export and save these files before you remove anything, and record which queues each worker listens to. Leaving CakeResque workers running after the switch can cause jobs to be picked up by the wrong system, or leave some queues unprocessed. Remove the old definitions only after each queue is confirmed to be handled by the new workers.

The phases of a worker migration, from inventory to removal

The migration starts with an inventory of the workers and queues the instance runs today, followed by a full backup so every step can be reversed. A test run on a cloned instance catches configuration problems before production is touched. On the live instance, Supervisor is installed, Redis parameters are set, and CakeResque workers are stopped before SimpleBackgroundJobs workers start. Each queue must be checked individually. If any queue fails, the decision point sends the instance back to CakeResque. CakeResque is removed only after every queue passes.

Migration phases from queue inventory through verification, with a rollback branch.

What breaks if MISP workers are left on the old system

The most common failure is silent: jobs keep getting queued, but nothing picks them up. If workers stay on CakeResque after the switch, or a second worker system is left running against a different queue, background tasks can sit in Redis without being processed. The first sign is usually not an error message in the UI but work that never finishes, such as events that do not publish, attributes that do not finish saving or exports that never appear. Before you assume a cause, check each queue your instance uses and confirm which worker system is consuming it, then compare that against the MISP operations documentation for the worker commands and expected job behavior for your version.

Correlation and cache work are the next to fall behind. Correlation is one of the heavier background jobs, and when it is not processed, new attributes are not matched against existing intelligence in a timely way, so analysts may believe there are no hits when the engine simply has not run. Cache rebuilds and other maintenance jobs can also queue up, which shows up as slow searches or stale data after large imports. Ask your team to record queue depth at a fixed time each day during the migration window, and treat a steadily growing backlog as a fault to investigate, not a normal load pattern.

Sync and import tasks are the most visible to partners. Pulls from sync servers, feed fetches and large imports can stall or appear to succeed while leaving events half processed, which creates confusion about what your instance has actually received. Two worker systems reading or writing the same Redis state add a further risk, because jobs can be claimed by the wrong consumer, retried twice or dropped, and the symptoms look like application bugs. Confirm which jobs your instance actually runs, since the impact depends on whether it synchronizes, imports feeds or relies on scheduled correlation, and plan your verification around those jobs first.

How to sequence the worker cutover with checks and rollback points

This sequence moves background processing from CakeResque to SimpleBackgroundJobs one stage at a time, with a check after each stage and a named point to return to the previous worker set. It ends with the new workers running every queue and the old system removed only after a stable period.

  1. Freeze changes and confirm the starting state

    The administrator halts configuration changes, plugin installs, and scheduled maintenance on the instance, and announces the window to the team that depends on it. Confirm the MISP version, the operating system, and the current worker processes are the ones documented in the change record. Check that no one is editing settings during the window. The step is done when the change record names the instance, the version, and the owner who can approve a rollback.

  2. Back up the database and files

    Take a full database dump and a copy of the MISP file tree, including attachments, configuration, and GnuPG keys, before any worker changes. Store the copies off the host so a failed cutover does not remove them. Verify the database dump by restoring it to a scratch system or checking that it loads and that row counts for events and attributes match the live instance. This backup is the first rollback point: if later checks fail, the instance can return to its pre-migration data, though the worker configuration is restored separately.

  3. Record queues and worker counts

    List every CakeResque queue in use, the number of worker processes assigned to each, and how the workers are started on the host. Capture the same information from the job monitoring view or the command line where your version exposes it. Save the output with the timestamp and the service definitions. The step is complete when someone other than the author can read the record and rebuild the same worker set from it. This record is the target for the rollback at the worker stage.

  4. Install and configure Supervisor

    Install Supervisor on the host and create its program definitions for the planned SimpleBackgroundJobs workers, matching the queue names and worker counts from the recorded baseline. Keep the definitions disabled or unloaded at this stage so CakeResque keeps processing jobs. Run the Supervisor configuration check and confirm that it parses the definitions without errors and that it runs under the service account used by the web server. Confirm your MISP version's documentation for the exact program names and paths. The step is done when Supervisor reports the new definitions as valid and the existing workers are unchanged.

  5. Set the Redis settings

    Update the Redis connection settings in the MISP configuration to the values required by SimpleBackgroundJobs for your version, and confirm the database index and authentication match what the workers will use. Keep a copy of the previous settings so they can be restored. Test connectivity from the application user with a simple read and write against the Redis instance, and confirm that CakeResque still connects, since it shares the same Redis service during the transition. Confirm the exact keys with the MISP documentation for your release before editing. The step is done when both systems can reach Redis and the previous configuration is saved.

  6. Stop CakeResque workers

    Stop the CakeResque worker processes in the order recorded in the baseline, and confirm that no job is in progress before the last worker exits. Check the queue depth for each queue so pending jobs are visible and not lost. Record the time of the stop. This is the rollback point for the worker stage: if the new workers fail, restart the CakeResque processes using the recorded counts and the saved settings. The step is done when no CakeResque process is running and the queues show the expected backlog.

  7. Start SimpleBackgroundJobs workers and run queue checks

    Start the SimpleBackgroundJobs workers under Supervisor and confirm each process reports as running. Run the queue checks for every queue in the baseline: confirm that a test job is picked up, completes, and writes its expected result, and that the backlog drains. Watch the logs for errors in the first sync, correlation, and export jobs. If a queue stalls or a check fails, stop the new workers and restart CakeResque from the recorded worker counts. The step is complete when every queue passes its check and the logs show no repeated errors across a full processing cycle.

  8. Remove CakeResque after a stable period

    Keep CakeResque installed but stopped for a period agreed in your change record, while the new workers handle live traffic. During that period, repeat the queue checks, review errors, and confirm that scheduled jobs run as expected. Once the agreed period ends without issues, remove the CakeResque definitions and packages and update the operating runbook to describe only the new workers. Keep the backup and the recorded baseline for the retention period in your policy. The step is done when the runbook and monitoring reflect only SimpleBackgroundJobs and the removal is documented.

How the migration differs by deployment method

On a host built with the official installer, the background workers run as processes on the same machine as the web application, and Supervisor is the process manager that keeps them running. The migration therefore happens in host files and service definitions, and you can inspect every change directly on the server.

  • Worker programs: Identify the Supervisor program definitions that start CakeResque workers, then replace them with the SimpleBackgroundJobs equivalents during the change window.
  • Supervisor files: Remove stale program files for the old workers, because a leftover file can restart the old system after a reboot.
  • Redis settings: Confirm the Redis server, port and database number that MISP reads from its configuration file, and make sure the new workers use the same values.
  • Service account: Run the workers under the same account as the web application so file ownership on attachments and caches stays consistent. Confirm the account your installer used.
  • Scheduled entries: Check cron entries and any scripts that call the old worker commands, and remove or update them.

After a reboot, confirm that only the new workers are running under Supervisor and that the old queues have drained.

What to prepare before the first worker is stopped

Stopping CakeResque workers changes how every queued job runs, so the work starts with a safe state to return to and a clear picture of what the platform does today. The cards below cover the backup, the inventory of job producers, the rehearsal environment, the baseline measurements and the decision owner that together make the cutover reversible and measurable.

Verified database and attachment backup

Take a full database dump and a copy of the attachments and file store, then restore both into a scratch host to confirm they are usable. A backup that has never been restored is an assumption, not a rollback plan. Record the MISP version and the commit or package state alongside the backup so you know exactly what to restore. Confirm that the GnuPG keys and config.php are included, since a restored instance without them will not behave the same way.

Inventory of job-producing code

List every custom module, script, cron entry and integration that enqueues background work, not only the jobs visible in the admin interface. Each producer needs to be checked for calls that push to CakeResque queues directly, because those calls will fail or silently queue nowhere after the switch. Note which jobs run on schedules outside MISP, such as feed fetches or sync triggers, and who owns each one.

Test environment built from recent backup

Restore a recent backup onto a host with the same MISP version, PHP build and Redis setup as production, then run the migration there first. Use it to test Supervisor configuration, Redis settings and queue draining without touching live sync partners. Disable outbound sync and feed pulls in the copy so test jobs do not reach external communities. Keep notes on every step so the production run repeats the same sequence.

Baseline of queue depth and timings

Before changing anything, record queue depth per queue, time to process typical jobs, failed job counts and worker count over a normal working period. These figures show whether SimpleBackgroundJobs is keeping up after the cutover and make slow or stuck jobs visible. Pay particular attention to correlation and cache work, which can be long-running and can hide problems when the queue looks empty. Store the baseline somewhere the operations team can compare against later.

Named owner for go or no-go decisions

Assign one person who can approve the cutover, halt it and authorize a rollback, and who knows the worker, Redis and database state at each step. Without a single owner, a half-migrated instance can sit with some queues on each system for days. Define in advance what counts as a go, such as a clean test run, an empty legacy queue and a successful test job, and what counts as a stop. Confirm who is on call during the first days of operation.

What makes a worker migration take longer

This table lists the factors that change how much work the move from CakeResque to SimpleBackgroundJobs involves. Read each row as a question to answer about your own instance before estimating the effort. The main takeaway is that queue count, custom code and sync dependence matter more than the raw size of the instance.

DriverEffect on the migrationHow to keep it manageable
Job types and queues in useEvery queue that CakeResque runs must be mapped, checked and given a worker under Supervisor, so more queues mean more verificationInventory queues from the current configuration first and retire any that no longer have a job
Custom jobs or plugins that enqueue workCode that pushes jobs through CakeResque calls must be found and changed, and a missed call can silently stop processingSearch local modules and plugins for enqueue calls and test each one after the switch
Redis and Supervisor setupExisting Redis settings, database numbers and Supervisor programs may differ from the defaults, so each one needs review before cutoverRecord the current Redis connection values and Supervisor program files before changing anything
Deployment methodNative installs, Docker builds and configuration management roles each store worker definitions in different places, which changes where edits goConfirm where worker definitions live in your deployment and apply changes in that location only
Data volume and queue backlogA large backlog of pending jobs takes longer to drain during cutover, and jobs left in the old system may not run on the new oneCheck queue depth before the window opens and decide how pending jobs will be handled
Sync partners that depend on timely jobsSynchronization, publishing and feed jobs that stall can delay sharing with partners who expect fresh dataList which partners rely on scheduled pushes and pulls, and plan who is told if processing pauses

What buyers ask about cost, effort and doing the migration themselves

What drives the cost of a MISP worker migration?

The cost is driven mainly by how many worker hosts and queues you run, how much of your current setup is standard, and how much verification you need before you sign off. Cost comes from three parts: planning and inventory of the current CakeResque workers and their queues, the configuration work (Supervisor, Redis settings, removing CakeResque), and testing each queue against real jobs. Ask for a quote that lists each host, each queue to be checked, the staging environment used for rehearsal, and whether the work is a one-time change or includes later support. Because most engagements are fixed-scope, agree on deliverables and acceptance checks in writing before work starts, so the quote reflects a defined end state rather than open-ended hours.

How long does a worker migration take, and what sets that time?

Duration depends on the size of the instance, the number of workers and queues, how far your deployment has drifted from the standard installation, and how many change windows you can use. Plan for a staging rehearsal, a production cutover, and a period of observation after cutover, since some queues only show problems under real load. The project's upgrade guidance and the MISP download page are the right starting point for confirming the supported setup on your MISP version. A specific timeline should come from the written scope after an inventory of your environment, not from a generic estimate.

Can our team migrate MISP workers without a partner?

Yes, a team with Linux, Redis and PHP operations experience can do this in-house, provided it has a tested runbook and a staging copy of the instance. The work is manageable when it is planned as a sequence: install Supervisor, set Redis configuration, start the new workers alongside the old ones, verify each queue, then remove CakeResque. The risks are usually in the details, such as a queue nobody noticed, a job type that fails only under load, or a misconfigured Redis database number. Many teams choose a partner for the inventory and verification steps, or to get a second review before a production change.

What skills and time does our staff need to provide?

Your staff need access to the MISP host and its Redis service, rights to change system services, someone who knows how the instance is used (which feeds, syncs and exports run through background jobs), and time for testing and sign-off. Expect the platform owner to review queue behavior and an operator to watch logs during the cutover window. Confirm in advance who can approve a rollback, who receives alerts during the change, and where configuration changes are recorded. Ask any partner to list exactly what they need from your side in the scope document.

How do we roll back if queues stall after the switch?

Keep the CakeResque workers and their configuration in place until every queue has been verified under normal use, then remove them in a separate step. If jobs stop being processed, stop the new workers, restore the previous worker configuration, restart the old processes, and check that queued jobs are being consumed again. Take a backup of the database and configuration before cutover so you can compare state after a rollback. Write the rollback steps as part of the runbook and rehearse them in staging. Confirm the exact commands and configuration keys against the documentation for your MISP version before the change window.

What should a fixed-scope quote for this migration include?

A useful quote names the instance and version, the number of hosts and workers in scope, the queues to be checked, the staging and production steps, the rollback procedure, the acceptance criteria for each queue, and the handover documents you will receive. It should also state what is excluded, such as upgrades to other MISP components, unrelated hardening or sync partner changes. Ask for one-time costs separated from any recurring support, and for a clear change process if the scope grows during the work. DeployOpen plans and delivers these migrations as fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts.

How DeployOpen scopes and delivers a MISP worker migration

DeployOpen plans the move from CakeResque to SimpleBackgroundJobs as a written, fixed-scope change to your own MISP instance, inside infrastructure you control. The work starts with an inventory of your current queues and worker setup, then covers the build, testing, handover and optional ongoing support.

How we scope

  • We inventory every CakeResque worker, queue and scheduled job on your instance before agreeing the scope.
  • The written scope names the MISP version, host operating system, Redis configuration and Supervisor setup in use.
  • We confirm with you which queues must keep running during the change window and which can be paused.

How we build

  • We install and configure Supervisor and SimpleBackgroundJobs in a staging copy of your instance first.
  • Each queue is checked against its expected job types, and we record what breaks when a worker is missing.
  • We remove CakeResque only after the replacement workers process test jobs correctly on staging.

How we hand over

  • You receive a runbook covering Supervisor program files, Redis settings, restart steps and queue checks.
  • We document the rollback path we tested, so your team knows how to return to the previous workers.
  • Handover includes a walkthrough with your operations staff on monitoring worker health after cutover.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and testing after the migration are available as a retainer.
  • Ask any provider to confirm how they will verify each queue on your own instance before quoting.

Sources and further reading

Talk to our team.

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

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