Sizing Element and Synapse in openDesk with and without federation

Synapse and PostgreSQL load in openDesk chat grows with users, active rooms and federation traffic. This page shows which inputs to size, how federation changes them, and which worker and autoscaling options to confirm before go-live.

On this page

Sizing Element and Synapse in openDesk for chat users

The chat tier in openDesk is Element on a Synapse homeserver backed by PostgreSQL, and both federation and worker processes change how much homeserver and database capacity you need. If you are a public body or regulated organization planning chat for a set number of users, start by writing down three inputs: the headcount, whether those users will exchange messages with people on other organizations' servers, and the openDesk release you will deploy. Sizing depends on all three, so keep them together in every request for figures you send to the project or to a partner.

The per-10,000-user figures for homeserver and PostgreSQL capacity must come from two places: the openDesk sizing guidance for the release being deployed, and a load test in your own environment that reflects your own network, storage and identity setup. Treat the published guidance as the starting point and the load test as the check. Ask for the guidance in writing, including the release it covers and the assumptions behind it, such as concurrent users, message rate and the number of rooms per user. Get both the guidance and the test plan in writing before you commit budget to Synapse nodes, PostgreSQL instances or their backups, because a figure you cannot trace to a release and a test is only an estimate.

Federation and workers each add a planning step. If federation is enabled, Synapse listens on port 8448 by default, and the federation_domain_whitelist setting controls which domains can reach you, so confirm the allowed list and the firewall rules before you size the federation listener. If you add worker processes, Redis relays replication between the main process and the workers, and the generic worker serves client, federation and event traffic, so Redis and the worker count belong in the same estimate. Confirm the PostgreSQL version too: openDesk expects PostgreSQL 15 in production, and Synapse 1.143.0 and later require PostgreSQL 14 or newer. Synapse's upgrade notes also warn that rolling back can be difficult because of schema changes, so run each load test on a staging copy built from the release you will deploy. See the Synapse workers documentation for how the worker processes fit together.

Which Synapse sizing options fit which deployment

This table compares the Synapse configuration choices that change homeserver and PostgreSQL sizing in openDesk, from closed federation to open federation and Enterprise-only scaling. Read each row as a condition to check against your organization's federation policy and monitoring data before choosing. The main takeaway is that federation settings and worker design should be decided before sizing, because each one changes the load the homeserver and database carry.

OptionWhen it fitsWhat to confirm with ZenDiS or the vendor
Federation disabled (empty federation_domain_whitelist)Internal-only chat where no user talks to another organization's Matrix server.Confirm that the openDesk chart sets this list and that the federation listener is firewalled as Synapse recommends.
Federation limited to a named list of domainsPartner agencies or municipalities that must reach each other on a fixed set of domains, with the list kept under change control.Confirm with ZenDiS how the domain list is set in openDesk values, who approves changes, and whether delegation to port 443 is needed.
Open federation on port 8448, no delegationAny remote Matrix server may federate, and the server_name host itself answers on port 8448.Confirm the port 8448 listener, DNS and TLS certificate path in your ingress and firewall, and the server_name value before go-live.
Open federation with delegation to port 443User IDs keep the organization domain while the Synapse host sits on another name, reached through port 443 delegation.Confirm the .well-known delegation target, certificate coverage and that the chart's ingress routes it; test federation from an outside server.
Generic worker processes with RedisFits when monitoring shows the single Synapse process saturating under chat load. Redis must be a production service you operate.Confirm with ZenDiS whether the openDesk chart deploys generic workers, which worker types it supports, and the Redis version it expects.
Enterprise-only load scaling optionsFits production deployments that already run openDesk Enterprise Edition, which ZenDiS recommends for production.Confirm with ZenDiS which Synapse components scale automatically, the metrics used, and what Community Edition operators do instead.

How federation changes the sizing inputs

With federation disabled, or limited to a whitelist, the Matrix traffic you have to size stays within a known set of users and servers. Synapse's federation_domain_whitelist setting restricts federation to the domains you list, and an empty list disables federation entirely. Load then comes mostly from local clients, local rooms and the events they create, plus any traffic from the listed partners.

  • Inbound federation traffic: Only listed domains can send requests, so this load grows with the partners on the list, not with new servers that appear on the internet.
  • Outbound federation traffic: Events go only to servers that share a room with a local user, so it stays small when the partner list is short.
  • Event processing: Local message volume drives the main process and any workers, and the generic worker handles client, federation and event traffic.
  • Federation listener: The Synapse documentation recommends firewalling the federation listener, so restrict it to the agreed peers at the network layer.
  • Database writes: Writes come from local users and the rooms they create or join with partners, so the write rate tracks local activity.

