How to plan a Synapse worker migration to generic workers
If your Synapse deployment runs dedicated federation_sender, pusher, synchrotron or client_reader processes, the change you need is to replace those legacy worker types with generic_worker, applied as a staged configuration change rather than a single cutover. The synapse.app.federation_sender and synapse.app.pusher apps are legacy and not recommended for new installations, and generic_worker with federation_sender_instances or pusher_instances takes their place. The older apps client_reader, synchrotron and frontend_proxy are now equivalent to generic_worker, so the work is mostly a mapping exercise followed by careful verification of who handles which traffic.
The supported path starts before you touch the worker layout. Confirm the Synapse release you intend to run and read its upgrade notes in full, because a worker change made on a version that is out of step with your database schema or platform floors compounds the risk. The upstream Synapse workers documentation is the reference for the current worker model. Check that your PostgreSQL and Python versions meet the floors in those notes, since Synapse drops support for versions that have reached upstream end of life. Confirm that every process, including the main process, still connects to Redis for replication, because the workers depend on it.
Once the platform is confirmed, change the layout in stages. Inventory every legacy worker in your current configuration and record the endpoints each one serves, then map each to a generic_worker process that handles the same traffic. Add the federation_sender_instances and pusher_instances settings that name the workers responsible for those duties, and keep the old processes running until the new layout passes checks for federation, push notifications and client sync. Ask your team to confirm, in a test environment that mirrors production routing, that messages, federation traffic and notifications still flow before removing the legacy processes. The rollback path should be written down before you start, since the upgrade notes warn that rolling back can be difficult.
Which legacy worker apps map to generic_worker
This table compares each legacy worker app in an older Synapse layout with what the workers documentation says about it and what your team should change. Read it against your existing worker config file: find each app your layout uses, then follow the action in the last column.
| Legacy app | What the workers documentation says | Impact on existing config | Action for the team |
|---|---|---|---|
| synapse.app.federation_sender | Legacy and not recommended for new installations. generic_worker with federation_sender_instances replaces it. | Worker blocks declaring this app type need a generic_worker equivalent, and the main process must list the worker in federation_sender_instances. | Plan a generic_worker worker that handles federation sending, then confirm the exact key names in the workers documentation for your Synapse version before editing. |
| synapse.app.pusher | Legacy and not recommended for new installations. generic_worker with pusher_instances replaces it. | Pusher worker blocks need conversion, and the main configuration must reference the new worker in pusher_instances. | Convert pusher workers to generic_worker, confirm pusher_instances syntax for your version, and test notification delivery on a staging homeserver first. |
| client_reader | Now equivalent to generic_worker, according to the workers documentation. | The app type is treated as a generic_worker role, so the same worker can serve client traffic without a separate app type. | Relabel the worker as generic_worker and confirm which endpoints the worker's listener serves in the workers documentation. |
| synchrotron | Now equivalent to generic_worker, according to the workers documentation. | Sync traffic handling moves to the generic worker type, so the worker definition and its listener config should be rewritten. | Change the app type to generic_worker and confirm the routing rules in your reverse proxy still send sync requests to the right worker. |
| frontend_proxy | Now equivalent to generic_worker, according to the workers documentation. | The proxy role is covered by generic_worker, so a separate frontend_proxy definition is no longer the expected layout. | Confirm the replacement worker type for each listener, and check that replication and metrics listeners still bind to the addresses your firewall expects. |
How a legacy worker layout maps onto generic workers
The diagram starts at the reverse proxy, which routes client and federation traffic to the workers. Requests reach the main process and the legacy worker roles (federation_sender, pusher, synchrotron, client_reader, frontend_proxy), all of which replicate through Redis. The migration replaces the separate legacy apps with generic_worker instances, and the federation_sender_instances and pusher_instances lists in the main configuration name the workers that take over those duties. Check that every worker named in those lists is running the generic worker app, and that the federation listener sits inside the boundary you have firewalled.
Legacy worker apps on the left map to generic_worker instances on the right, coordinated through Redis.
What each legacy worker type becomes in the new layout
In older layouts, a dedicated process of type synapse.app.federation_sender carried outbound federation transactions to other servers, which took that work off the main process. The current approach runs the process as generic_worker and lists its instance name under federation_sender_instances in the shared configuration, so the main process hands federation sending to the listed workers. The workers documentation is the reference for the exact settings in your version.
- Old role: the legacy app sent outbound federation transactions. The workers documentation marks it as legacy and recommends against it for new installations.
- Replacement: set
worker_apptogeneric_workerin the worker's configuration file, then add its instance name tofederation_sender_instances. - Routing: once the list is set, the main process should stop sending federation itself. Confirm how
send_federationis set on the main process and each worker for your version. - Replication: the worker must reach Redis and the main process. The instance name in its file must match the entry in
federation_sender_instancesexactly, or outbound queues will not be serviced. - Confirm: which instance name the current federation sender uses, whether any federation listener on the old process is still reverse proxied, and that federation traffic on port 8448 or the delegated port reaches the expected host after the change.
Send a message to a room with members on a remote server before retiring the old process, and watch the worker logs for queue errors.
The legacy synapse.app.pusher process delivered push notifications to the push gateways that client devices register with. It handled notification delivery on a separate process so that event handling on the main process stayed lighter. The replacement is a generic_worker listed under pusher_instances, which keeps the same division of labor with the current process model. Notification delivery is outbound traffic, so the network path to push gateways matters as much as the configuration keys.
- Old role: the pusher app delivered push notifications to registered push gateways after events were processed.
- Config: set
worker_apptogeneric_workeron the worker that will handle pushers, add its instance name topusher_instances, and remove the legacy pusher entry from the old worker file. - Routing: confirm that the worker can reach every push gateway your clients use, and that the main process no longer starts pushers once
pusher_instancesis set. Check the setting against the workers documentation for your version. - Replication: pusher workers consume replication streams through Redis. Confirm the instance name matches the shared configuration and that the worker is declared in the instance map used by the main process.
- Confirm: which push gateways your Element desktop, web, and mobile clients register with, and whether any appservice or bridge depends on the pusher process. Verify that notifications arrive for direct messages and mentions after cutover.
Send test messages from one mobile client and one desktop client after the change, and confirm each notification arrives once.
Older layouts split client traffic across several legacy app types. synchrotron served sync requests, client_reader served read-oriented client endpoints, and frontend_proxy accepted client traffic and passed it to other workers. The workers documentation states that these apps are now equivalent to generic_worker, so the migration changes the declared type and the routing around it rather than moving work to a new process model. The work that matters here is the reverse proxy rules and listener resources, which decide which endpoints reach which worker.
- Old roles:
synchrotronhandled sync,client_readerhandled read-only client requests, andfrontend_proxyhandled client traffic and fronted other workers. - Replacement: set
worker_apptogeneric_workeron each of these workers. Their listeners and instance names stay in place unless your layout requires a change. - Listeners: declare the
clientresource on the worker listener where client endpoints are served, and confirm which resources (client, federation, replication) each worker exposes. - Routing: update the reverse proxy so sync and client paths go to the correct worker listener. Use the endpoint list for your Synapse version as the source, and remove any old route that still points to a retired process.
- Confirm: which paths your proxy currently sends to each legacy process, that proxy rules change in the same release as the worker files, and that login and sync latency look normal afterward.
Test a fresh login and a long-running sync from two clients before removing any legacy entries from the proxy or the worker files.
What to inventory and back up before changing worker types
Changing worker layouts touches routing, replication and the database at once, so a failed change can take down client and federation traffic together. The six items below are the records and checks to complete before the first config edit, each with a named sign-off owner. Work through them in order, because the staging rehearsal depends on the backup and the routing table.
Current config and version history
Record the full homeserver.yaml and every worker config file, including the worker_app value and listener blocks for each worker. Keep them in version control with the Synapse release currently running, so you can reconstruct the exact layout that served traffic. Confirm that each legacy worker (federation_sender, pusher, synchrotron, client_reader) is mapped to the generic worker entry it will become. The homeserver owner signs off on this inventory.
Reverse proxy routing table
List every path the proxy sends to a worker, grouped into client, federation and replication endpoints, with the upstream each one reaches. Legacy layouts often route /_matrix/federation and sync paths to specific worker ports, so the table shows which requests move when a worker type changes. Record the listener ports and the hostname used for delegation. The platform or network engineer who owns the proxy signs off.
Redis replication setup
Document the Redis host, port, TLS and authentication settings that every process uses to relay replication. Confirm which workers subscribe to which streams and whether any worker writes to a stream it does not own. A mismatch here often shows up only after restart, so record the expected connection count per process. The platform engineer who runs Redis signs off.
Verified database backup and tested restore
Take a fresh PostgreSQL backup and restore it into a separate instance. A backup that has not been restored is not evidence, so run a count of rooms and events and confirm the restored instance starts. Note the time the backup was taken and any background database updates still running, because these can change the schema during the window. The database owner and the homeserver owner both sign off on the restore result.
Staging homeserver from the same release
Build a staging homeserver from the same Synapse release and a snapshot of the production database, with the same worker layout as production. Use it to rehearse the config change, then run a client login, a room join, a federation request to a test domain and a push delivery. Record every difference from production so the rehearsal result is trusted. The release manager and the staging owner sign off that the rehearsal matches production.
Federation and push monitoring checks
Write down the checks that show federation and push health before the change, then rerun them after each step. Include outbound federation send failures, inbound federation request latency, pusher queue depth and delivery to a test device. Set a rollback trigger for each check so the decision does not depend on who is on call. The operations lead signs off on the thresholds and the on-call rotation.
Synapse worker migration sequence and rollback points
This sequence moves a Synapse deployment off legacy worker apps onto generic_worker in small, checked steps, so each change has a known state to return to if replication, federation or push misbehaves.
Confirm the Synapse release and read its notes
Identify the Synapse release you run and the release you plan to run, then read every upgrade note between them in the upstream upgrade documentation. Record the Python and PostgreSQL floors that apply to the target release, and confirm your hosts meet them before any worker change starts. Take a full database backup and save a copy of the current homeserver configuration and worker YAML files. The step is complete when you have a written list of required changes and a verified backup you can restore.
Rehearse the new worker layout in staging
Copy the production configuration to a staging environment that has a restored copy of the production database. Replace each legacy worker definition with its generic_worker equivalent, add federation_sender_instances and pusher_instances where those roles apply, and start the full set of processes. Your team should confirm that every process connects to Redis and that the main process starts without configuration errors. The step is complete when staging runs the target layout for a period you choose and you have logged every config change needed.
Move federation sending to generic_worker
In production, remove the synapse.app.federation_sender worker definition and assign its sending role to one or more generic_worker processes through federation_sender_instances. Keep the change to this single role so any fault can be traced to it. Check that outbound federation transactions continue to flow to remote servers and that the federation listener still answers. Rollback point: restore the saved worker YAML and homeserver configuration, then restart. If the database schema changed during the upgrade, restore the saved database backup instead of reversing the config alone.
Move push work to generic_worker
Remove the synapse.app.pusher worker and list the generic_worker processes that should handle push through pusher_instances. Send a test notification to a test account on a mobile client and confirm it arrives. Check the Synapse logs for pusher errors over the following interval you choose. Rollback point: revert the pusher section of the configuration and restart. Restore the database backup only if the upgrade altered schema that the old configuration depends on.
Move client-facing legacy apps to generic_worker
Replace client_reader, synchrotron and frontend_proxy definitions with generic_worker processes and update the reverse proxy routing so client endpoints reach the correct worker listeners. Confirm that sync, room join and message send requests succeed from a test client through the public hostname. Rollback point: restore the saved reverse proxy configuration and worker YAML, then restart the affected processes. Keep the proxy change in its own commit so it can be reverted without touching worker config.
Restart and verify replication through Redis
Restart the main process and all workers in a controlled order, then check that every worker registers with Redis and that replication streams advance without errors. Review replication metrics and logs for lag or repeated reconnects. Confirm that events written by one worker appear on clients connected to another. The step is complete when replication is stable across a restart cycle. Rollback point: return to the previous configuration and restore the database backup if replication cannot stabilize and the schema has changed.
Verify federation and push end to end
Test federation with a remote homeserver you control or a cooperating partner, sending a message in both directions and joining a remote room. Repeat the push test from a mobile client. Confirm that the federation listener is reachable only from the networks you intend and that the federation_domain_whitelist setting matches your policy. The step is complete when both paths pass and the results are recorded. Rollback point: restore the last verified configuration if either path fails and the cause is not resolved within your change window.
Retire the legacy worker definitions
After the generic_worker layout has run cleanly through your verification period, delete the old synapse.app.federation_sender, synapse.app.pusher, client_reader, synchrotron and frontend_proxy definitions from every config file and deployment template. Store the final configuration in version control and keep the pre-migration backup for the retention period your policy requires. The step is complete when no legacy app name remains in your configuration and the team has signed off on the new layout. Rollback after this point depends on the saved backup and config snapshot, so confirm both are retrievable before deleting anything.
How to verify federation and push delivery after the switch
Verify the new layout by proving four things: federation traffic reaches the federation listener and remote servers, outbound federation queues drain, push notifications reach devices, and client sync answers through the generic worker. Start with the federation path. Confirm that inbound requests on the federation listener (port 8448 unless you delegated elsewhere) are served by the worker you assigned, and that the federation_sender_instances entries are the processes sending outbound transactions. Then send a test message from a room with members on a remote server and confirm it arrives there. Check that the outbound federation backlog returns to its pre-change level rather than growing after the restart. Confirm the exact listener and routing details against the Synapse workers documentation for your version, because the worker layout is where mistakes hide.
Push is the check most teams skip. After the change, make a test notification to a device on each client platform you support, and confirm the message arrives while the app is in the background. Record delivery time and any failed pusher entries. Then confirm that a sync from a logged-in client returns new events within the time you normally see, which proves the generic worker is answering /sync correctly. Watch replication lag between the main process and workers in your monitoring dashboards, and treat sustained growth as a failure even if messages still flow.
The comparison only works if you recorded a baseline before the change. Capture, at minimum: outbound federation queue depth, time to deliver a test message to a remote server, push delivery time per platform, sync response times, replication lag, and worker CPU and memory. Save the exact homeserver.yaml worker settings and the Synapse version in the same record. Pass criteria depend on your own traffic profile, including room count, federated peers, mobile device count and busy hours, so agree numeric thresholds with your operators before the window opens. Ask your team to confirm what "normal" looks like for each metric over at least one full business cycle, and keep the rollback steps ready in case a check fails.
What makes a worker migration take longer
This table lists the factors that expand a legacy worker migration and explains why each one adds work. Read each row as a question to answer about your own homeserver before asking a partner or your own team for a quote. The main takeaway is that the size of the worker layout matters less than how much of it is undocumented, hand-routed or untested outside production.
| Driver | Why it adds work | What to ask for in a quote |
|---|---|---|
| Number of legacy worker types and instances | Each legacy app (federation_sender, pusher, synchrotron, client_reader, frontend_proxy) must be mapped to generic_worker and its replication role checked. More instances means more config files, more process definitions and more restart ordering to verify. | An inventory of every worker process, its current app type and its listener resources, plus the target generic_worker layout with federation_sender_instances and pusher_instances. |
| Custom reverse proxy routing | Client, federation and sync endpoints are often sent to specific workers by path or header rules. Any hand-written rule that points at a retired app name must be rewritten and tested against real client and federation traffic. | A review of current proxy rules, a route map from each endpoint to its target worker, and a test plan covering client sync, federation and media paths. |
| Redis topology | Workers replicate through Redis. A single shared instance, a Sentinel setup or a separate replication instance each change how the main process and workers connect and what must be restarted together. | Confirmation of the Redis layout, the connection settings for each worker, and the restart sequence for a topology change. |
| ESS or hand-built deployment | An Element Server Suite deployment manages worker configuration through its Helm values, so changes go through values files and a chart upgrade. A hand-built homeserver edits homeserver.yaml and service units directly, so the team must track every file touched. | Whether the change is delivered as values file edits and a Helm re-run, or as direct config and unit file edits, with the rollback path for each. |
| Configuration version control | Without a repository for homeserver config, worker files and proxy rules, the current state is hard to reconstruct and drift between hosts is hard to spot. Migration then starts with reverse engineering the live setup. | Whether the partner will first capture the running configuration into version control, and who owns the repository after handover. |
| Number of environments to rehearse | Each environment (lab, staging, production, disaster recovery) needs its own rehearsal, because worker counts, Redis layout and proxy rules often differ. Results from one environment do not prove the others. | The list of environments in scope, the rehearsal steps for each, and the evidence each rehearsal produces before production. |
| Monitoring already in place | Confirming that the new layout works means comparing sync latency, federation queue depth, push delivery and error rates before and after the change. Without baseline metrics, regressions are found by users. | Which metrics and dashboards exist today, which must be added before the migration, and the acceptance criteria used to sign off. |
| Federation and push traffic volume | Federation sender and pusher workers carry the outbound and notification load. Moving them to generic workers with instance lists changes how that load is shared, so the expected peak must be understood before cutover. | A description of current federation and push load patterns and the cutover window the partner plans around them. |
Why rollback is limited once the database schema has moved
The Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly, so the reversibility of this migration depends on what else changes alongside it. Moving from synapse.app.federation_sender or synapse.app.pusher to generic_worker is usually a change to the worker configuration files and the main process instance_map and replication settings, and reverting those files is normally enough to restore the old layout. The risk comes from combining that change with a Synapse version change or a database upgrade in the same window. If the database has moved to a newer schema, an older release or an older worker layout may no longer start against it, and the config rollback alone will not fix that.
Keep the worker change separate from the release change wherever you can. Run the worker migration on the Synapse version you already operate, confirm that federation sending, push notifications and client traffic behave as expected, and only then plan a version upgrade as its own change with its own rollback point. Before any step that touches the database, including a schema-changing upgrade, take a backup that you have tested can be restored, and record the exact Synapse version and worker config in use at that moment. Treat that backup as the only reliable rollback for schema changes. Your team should also confirm whether the backup covers media files, which the database backup alone does not.
Read the Synapse upgrade notes for every release between your current version and the target before you touch the database, because the constraints on downgrading are stated per release there. Check the notes for each version you pass through, not only the final one, and write down which releases you can return to without restoring a backup. Where the notes say a step cannot be reversed, make the restore procedure part of the change plan and agree on who decides to roll back and how long that decision can take. Synapse upgrade notes are the authoritative reference for these constraints, and the exact limits should be confirmed against them for your target version rather than assumed from this page.
What buyers ask before a worker migration
What drives the cost of replacing legacy Synapse workers, and how do I ask for a quote?
The cost follows the size and shape of the current worker layout, the number of environments that must be changed, and how much testing the change needs before production. A partner's fee covers reviewing the current configuration, writing the target layout, rehearsing the change in staging, running the cutover and documenting the result. Ask for a fixed written scope that lists the workers in the current layout, the target generic_worker instances, the environments covered, the rehearsal and rollback steps, and the handover documents. A quote should separate one-time work from any recurring support or retainer, and state what the client must provide. DeployOpen does not publish prices; a quote follows from the written scope.
How long does a Synapse worker migration take?
The duration depends on how many worker processes exist, how many of them use legacy app types, how complex the federation and push traffic is, and how quickly the staging rehearsal can be scheduled. Teams with a small, well-documented layout and a working staging copy usually finish faster than teams that must first rebuild configuration from scratch or arrange change windows with several owners. The worker documentation sets out the target configuration, but the time needed to verify each process type and run the rehearsal is specific to your environment. Ask any partner to show which steps depend on your change calendar and which depend on the technical work.
What does my team need to provide for the migration?
The migration needs access to the Synapse configuration files, the worker configuration files, the reverse proxy routing rules, and the Redis and PostgreSQL connection details, along with read access to logs and metrics for the current workers. It also needs a staging environment that mirrors production closely enough to test federation, sync and push behavior, and time windows agreed with the teams that own traffic routing and on-call. A named approver should own go and no-go decisions, rollback authority and sign-off on the post-change checks. Confirm these items before scheduling, because missing access to the reverse proxy or a missing staging copy is one of the most common causes of delay.
Can our own team migrate the workers without a partner?
Yes, a capable Synapse operator team can do this alone if it works from the Synapse workers documentation and rehearses the change in staging first. The documentation explains that synapse.app.federation_sender and synapse.app.pusher are legacy and not recommended for new installations, and that generic_worker with federation_sender_instances or pusher_instances replaces them. A partner helps when the team lacks a staging copy, has no one who has run the change before, cannot pause traffic for a rehearsal, or needs an independent review of the target layout before a regulated change window. Decide early which tasks the team will own and which it will hand over.
Do I need to upgrade Synapse before I replace the legacy worker types?
Not necessarily, but the answer depends on your current version and the target generic worker configuration. Read the Synapse upgrade notes for every release between your current version and the target before changing the worker layout, because each set of notes can change configuration or database requirements. Keep in mind that the upgrade notes warn that rolling back can be difficult because of database schema changes, so a worker change and a version upgrade should not share one rollback plan. Many teams separate the two steps, complete the version upgrade in staging and production first, and then change the worker layout in a later window. Your staging rehearsal should use the same Synapse version as production.
How does this change work with ESS Community or ESS Pro?
If you deploy with Element Server Suite, the worker layout is managed through the Helm values rather than by editing Synapse configuration files directly, so the change must be made in the values files and applied with a Helm install. ESS Community is free and intended for non-professional deployments and evaluations, while ESS Pro is for professional and government use and includes Synapse Pro, MAS, LDAP and SCIM integration and auditing. Confirm with Element's current ESS documentation how each chart version exposes worker settings before you copy any example from this page. Keep the ESS values under version control, test the change in a staging release, and treat any manual job listed in the release notes as part of the change plan.
How DeployOpen scopes and delivers a worker migration
DeployOpen plans and implements the move from legacy Synapse worker apps to generic_worker inside infrastructure you control. We start from your current worker layout, agree the written scope, and deliver a tested, documented configuration that your team can operate after handover.
How we scope
- We inventory your current worker config, including any federation_sender, pusher, synchrotron, client_reader or frontend_proxy entries and how they route traffic.
- Engagements are fixed-scope, so the written scope names the worker processes, Redis setup, and routing changes covered before work starts.
- We confirm your Synapse version, PostgreSQL version and Python runtime against the upgrade notes, since those set what the migration can change.
How we build
- We translate each legacy worker into a generic_worker entry, then set federation_sender_instances and pusher_instances to match the intended process layout.
- We update the reverse proxy routing so client, federation and media requests reach the right worker, and verify each route with test traffic.
- We stage the change on a non-production copy of your homeserver first and check replication through Redis before any change reaches live users.
How we hand over
- You receive the final worker configuration files, the routing map, and a record of each legacy worker mapped to its replacement.
- The runbook covers how to restart workers in order, how to roll back the configuration, and what to check after each Synapse upgrade.
- We walk your platform team through the layout so they can add or remove workers without rebuilding the setup from scratch.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, which can cover later Synapse releases that change worker behavior.
- Support can include reviewing configuration changes your team proposes before they reach production.
- Ask for a written quote tied to the agreed scope, including which items are one-time work and which would recur under a retainer.

