Why one user joining a huge federated room can slow your Synapse server
The limit_remote_rooms setting and the join rate limits for remote rooms decide which federated rooms a local user may join and how quickly those joins can happen. If your Synapse allows federation, a user can find a large public community hosted on another server and ask to join it, and the request reaches your homeserver as ordinary work regardless of how big that room is. The first sign of trouble is usually not a failed join. It is a slower main process, a busier database and a server that responds more slowly to everyone else on it.
A join to a remote room is not one request. Your homeserver must obtain the room state from a server already in the room, verify the events and signatures it receives, store that state in PostgreSQL, and then keep processing every new event the room produces for as long as the account stays in it. A very large room means more state to store and far more events arriving each hour. Because the main process coordinates this work, a single account can consume capacity that other users need for sending messages, syncing and logging in. Confirm with your own monitoring which process and database queries rise during a large join before you decide how strict the limits should be.
These controls matter most where federation is open and any local user can reach any public room: public community servers, federated hubs and shared hosting where many tenants depend on one homeserver. Start by listing the rooms your users already join and checking whether federation_domain_whitelist restricts federation to the domains you trust. Then read the Synapse configuration manual for your release to confirm the exact option names, defaults and rate limit syntax, and test the chosen values with a non-production account before you apply them to all users.
How a remote room join request passes through Synapse checks
The request starts at a local user's client and reaches the Synapse main process, which applies the federation allowlist before any remote room is considered. The room complexity check and the remote join rate limit then decide whether the join proceeds or fails with an error returned to the client. The federation listener and the main process are the points to verify, since both sit on the path and both are configured separately. Confirm the exact check order against the Synapse configuration manual for your release before relying on it.
Order of checks a remote room join passes through in Synapse, with the outcomes returned to the client.
Which join-limit settings to review and when each fits
This table compares the three Synapse settings that govern joins to large federated rooms, with what each controls, when it fits and what it costs in legitimate use. Read it as a set: the room complexity gate, the remote join rate limit and the federation allowlist protect the main process at different points, so most servers combine them. Confirm exact key names, nesting and defaults in the Synapse configuration manual for your release before editing any config.
| Setting | What it controls | When it fits | Trade-off |
|---|---|---|---|
| limit_remote_rooms (enabled) | Turns on the check that refuses joins to remote rooms above a complexity threshold. | Shared servers where users can browse and join public rooms that are very large or heavily stateful. | Blocks users from joining big public rooms they legitimately want, so expect support requests and a clear reason message. |
| limit_remote_rooms (complexity and complexity_error) | Sets the complexity score above which joins are refused and the message users see when that happens. | Tuning after measuring which rooms cause load on your main process or database; start from observed rooms, not a guess. | A threshold set too low blocks normal rooms, and one set too high leaves the main process exposed. Confirm the score's units in the release manual. |
| limit_remote_rooms (admins_can_join) | Lets server admins join rooms that exceed the complexity limit. | Servers where administrators must join large rooms to moderate, investigate abuse or support users. | Admin accounts become the path around the limit, so restrict admin accounts and audit their joins. |
| Remote join rate limit (rc_joins, remote) | Caps how often local users can join remote rooms over a period, separate from local joins. | Stopping one account or a scripted client from opening many federated joins in a short time. | Slows bulk legitimate activity such as bridges or bots joining many rooms; exempt them deliberately, if at all. |
| federation_domain_whitelist | Restricts federation to an explicit list of remote domains; an empty list disables federation. | Closed or regulated deployments that only need to talk to known partner servers. | Users cannot reach public rooms on unlisted servers, and every new partner needs a config change and restart. |
| Federation listener firewall rules | Limits which network sources can reach the federation port, as the Synapse docs recommend alongside the allowlist. | Any deployment that uses the allowlist, so the restriction also holds at the network layer. | Requires coordination with network and firewall owners, and it must match DNS and delegation settings. |
Choosing join controls by how your homeserver is used
A private or invite-only homeserver mostly joins rooms that a local user was invited to, so the risk comes from an accepted invitation or a followed link into a large remote room. Start by deciding whether remote joins are needed at all. If federation is restricted to a short list or disabled, most of the join question is settled, and the controls below only matter for the exceptions you allow.
- Decide federation scope first: Use
federation_domain_whitelistto list only the partners you trust. An empty list disables federation and removes remote joins entirely. - Set a complexity limit: Turn on
limit_remote_roomswith a threshold based on the room sizes your users actually join, and reviewadmins_bypassdeliberately before you enable it. - Tighten remote join rate limits: Lower the join rate limits for remote rooms so a burst of joins cannot start a flood, and confirm the current option names in the configuration manual.
- Firewall the federation listener: The Synapse docs recommend firewalling the federation listener in addition to the whitelist.
After each change, check the whitelist and the list of remote rooms your users have joined, because one user joining a large room can still load a small server.
A community server that hosts public rooms sees a steady stream of joins to rooms that many people already use, often including large remote rooms that members find through the room directory. The pattern is many users joining the same rooms at similar times, so the join controls have to hold up under that concurrency. Plan these controls around the public rooms your community actually uses, not around an assumed worst case.
- Expect concurrent joins to busy rooms: Public rooms create load on the same state and event tables for every member who joins, so join bursts matter more than total join counts.
- Set complexity limits from observed rooms: Measure the rooms your community joins most, then set
limit_remote_roomsto allow those rooms while blocking the outliers. - Decide how admins are treated: Review whether
admins_bypassshould apply to your moderators, since they may legitimately join large rooms to investigate reports. - Adjust remote join rate limits: Set the remote join limits so normal community activity passes and automated or scripted joins do not.
After launch, watch join latency, slow-room reports and database growth, and revisit the thresholds whenever your community's favorite rooms change.
A server that federates widely with many users joins a broad and changing set of remote rooms, and each join can pull in state from many other servers. Here the join controls share the job with federation capacity, so a join limit alone will not protect the server if outbound federation work is already heavy. Treat join limits as one layer of a larger plan that includes how federation traffic is spread across processes.
- Expect varied join sizes: Remote rooms range widely in size, so the complexity limit has to be a deliberate choice rather than a guess.
- Use complexity limits with exceptions: Apply
limit_remote_roomsbroadly, and keep a documented process for approving joins to large rooms that users need for work. - Limit join bursts per user and server: Keep remote join rate limits conservative so one account or one remote server cannot exhaust capacity.
- Plan federation capacity alongside joins: When outbound federation load grows, workers and federation sender planning become part of the join design, as the Synapse workers documentation describes.
Monitor federation queue depth, join failures, room state growth and the size of the rooms users request most often, and confirm the exact setting names against the configuration manual for your Synapse version.
How to roll out join limits without breaking legitimate rooms
This sequence lets you add a complexity limit on remote room joins with a documented baseline, a tested exemption policy and a rollback path, so legitimate federated rooms keep working while a single account can no longer pull a very large room onto the main process.
Inventory current federation settings
The platform owner reads the live homeserver configuration, not only the template, and records whether federation is open, restricted through
federation_domain_whitelist, or disabled. They also confirm whether the federation listener is reachable from the internet or only from approved networks. Keep a copy of the file with its date. Check: you can state in one sentence which remote domains can federate with your server, who approved that list, and where the federation listener is exposed.Record which remote rooms users join
Using your reverse proxy and homeserver logs, the operator lists the remote rooms your local users have joined over a period that your moderation or support team considers representative. For each room, note its room ID, the hosting server and an approximate member count. Mark rooms whose size cannot be determined. Check: the list covers the rooms that your support or community team says people depend on, and every unsized room has a named owner for follow-up.
Enable the limit in a test environment
The operator builds a staging homeserver with the same release, database and
server_namepattern as production, then copies the production configuration. They enable the remote room limit as documented in the Synapse configuration manual for their release, using threshold values taken from the inventory rather than values remembered from other deployments. Check: staging starts without configuration errors, and the startup log or admin view confirms that the setting is loaded.Reproduce blocked and permitted joins
Using two test accounts on staging, the tester attempts to join one remote room that should exceed the limit and one that should stay under it. For a blocked join, a room that exceeds the threshold may need to be created on a controlled test server, since the test must be repeatable. The tester records the response, the time and the account used. Check: the over-limit attempt is refused with an error, the permitted attempt succeeds, and both results are written down for the change record.
Decide the admin exemption
The security lead and the community or moderation owner decide whether server administrators can join rooms above the limit, which is the purpose of the
admins_can_joinoption. The decision should name who is an administrator, why an exemption is needed for incident response, and who reviews admin joins afterward. The operator then tests one admin account and one standard account on staging. Check: the written decision matches the observed behavior for both accounts, and the reviewer is named.Set the remote join rate limit
The operator adds the rate limit for joins to remote rooms alongside the complexity limit, so one account cannot issue a long run of join attempts against large rooms. They confirm the exact key and its syntax in the configuration manual for their release and set values based on the inventory from the earlier step. They then send a short burst of join attempts from one test account and from a second account. Check: the bursting account receives throttle responses once the limit is reached, and the second account's ordinary joins still succeed.
Apply the change and watch joins
The operator copies the tested configuration to production, keeping the previous file for rollback, and restarts or reloads only as the configuration manual requires for each changed setting. For the first hours after the change, the operator monitors join failures and the main process CPU and memory, comparing them with a baseline taken before the change. Check: the team has recorded the baseline, the rollback file is in place, and the join failure rate and main process load have been reviewed against that baseline.
How room complexity is measured and why thresholds need testing
The complexity figure in limit_remote_rooms is a score that Synapse computes for a remote room and compares against the complexity value in your configuration. The Synapse configuration manual documents the block as a set of keys: enabled, complexity, complexity_error and admins_can_join. The score works as a proxy for the work a join imposes. Before a server can take part in a room, it must process the room's state, which grows with the number of members, the history of membership changes and the state events that accumulate over time. A larger score therefore signals a heavier join. Confirm the exact calculation in the documentation for the release you run, because the method and units are release-specific.
A single threshold cannot fit every homeserver. The cost of processing a large room depends on the CPU and memory available to the main process, the PostgreSQL capacity behind it, whether workers are in use, and how many joins your users attempt at the same time. A value that is comfortable on a well-resourced deployment may let a small single-process server slow down for everyone. The reliable method is to build a staging environment on the same Synapse release, join rooms of known complexity while measuring join duration, database load and memory, and then pick the highest value that keeps those measures inside your own limits. Repeat the tests after each upgrade, since join handling changes between releases and the upgrade notes should be read for each one.
Security and operational risks that join limits do not cover
Limits on remote room joins reduce one kind of load, but they do not close the listener, the spam path, the account path, or the release path. The cards below cover the adjacent risks that a Synapse operator should review alongside the join controls, so the join limits sit inside a wider hardening and audit plan.
Exposed federation listener
Join limits only apply to requests Synapse accepts, so a reachable federation listener still lets any server send traffic to the process. The Synapse docs recommend firewalling the federation listener, and federation_domain_whitelist restricts federation to listed domains. Check which hosts can reach port 8448 and whether the whitelist matches the partners you intend to federate with. Confirm the firewall rule before relying on join limits.
Spam in rooms that are allowed
A room that passes the join limits can still carry spam, phishing links or abusive content, and the join control has no view of message content. Once users are inside, the damage happens through events, invites and media rather than the join itself. Review your moderation tooling, your abuse report process and the media admin controls, and decide who acts on reports and how quickly.
Synapse docsMany accounts to bypass per-user limits
Rate limits for remote room joins apply per local user, so a person who registers several accounts can spread joins across them and keep each account under its threshold. Open registration makes this easy. Review whether registration is open, how new accounts are approved, and whether your rate limit settings are tuned for accounts you actually expect. Compare the per-user numbers against the total joins your server can sustain.
Unsupported Synapse or PostgreSQL versions
Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life, and newer releases can require newer PostgreSQL versions. A server on an unsupported release may lack fixes for the code paths that handle large room state. Record the Synapse, Python and PostgreSQL versions in use, and read the upgrade notes for each release before updating. Rolling back can be difficult because of schema changes, so plan upgrades with a tested backup.
Synapse upgrade notesAudit trail for refused joins
A refused join is a signal of attempted abuse or misconfigured clients, but it leaves no trace unless logging captures it. Without that record, you cannot tell whether limits fire often, which users trigger them, or which remote rooms draw the most attempts. Decide which log lines, retention period and access controls you need for review, and confirm with your compliance team how join attempts fit into your logging policy.
Keeping join limits effective after rollout
Join limits need an owner after rollout, because a setting that worked on the day it was changed can stop working as traffic and Synapse versions change. Review refused-join activity on a regular schedule, looking at which remote rooms users are trying to enter, how often the refusals happen, and whether the same users retry repeatedly. Watch the main process CPU, memory and database load during the busiest periods for remote joins, and compare those readings with the period before the limits were applied. If the main process still spikes when a large room is joined, the limits are too loose for your hardware, or the load is coming from a path the join settings do not cover. Confirm the exact join-related options your Synapse version supports in the Synapse configuration manual before you rely on them in a review.
Revisit the thresholds after every Synapse upgrade. Read the upgrade notes for each release between your current and target version, since behavior around federation, joins and background work can change, and a limit tuned for one release may refuse joins that the new release would handle, or allow joins the old release blocked. Schedule this check into the same change window as the upgrade itself, and test the join path on a staging copy of the configuration before production. Coordinate with the users who depend on large public rooms before you tighten anything: identify the communities and staff who rely on those rooms, tell them what will change and why, and agree on a path such as a supervised join by an administrator or a shorter list of approved rooms. Expect pushback from users whose workflows depend on large rooms, and document any exceptions you grant.
Record every change to join settings in version control or a change log, with the date, the author, the reason and the observed effect. When a user reports that a join failed, support staff can then match the report to the exact configuration in force at that time, and upgrade reviews can show which settings were carried forward, changed or removed. Keep the configuration file, any environment overrides and the worker configuration that handles federation traffic under the same record, because a limit that applies only on the main process can be bypassed by traffic routed elsewhere. Ask your vendor or partner to state in writing which settings they will change, which they will only recommend, and how they will report refused-join trends to you after handover.
Limits to confirm in your environment before you rely on join controls
Join controls for large federated rooms only protect the server if the key names, defaults and code paths match your exact Synapse version and deployment layout. The cards below list what to confirm, where to confirm it, and how to test it before you tell users or auditors that the limit is in place.
Exact key names and defaults
Confirm the spelling, type and default value of every join-related setting in the configuration file for the Synapse release you run. Setting names and defaults change between releases, and an unrecognized key may be ignored without an obvious error. Check the configuration manual for your version, then compare it with the release notes for every version between your current one and the target.
Configuration manualEvery join path covered
Determine whether the limit applies to direct joins, invites, knocks and joins from the room directory, or only to one of these paths. A control that covers only the join button leaves other routes open for a user to reach the same large room. Test each path on a test server with a remote room of known size and record the result.
Worker routing of join requests
Identify which process handles join requests in your deployment. If joins route to a dedicated generic worker, the limit must be enforced there and the main process must receive the same configuration. Confirm this against the workers documentation and your routing map, since a misrouted join request may bypass a control you think is active.
Workers documentationRefused join behavior in clients
Test how each client you support displays a refused join, including Element Web, desktop and mobile clients, and any bridge or bot account your organization uses. Some clients retry silently, show a generic error or leave the room in a pending state. Document the message users will see so that help desk staff can explain it without guessing.
Whether federation changes need a restart
Check whether changes to federation policy, such as the domain allow list or remote room settings, take effect after a configuration reload or require a full restart of the main process and every worker. Restart scope matters when workers hold cached state. Record the procedure and test that a refused join succeeds or fails as expected after the change.
Behavior on rooms already joined
Confirm whether a new limit affects memberships that already exist, or only new joins. Users who joined a large room before the change may keep participating, and the server may still carry the load from those rooms. Decide whether an existing membership needs separate action, and confirm the answer with a test account before you publish the policy.
Questions teams ask before limiting joins to large federated rooms
How much effort does limiting joins to large federated rooms take?
The configuration change itself is small, but the effort depends on how much you need to verify before you trust it. The main drivers are the number of rooms your users already belong to, how open your federation policy is, whether you run a single process or workers, and how much test capacity you can set aside. A server with a short, known list of federated partners is quicker to review than one that federates with the open network and has many active users. Ask any partner to break the estimate into discovery, configuration, testing and rollout, so you can see which part moves if your environment is more complicated than expected.
Can our own platform team limit remote room joins without a partner?
Yes, if your team already runs Synapse, can read its configuration manual and can test changes on a copy of production. The settings are documented in the Synapse configuration manual, and the work is mostly careful review: which rooms your users rely on, which remote servers they reach, and how the limits affect them. Teams without a test server, without recent Synapse operations experience or without someone to explain the change to users often find the validation is the slow part. A partner is most useful for the review and testing, not for typing the configuration.
What access and input does the work need from our team?
You need read access to the homeserver configuration, the ability to restart Synapse in a planned window, and access to logs and metrics that show joins and resource use. A test server that mirrors your version, database and federation settings is strongly recommended. You also need a named owner who can decide which rooms and servers are allowed, and a channel for telling users what changes and why. Ask for a written list of these inputs in the scope, so access requests happen before the work starts rather than during it.
How long does validation take, and what does it involve?
Validation takes longer than the change, and its length depends on how many user workflows depend on federated rooms and how carefully you want to observe the effect. In general, it covers confirming that legitimate joins still work, that large public rooms are refused as intended, that error messages are understandable to users, and that the server stays responsive under the joins you expect. Expect a staged rollout with monitoring between stages. Your partner should give a duration in the written scope, based on the agreed test cases and your environment, rather than a generic figure.
Is a single Synapse setting enough to protect the server?
Usually not on its own. Limiting remote room joins reduces one path to resource exhaustion, but a busy server may also need join rate limits for remote rooms, sensible federation controls such as the federation domain allowlist, and capacity planning for the event and database load that remains. The federation settings also affect who can reach your server at all, so review them together. Treat the limit as one control within a plan that you test against real usage patterns, and ask whether a proposed scope covers the related settings and their interactions.
What changes if we later move Synapse to workers or Element Server Suite?
The limits you define remain the policy you want, but the place where they are configured and the way you verify them can change. In a worker deployment, the main process and workers share configuration and Redis replication, so changes need to be rolled out consistently and tested after any restart. With Element Server Suite, configuration is managed through its Kubernetes deployment, so changes follow that deployment process. Document the intent of each limit now, so it can be reapplied and checked after a topology change. Ask a partner how the scope would carry over to a worker layout or ESS.
How would a partner price this work?
DeployOpen does not publish a price list. A quote follows from a written scope that states the systems covered, the number of environments, the test cases, the deliverables and the timeline. The cost components are the discovery and review of your federation and room usage, the configuration and documentation, the test server work, the validation, and any user communication support. Most of this is one-time work, while monitoring and periodic review of the limits may recur. Ask for the quote to list each component separately so you can see what would change if your scope grows.
Does DeployOpen guarantee that large rooms will stop affecting our server?
No engagement can guarantee that. DeployOpen plans and implements the limits, tests them against the cases agreed in the scope, documents the configuration and hands over the results. Server load also depends on factors outside the limit, such as the activity of your own users and the behavior of remote servers. The written scope should state exactly what is tested and what is delivered, so you can judge the outcome against agreed criteria.
How DeployOpen scopes and delivers Synapse join controls
DeployOpen approaches join controls for Synapse as one part of a planned homeserver deployment inside infrastructure you control. We start from how your users actually join federated rooms, then set and test the remote room limits, document them, and hand them to your operators with a plan for ongoing support.
How we scope
- Inventory which public and federated rooms your users already join and which ones create load on the homeserver
- Agree in writing which join limits, rate limits and federation boundaries are in scope before work starts
- Confirm the Synapse version, database platform and worker layout that the controls must fit
- Record who approves federation partners and who owns changes to the allowlist after handover
How we build
- Configure the remote room limit and join rate limit settings in a staging copy of your Synapse configuration
- Test joins to a range of small, medium and very large federated rooms and record how the server responds
- Check that federation_domain_whitelist and firewall rules agree with the join policy you chose
- Review the configuration changes against the Synapse upgrade notes for your target release
How we hand over
- Deliver the written configuration, test records and a short runbook for changing limits safely
- Document the monitoring signals your operators should watch for slow rooms and join pressure
- Walk your platform and moderation staff through the controls and the reasons behind each setting
- Provide a rollback procedure that matches your database and release constraints
How we support
- Engagements are fixed-scope, and the written scope defines deliverables and timelines
- Ongoing support, upgrades and continuous testing are available as a retainer
- Retainer reviews can re-test join controls after each Synapse upgrade or policy change
- A quote follows from the written scope, and DeployOpen does not publish a price list