Check that the whitelist matches the partner list in your change records before go-live.

Where client, replication, database and federation traffic meet

This illustrative diagram starts with Element clients sending client API traffic to the Synapse main process and to the workers. The main process and workers exchange replication messages through Redis, and both read and write shared state in PostgreSQL. Remote homeservers reach the federation listener either on port 8448 or through delegation on port 443. The federation listener and the federation_domain_whitelist sit inside a trust boundary, so check that the whitelist lists only the partners you intend to federate with and that the listener is firewalled, as the Synapse documentation recommends.

Illustrative layout of client, worker, Redis, database and federation traffic.

Setup sequence for sizing Element and Synapse in openDesk

This sequence takes a team from a pinned openDesk release to a Synapse sizing decision it can defend before go-live. Each step ends with a check, so a failed check stops the work before load is applied. The output is a verified configuration, a load test record, monitoring comparison and a tested rollback plan for the Element and Synapse components.

  1. Confirm the openDesk release and versions

    Identify the openDesk release you will deploy, starting from the project's GitLab releases page (v1.19.1 was the latest at research time), and read its release notes for the Synapse and PostgreSQL versions it ships or expects. Platform engineering owns this step, with the release notes as the source. Confirm that your Kubernetes cluster meets the documented requirements, including v1.33 or later, and that Helm and Helmfile versions match the requirements. Check: a written version record for openDesk, Synapse and PostgreSQL that every later step references, with the release confirmed as the latest minor version, since only that version is supported.

  2. Decide federation policy and server name

    Decide before any sizing whether this deployment will federate with other Matrix servers and which domains, if any, may connect. Set the server_name once, because it fixes how user and room identifiers are formed, so treat it as permanent. If federation is on, define federation_domain_whitelist as an explicit list, since an empty list disables federation. Plan delegation if users will sit on a host other than the server name. Check: a policy signed off by the security owner that records the server_name and allowed domains. Federation on and federation off produce different load scenarios, so this decision sets the test plan.

  3. Choose the Synapse worker layout

    Select the process layout for Synapse before provisioning. Decide whether a single main process handles the expected load or whether dedicated workers are needed for client, federation and event traffic. Every process, the main process and all workers, connects to Redis, which relays replication between them, so Redis must be provisioned as a production service and sized with the layout. Ask ZenDiS which worker types the release supports in Community Edition and what the Enterprise Edition adds for scaling these processes. Check: a layout diagram listing each process type, its replica count and its Redis connection, reviewed by the platform team.

  4. Provision PostgreSQL at a supported version

    Provision PostgreSQL outside the cluster as a production-grade service at a version that meets both the Synapse minimum and the openDesk production expectation. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and openDesk's production requirements list PostgreSQL 15, so plan against PostgreSQL 15 unless the release notes state otherwise. Agree storage, connection limits and backup schedules with the database owner. Check: connect from a Synapse test pod, query the server version and confirm the expected major version is running, with the result recorded before the load test begins.

  5. Deploy and verify federation and worker connections

    Deploy the release to a staging environment that mirrors the planned layout, then verify the paths sizing depends on before applying any load. Confirm that the federation listener, which Synapse serves on port 8448 by default, accepts connections only from domains on your allow list. Test once from an allowed host and once from an unlisted host, and firewall the listener at the network layer as the Synapse documentation recommends. Then confirm that each worker process connects to Redis and that PostgreSQL connections stay within limits. Check: a test log showing the allowed and blocked federation results and the worker-to-Redis connections. Failing either check stops the sequence.

  6. Run load tests for login, messaging and federation

    Run load tests with scenarios for login through the identity provider, message sending and room sync from Element clients and, if federation is on, inbound and outbound traffic with a partner test server. Use a written base, saturation and recovery approach: measure base performance first, raise load until latency or errors increase, then confirm that the system recovers after load drops. Ensure the load generator does not become the bottleneck. Check: a report listing each scenario, the concurrency reached, error rates, the saturation point and recovery results, signed off before the sizing is accepted.

  7. Compare load results with monitoring

    Compare the load test results with the metrics your monitoring stack recorded during the same run. Cover request latency, CPU and memory for each Synapse process, PostgreSQL connections and query time, Redis activity and federation traffic. Where the two sources disagree, find the cause before accepting the sizing, since a load generator limit, a missing dashboard or a misconfigured worker can each produce misleading numbers. Adjust worker counts or PostgreSQL resources, then rerun the affected scenario. Check: a sizing record that ties each resource figure to a measured value in both the load test and monitoring, with every gap explained.

  8. Record and test the rollback plan

    Write the rollback plan for the Element and Synapse components before go-live. The Synapse upgrade notes warn that rolling back can be difficult because of database schema changes between releases, so the plan must start with a PostgreSQL backup taken before each change and a restore that has been tested. Also record the previous openDesk release and chart versions, the order for reverting the main process and workers, and who decides to roll back. Confirm the upgrade path with the openDesk release management notes. Check: a dry-run restore in staging completes, and the platform owner and security owner sign the plan.

What PostgreSQL and Redis add to the chat tier

Synapse recommends PostgreSQL for production. SQLite is supported, but the Synapse documentation treats PostgreSQL as the database to plan around, so the chat tier's sizing should assume PostgreSQL from the start. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and openDesk expects PostgreSQL 15 among the external production services you provide. Confirm with ZenDiS which PostgreSQL major version your openDesk release is tested against, and size the database for that version and its support window, not for the minimum that Synapse accepts.

Redis is the second stateful dependency in this tier. The main Synapse process and every worker connect to it, and Redis relays replication between those processes, so treat it as a coordination dependency and not only a cache. openDesk expects Redis 7 as a production service. Version currency belongs in the sizing plan too: Synapse drops support for Python and PostgreSQL versions once they reach upstream end of life, and 1.142.0 and later require Python 3.10 or newer. Schedule a recurring check that compares your PostgreSQL, Redis and Python runtimes with upstream support dates, and plan the database upgrade before Synapse forces it.

Plan every Synapse upgrade as a one-way change until you have proven otherwise. The Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases may not be reversible by redeploying the previous image. Before each upgrade, take a PostgreSQL backup, restore it into a test environment, pin the Synapse image by version, and read the notes for every release you cross. openDesk's release management also says that skipping several minor versions may need intermediate steps. Agree in writing who owns the restore runbook, and rehearse a rollback outside production before you rely on it.

Security settings that change with the sizing choice

Whether your Synapse homeserver federates with other organizations changes which controls you own. Each card below names one setting to configure and one check to run, covering federation, login, licensing, artifact trust and access to the database and Redis.

Federation policy and listener firewall

Synapse federates on port 8448 by default, and delegation can serve user IDs such as @user:example.com from another host on port 443. The federation_domain_whitelist setting limits federation to listed domains, and an empty list disables federation entirely. The Synapse documentation also recommends firewalling the federation listener. Set the whitelist to the partner domains your policy approves, fix server_name before any users exist because it determines how users and rooms are identified, and confirm from outside your network that only the intended paths reach the listener.

Federation docs

SSO through OpenID Connect

Synapse accepts single sign-on through OpenID Connect providers configured under oidc_providers. Login then depends on the identity provider, so the openDesk identity layer and the Synapse configuration must agree on which account maps to which Matrix user. Check that the claim used for the Matrix user ID is unique and stable, that departed or disabled accounts cannot log in, and that password login is turned off wherever SSO is the approved path. openDesk's documented federation matches users by username or another attribute such as mailPrimaryAddress, so confirm which one your setup uses before go-live.

openDesk IdP federation

SAML2 or CAS in Synapse configuration

Synapse also supports SAML2 through saml2_config, which uses pysaml2, and CAS. Each adds its own configuration block, trust material and attribute mapping, and each opens a login path that needs the same review as the OpenID Connect path. Enable one only when your identity source requires it, and confirm that the openDesk documentation for your setup supports the combination. For any SAML2 or CAS path, check signing certificate rotation and the attribute used for the Matrix localpart, then record every enabled login method so reviewers can see each route into the homeserver.

Synapse config manual

AGPL-3.0 terms and the Element change

Synapse is distributed under AGPL-3.0, and Element also sells commercial licenses. On December 13, 2023, Element announced that future Synapse contributions would be licensed under AGPLv3 instead of Apache 2.0, moved the repositories to element-hq on GitHub, and began selling AGPL exceptions, with contributors signing a CLA. If you modify Synapse and users interact with it over a network, the AGPL terms may require you to offer them the corresponding source. Ask counsel to confirm how this applies to your patches and to any Synapse Pro components, and record the license that governs each component.

Element announcement

Signed and pinned openDesk artifacts

openDesk signs and validates most Helm charts against GPG keys, pins every container image by tag and digest, and signs the images it builds with cosign. This keeps the Synapse image that runs identical to the one that was reviewed, but only while your pipeline keeps those pins. Verify that chart signatures validate in your environment, that image references use digests rather than floating tags after every update, and that any registry mirror copies digests unchanged. Treat each change to a pin as a reviewed change, and record the openDesk release in use, because only the latest minor version is supported.

openDesk security docs

Operational access to PostgreSQL and Redis

Synapse keeps its data in PostgreSQL, and the main process and every worker connect to Redis, which relays replication between processes. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and openDesk expects PostgreSQL 15 among its production services. Restrict which hosts, pods and operator accounts can reach both stores, give Synapse its own database credentials, and confirm Redis is reachable only from Synapse processes. Schema changes between Synapse releases can make rollback difficult, so test a PostgreSQL backup and restore before each upgrade.

Synapse workers docs

Questions buyers ask about sizing Element and Synapse in openDesk

How much effort and what cost components does a Synapse sizing exercise carry?

The sizing exercise costs time from architects, platform engineers and the people who own your usage data, plus the test environment and tooling needed to run it. The main components are discovery of active users, concurrency and message volume; a sizing model covering Synapse, its PostgreSQL database, Redis and any workers; a test environment inside your infrastructure; and a written report that states the assumptions behind each figure. Most of this is one-time work, but the test environment and the monitoring you keep afterwards recur. Cost rises with the number of user groups, whether federation is in scope and how many environments must be validated. Ask for a quote that separates discovery, sizing, load testing and reporting into distinct line items, so you can see which parts your own team could take over.

How long does a Synapse sizing and load test take, and what drives it?

The duration is set in the written scope, so ask for it as milestones with the assumptions behind each one. The main drivers are how many environments you need to test, whether federation is in scope, how well defined your user scenarios are and how quickly a test cluster matching production can be provisioned. Load tests need Synapse, its workers, Redis, PostgreSQL and the reverse proxy deployed the way they will run live, so infrastructure readiness often sets the pace. Each test cycle runs a scenario, reads the Synapse and database metrics, changes one setting and runs again. Ask the partner how many test cycles the scope includes and what a retest after a failed run would involve.

What does the sizing work need from our own team?

The work needs named people on your side who can decide on expected scale, access and the test environment. Expect to provide:

  • Expected active users, peak concurrency and typical message and room activity for each user group
  • A Kubernetes cluster for testing that matches production, with PostgreSQL 15 and Redis 7 as openDesk expects for production services
  • Access to monitoring, and someone who can read Synapse and database metrics
  • A decision on whether federation is enabled and which domains are allowed
  • A test window where load can be generated against non-production systems

Keep the PostgreSQL version in mind as well, since Synapse 1.143.0 and later require PostgreSQL 14 or newer.

Can our own platform team size Element and Synapse without a partner?

Yes, a platform team with Kubernetes, PostgreSQL and Matrix operations experience can do the sizing internally, provided it has time to run repeatable load tests. The arithmetic is the easy part. Test design, federation traffic patterns and failure behavior under saturation are where internal estimates usually go wrong. Start from the openDesk requirements documentation, confirm any per-component guidance with ZenDiS for your release, and check the worker layout against the Synapse workers documentation. Internal teams also need a tested method for recovery after overload and a monitoring plan for go-live. Bring in a partner for the parts you lack, such as an independent review of the test plan.

How does federation change the cost of running Element and Synapse?

Federation generally adds inbound and outbound traffic and more work for the homeserver, so CPU, memory, database and network load usually grow. The size of that increase must be measured in your environment, not assumed. Synapse federates on port 8448 by default, or through delegation on port 443, so the federation listener, its certificates, DNS and firewall rules need planning that a deployment without federation may not need. The federation_domain_whitelist setting limits which domains can connect, and an empty list disables federation, which narrows both the sizing scope and the exposed surface. Each allowed domain widens the traffic profile you must test. Ask the partner to size both modes separately, so federation appears as its own cost line.

When is Enterprise autoscaling worth requesting for Matrix components?

Consider it when load varies enough that fixed capacity either wastes money or falls short at peak, and when your team cannot respond to scale events by hand. openDesk Enterprise Edition includes automatic load scaling for Collabora, and it offers autoscaling options for the Matrix side as well, so confirm exactly which Matrix components and workers are covered before you rely on them. Community Edition is supported only by the community with no SLA, so capacity planning for Matrix stays with your team. Ask which metrics trigger scaling, whether the scaling respects the Synapse worker types, and what happens to federation and active calls during scale-down. Edition choice should also reflect your support and SLA needs, not scaling alone.

Limits to confirm before you commit to numbers

Five open items decide whether any sizing figure holds for your deployment. Put each one to ZenDiS, the openDesk community on openCode, or your own test environment before you commit to node counts or database tiers.

Source and release of the figures

The per-10,000-user figures are only as reliable as the test that produced them. Ask ZenDiS which openDesk release they were measured on, what user activity the test simulated, how many rooms and federated peers were involved, and whether the run used Community or Enterprise components. Treat any figure without a named release and test profile as unverified. Then compare that release with the one you plan to deploy, since the latest release at research time, v1.19.1, was published on 2026-10-06 and may differ from the release the figures came from.

openDesk releases

Autoscaling of Synapse and HAProxy

ZenDiS lists automatic load scaling among the Enterprise features, but the listed feature names Collabora, not Synapse workers or the Element Pro HAProxy. Ask ZenDiS whether the Enterprise release you would deploy creates autoscalers for either component, which metrics drive them, and what minimum and maximum replica counts they use. Do not plan capacity around autoscaling until ZenDiS confirms it in writing. If it is absent, you will size for peak concurrency and scale replicas by hand, which changes the cluster budget and the staffing needed to watch it.

Enterprise Edition docs

Synapse version pinned by the release

Each openDesk release pins one Synapse version, and that pin decides which upgrade notes, Python floor and PostgreSQL floor apply to your cluster. Ask ZenDiS for the Synapse version in the release you plan to deploy, and whether the Element Pro HAProxy and worker images come from the same build. The newest upstream Synapse release listed on GitHub is v1.163.0, published October 14, 2026. The pinned version may be older than the upstream release, so the pin, not the upstream version, sets your sizing baseline.

Synapse releases

PostgreSQL version and support status

openDesk expects production PostgreSQL 15 as an external service, and Synapse 1.143.0 and later require PostgreSQL 14 or newer. Ask ZenDiS whether the release you deploy has been tested on PostgreSQL 15 and which major versions the sizing figures assume. Then check the upstream PostgreSQL support calendar against the planned life of the cluster, because Synapse drops support for a PostgreSQL version once it reaches upstream end of life. Confirm the end-of-life date before you buy hardware or sign a managed database contract.

openDesk requirements

Rollback limits of Synapse upgrades

Synapse's upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly. openDesk adds its own limits: only the latest minor version is supported, in-place upgrades between majors are not guaranteed, and skipping several minor versions may need intermediate steps. Ask ZenDiS for the documented rollback procedure, whether it depends on a database snapshot, and how long your team has to decide whether a failed upgrade needs a restore. Plan for a restore from backup as the rollback path.

Synapse upgrade notes

How DeployOpen scopes and delivers Element and Synapse sizing

DeployOpen plans Element and Synapse sizing for your openDesk chat users as part of a fixed-scope engagement, with the scope agreed in writing before work starts. We size the homeserver and PostgreSQL tier, document how Matrix federation changes the load, and check every figure against your monitoring. Ongoing support is available as a retainer.

How we scope

  • The written scope names the openDesk release, Kubernetes cluster and Synapse version in use.
  • We confirm whether federation is open, closed or limited by a domain allowlist before sizing starts.
  • Deliverables, exclusions and acceptance checks are agreed in writing before any sizing work begins.

How we build

  • Configure Synapse against PostgreSQL 14 or newer for releases 1.143.0 and later, the version floor in its upgrade notes.
  • Set server_name, the federation listener and delegation before users are created, since user IDs depend on them.
  • Wire Synapse workers through Redis for replication, and test the generic worker's client and federation traffic separately.

How we hand over

  • A sizing report lists per-component CPU, memory and PostgreSQL figures, with the assumptions behind each number.
  • Federation and worker configuration is documented, including the allowlist, the default port 8448 listener and any reverse proxy rules.
  • Monitoring baselines and alert thresholds for Synapse and PostgreSQL are handed over with named owners.

How we support

  • Ongoing support is available as a retainer that can include Synapse upgrades and sizing re-checks after release changes.
  • Synapse upgrades are planned with the upstream notes in hand, because rollback can be difficult after schema changes.
  • ZenDiS recommends Enterprise Edition for production, so we confirm the edition before sizing starts.

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.