When Matrix autoscaling in openDesk Enterprise is worth enabling
An operator running a large openDesk chat deployment will eventually ask whether the Matrix pods can grow with load. The autoscaling scope covers HorizontalPodAutoscalers for the Element Pro HAProxy, the Matrix Authentication Service and the Synapse workers in openDesk Enterprise. Automatic load scaling is documented as an Enterprise-only feature for Collabora, but that does not settle the Matrix case. Verify the Matrix settings in the Enterprise README and chart values before anyone relies on them, and record the exact keys and versions your release uses. Treat the autoscaler as a setting you size against your own measured load.
An autoscaler changes one thing: the replica count of a Deployment. When measured load crosses the thresholds you set, Kubernetes adds or removes pods of the HAProxy, the Matrix Authentication Service or the Synapse worker Deployments. It does not change the PostgreSQL database, the Redis instance that relays replication between Synapse processes, the Synapse main process, or the upstream identity provider that signs users in. Each of those stays a fixed capacity you must size yourself. A busy worker pool can therefore push more queries at PostgreSQL and more replication traffic through Redis, so check those components' headroom before you raise the maximum replica count.
Community Edition is a different case. It is supported only by the community on openCode, with no SLA, so no vendor commitment stands behind the scaling settings or the upgrade path. If your chat service carries production load and needs SLA-backed support, the Enterprise Edition is the edition ZenDiS recommends for production, and it is the edition in which these autoscalers apply. Before you enable anything, run a load test against the current release, confirm that the autoscaling metrics are being collected, and set minimum replica counts that keep the service up if scaling lags a traffic spike. Ask for the written scope of which Matrix Deployments are autoscaled in your release.
How the Matrix components and their shared stores fit together
The diagram starts with users reaching the ingress controller inside the openDesk cluster. Login requests go to the Matrix Authentication Service, which hands authentication to the upstream identity provider outside the cluster. Client traffic passes through the Element Pro HAProxy to the Synapse generic workers and the Synapse main process. Every Synapse process uses Redis for replication and external PostgreSQL for state, and both sit across the trust boundary. Before you add autoscaling, confirm each HPA target in your Enterprise release, and confirm that Redis and PostgreSQL have capacity for the extra Synapse processes.
Client traffic, login and shared stores across the cluster boundary.
Which scaling option fits each Matrix component
This table compares the scaling options for the Matrix components in openDesk Enterprise: HorizontalPodAutoscalers, the Synapse generic worker, fixed replica counts and the Community Edition path. Read each row for what changes, when the option fits and what you must confirm in the Enterprise chart before writing any configuration. The main takeaway is that autoscaling depends on metric sources and value keys that you verify first.
| Option | What it changes | When it fits | What to confirm |
|---|---|---|---|
| Element Pro HAProxy (HPA) | Scales the HAProxy pods that front Element Pro traffic between a minimum and maximum replica count. | Proxy load varies through the day and the deployment serves production chat users. | The HPA metric source, the minimum and maximum value keys and the resource requests the chart sets. |
| Matrix Authentication Service (HPA) | Scales MAS pods that handle sign-in and token requests for Matrix clients. | Login spikes at the start of the working day or after an outage, since MAS sits in every login path. | The HPA metric source, replica bounds and the shared database connection limits that each extra pod adds. |
| Synapse workers (HPA) | Scales Synapse worker deployments on a load metric between set minimum and maximum counts. | Sync, message or federation load grows unevenly across worker types. | The metric source for each worker type, the value keys per worker and whether Redis capacity keeps pace. |
| Synapse generic worker | Adds a worker that serves client, federation and event traffic, coordinated through Redis. | Client, federation and event traffic need more capacity than the main process can carry. | Which traffic types each worker handles, how many workers the chart creates and the Redis sizing. |
| Fixed replica counts in chart values | Sets a fixed replica count for each component, so capacity changes only when you edit values and redeploy. | Headcount and concurrency are stable and predictable, and your team prefers manual control. | The exact replica value keys for each component and the per-pod CPU and memory requests. |
| Community Edition path | Operators set replica counts and resources themselves in their own manifests, with no automatic load scaling. | Your team runs the open-source edition and can watch metrics and resize components itself. | Which replica and resource settings your release exposes, and who owns resizing and monitoring. |
Why worker pods rarely remove the database bottleneck
Adding worker pods does not remove the database bottleneck, because the Synapse main process and every worker connect to the same Redis instance. Redis relays replication between those processes, so each worker you add increases replication traffic on Redis. Each worker also reads from and writes to PostgreSQL, so the load you scale out lands on the shared data layer. The HorizontalPodAutoscaler on the worker pods will add pods when their own resource use rises, but it adds no capacity to Redis or PostgreSQL. Before you raise the worker replica ceiling, check Redis and PostgreSQL CPU, connection counts and latency in your monitoring, and set the ceiling no higher than those services can support.
The version floors make this a planning question as well as a sizing one. Synapse 1.143.0 and later require PostgreSQL 14 or newer, and openDesk expects PostgreSQL 15 as an external production service. Confirm that the database you provide meets the openDesk expectation, and check the Redis version as well, since openDesk lists Redis 7 for production. If the instance is older, plan the database upgrade as a separate change before you adopt a newer Synapse release. The Synapse upgrade notes warn that rolling back can be difficult because of database schema changes between releases, so test the version pairing and your backups in staging before the change reaches production.
Federation changes the traffic picture again. Synapse federates on port 8448 by default, and delegation can let a user ID such as @user:example.com be served from another host on port 443. Either setup changes which listener receives traffic and how much of it reaches the generic worker, which handles client, federation and event traffic. Run your sizing with and without federation, once with federation disabled or limited to an allowlist and once with the federation traffic you expect, then compare both results against your monitoring. Read the Synapse workers documentation before you set replica limits, so you know which process types handle each traffic class.
Set up autoscaling for the Matrix components in order
This sequence takes an openDesk Enterprise deployment from verified prerequisites to autoscaled Matrix components with a tested rollback path. Each step ends with a check you can record, so scaling settings go only to a stack that already authenticates users and reaches its external databases. Run the steps in order, because identity and database problems are much easier to isolate before replicas start changing.
Confirm Enterprise entitlement and registry access
Confirm in the openDesk Enterprise Edition README that your organization holds an Enterprise entitlement and that the account your deployment uses can pull from the Enterprise-only registry. The Enterprise edition adds closed-source modules and a license file, and it comes with SLA-backed second and third level support. Ask your ZenDiS contact to confirm which Matrix components your entitlement covers before you plan any HorizontalPodAutoscaler targets. The check is a successful image pull from the Enterprise registry in a test namespace, with the license file in place where the deployment expects it.
Verify cluster prerequisites against the requirements
Check the cluster against the openDesk requirements: a CNCF-certified Kubernetes cluster at v1.33 or later, an ingress controller (haproxy-ingress or the deprecated Ingress nginx), cert-manager, an RWO volume provisioner, Helm 3.17.3 or later below v4, and Helmfile 1.0.0 or later. The project tests on kubespray clusters and does not test on OpenShift, so an OpenShift cluster needs your own validation before you depend on autoscaling. Record the output of helm version, helmfile version and kubectl version from the machine that applies the deployment. The check is a signed record of each version and component, approved by the platform owner.
Provision and test external PostgreSQL and Redis
Provision the external PostgreSQL 15 database and the Redis 7 instance that Synapse and its workers depend on, in infrastructure your team controls. Synapse recommends PostgreSQL for production, and Redis relays replication between the main process and the workers, so both services must be reachable from the Matrix namespace before any scaling begins. Test each connection from a pod in the target namespace and record the result, including TLS settings and where credentials are read from. Ask your database team to confirm backup and failover for both services, since more workers mean more connections to PostgreSQL. The check is a passing connection test from inside the cluster for each service.
Connect Matrix Authentication Service to upstream SSO
Connect Matrix Authentication Service to your upstream identity provider by following the Matrix Authentication Service upstream SSO guide, and complete this before you change any replica count. Login through Matrix Authentication Service gates every client, so scaling a service that cannot yet authenticate users only multiplies the failure. Test a full login with a pilot account, including logout and a session refresh, and confirm that the user identifier matches what Synapse expects. The check is a successful login from a Matrix client through your identity provider, with the same account appearing in Synapse.
Set replica bounds and resource requests per component
Set minimum and maximum replicas and CPU and memory requests for the Element Pro HAProxy, Matrix Authentication Service and Synapse worker deployments. Chart keys differ between releases, so read the values files and templates for your chart version and confirm each key name before you set a value. Set resource requests first, because HorizontalPodAutoscaler utilization is calculated against them, and keep the minimum high enough that a single pod restart does not stop logins or messaging. Confirm that each HorizontalPodAutoscaler targets the correct Deployment. The check is rendered manifests from helmfile template showing one autoscaler per scaled component with the bounds you set.
Run a load test and watch scale events
Run a load test that mixes logins, room creation, message sends and sync traffic, then watch the replicas scale up under load and back down after it ends. Compare autoscaler target utilization, pod counts, PostgreSQL connections and Redis latency in your monitoring stack against the test profile. Agree the test profile in writing with your ZenDiS contact or implementation partner before you start, and record each scale-up and scale-down event with timestamps. Scale-down should bring the replicas back to the minimum once load ends. The check is a report that shows both scaling directions with no rise in login errors during the test.
Document a rollback plan for schema changes
Write a rollback plan that treats Synapse schema changes as the main constraint, because the Synapse upgrade notes warn that rolling back can be difficult when database schema changes between releases. Record the database backup point taken before each upgrade, the Synapse and chart versions to return to, and who approves a rollback. Reverting replica settings through Helm values is simple, but an older Synapse image may not run against a newer schema, so the plan should restore the database from the pre-upgrade backup and redeploy matching images. Rehearse the restore in a non-production environment and keep the signed plan with the change record. The check is a documented restore rehearsal that confirms the database state after restore.
Enterprise autoscaling or Community Edition manual scaling
In openDesk Enterprise, the Matrix components can scale on load through HorizontalPodAutoscalers (HPAs), which Kubernetes uses to change pod counts based on observed metrics. The autoscaling covers three workloads: the Element Pro HAProxy, the Matrix Authentication Service and Synapse workers. Enterprise also ships a license file and an Enterprise-only registry, and it adds SLA-backed 2nd and 3rd level support and patches, so scaling problems and security fixes move through a contracted channel. See the openDesk Enterprise Edition documentation for the packaging details.
- HPA configuration: Define minimum and maximum replicas, target metrics and scale-up and scale-down behavior for each workload. The HPAs read metrics from your cluster, so confirm that your metrics pipeline serves them before you rely on them.
- License file and registry: Plan how the license file reaches the deployment, where image pull credentials are stored, and whether the registry is reachable from your cluster or must be mirrored into an isolated network. Test a pull before go-live.
- Node capacity: HPAs add pods but do not provision nodes, so the cluster needs headroom for the maximum replica count, and each new Synapse worker needs database connections.
- Support and patches: Confirm the support tiers, response expectations and patch intake process in your contract, and assign an internal owner who receives patch notices.
Confirm the exact HPA keys in the Enterprise chart, and confirm whether the Community chart exposes the same Matrix settings. Do not assume it does.
The Community Edition of openDesk is supported only by the community on openCode, with no SLA. Replica counts and resource limits for the Matrix components are values your team sets and changes by hand, so every capacity change is a planned action. Monitoring and change windows therefore fall to your operations team, and no autoscaler will adjust the workloads during a peak.
- Replica counts: Set replicas for the Element Pro HAProxy, the Matrix Authentication Service and Synapse workers yourself. Raise them before an expected peak and lower them afterward, because nothing reduces them for you.
- Resource limits: Set CPU and memory requests and limits per workload. Low limits lead to throttling or restarts, while high requests can leave pods unscheduled on crowded nodes.
- Monitoring: Build alerts on latency, error rates, worker backlogs and PostgreSQL connection use, so that a load spike is visible before users report it.
- Change windows: Apply replica and limit changes in agreed windows with a tested rollback plan and current database backups. Synapse upgrade notes warn that rolling back can be difficult because of schema changes, so treat each version change as a step you cannot easily reverse.
Confirm whether the Community chart exposes the same Matrix settings, including worker counts and HAProxy replicas. Do not assume it does, and write the manual runbook only after you have checked.
Security settings that autoscaling must not weaken
Every new replica changes who can reach the service, who can act as an administrator, and what evidence exists afterward. The controls below must hold for each Synapse worker, HAProxy pod and Matrix Authentication Service replica that autoscaling adds, so check them after every scaling change and every upgrade.
Federation exposure on new workers
Synapse federates on port 8448 by default, so every replica that serves the federation listener widens who can reach the homeserver. The federation_domain_whitelist setting limits federation to the domains you list, and an empty list disables federation entirely. Set the list before scaling out, and firewall the federation listener so that only the expected paths reach it. Confirm that each new worker inherits the same list and that no broader ingress route publishes the listener. A scale event should never be the moment federation opens to a new domain.
Single sign-on trust chain
Users sign in to Matrix through Matrix Authentication Service, which in turn trusts an upstream identity provider. Trust therefore runs through two hops, and every MAS replica must hold the same upstream provider settings. Confirm identical provider configuration, client registration and redirect addresses on every MAS replica before a scale-out. Also check how claims map to Matrix accounts, and confirm that session lifetime and logout behavior still match your identity policy after new replicas start issuing sessions.
MAS upstream providersSigned charts and pinned images
openDesk signs and validates most Helm charts against GPG keys, pins each container image by tag and digest, and signs the images it builds with cosign. Autoscaling creates new pods from these references, so each replica should run exactly the digest that passed your review. Verify the chart signature and image digests before any upgrade or scale change that touches a release. Check that your admission or pull policy rejects unsigned images and drifting tags, and confirm the verification steps your openDesk version documents.
openDesk security docsNetwork policies and Pod Security
openDesk documents Kubernetes security settings and network policies, and these controls belong to the workload template, not to the first pod that happened to be deployed. An autoscaler copies that template, so a hand-patched Deployment or a label outside the policy selectors leaves the new replica unrestricted. Every new replica must inherit the same Pod Security settings and network policy selectors as the original. Confirm that the policies select autoscaled workloads by label, then run a scale test in a non-production cluster and verify that the new pods are covered before go-live.
Access to Enterprise admin tooling
Element AdminBot, GroupSync and the Admin Console are Enterprise-only tools that can change users and rooms across the deployment. Access must stay limited to the administrator roles that need it, and scaling must not expose these services through new routes or extra ingress hosts. Restrict admin access by role and network path, and review who holds Admin Console rights after each group sync change. Confirm how AdminBot credentials are stored and whether replicas share them, and retest access from outside the admin network after any scale event that touches ingress.
Audit trails for scale events
Autoscaling changes the running system without a person clicking anything, so the record of each scale-up, scale-down and configuration change matters during an investigation. Send Kubernetes events and the metrics your monitoring stack collects for these workloads to central logging, and keep them for your review cycle. Confirm that scale events and configuration changes are recorded before autoscaling runs in production. Check which fields each record holds, such as workload, replica count and actor, and who can alter or delete those records.
What autoscaling Matrix in openDesk costs and needs from your team
How much does autoscaling Matrix in openDesk Enterprise cost?
The cost has three parts: the openDesk Enterprise subscription, the infrastructure that runs the cluster, and implementation work. openDesk Enterprise is sold as SaaS or for on-premises installation, so confirm current subscription terms directly with the provider. Infrastructure cost depends on node count, node size, and whether the cluster runs in your cloud account or your data center, and it recurs for as long as the cluster runs. Implementation is one-time and depends on the written scope: how many components are autoscaled, how many environments are covered, and how much load testing is included. DeployOpen does not publish a price list. A quote follows from that written scope, so ask every bidder to price the same components, environments and deliverables.
How long does Matrix autoscaling take to set up in openDesk?
The duration depends on the scope, the load profile and the number of environments, so no fixed timeline applies across deployments. Duration is shaped mainly by how many of the three components (Element Pro HAProxy, Matrix Authentication Service and Synapse workers) you want on autoscaling, how many environments need the same configuration, and how many test cycles it takes to find scaling thresholds that hold under peak load. Identity integration and existing monitoring also change the effort. Ask for a timeline that lists each environment and each test cycle separately, and confirm it is part of the written, fixed-scope agreement before work starts.
What does our team need to provide for Matrix autoscaling?
Your team needs to provide four things before the work starts:
- Cluster access: an account that can read the openDesk namespace, install HorizontalPodAutoscalers and change the Helmfile environment used for openDesk.
- Identity provider details: the OIDC or SAML settings, the user matching attribute and any upstream sign-in behavior, because Matrix Authentication Service depends on the identity provider for sign-in.
- Expected concurrency: the peak number of people chatting and joining calls at the same time, and how that load moves across a working day.
- Monitoring access: read access to your Prometheus metrics and dashboards, so scaling thresholds can be checked against measured load rather than assumptions.
Agree on who provides each item and when, and record it in the written scope.
Can our internal team set up Matrix autoscaling in openDesk?
Yes, if the team already has solid Kubernetes and Helmfile skills. The configuration itself is mostly HorizontalPodAutoscaler settings on three workloads, layered into the existing Helmfile environments, so it is familiar work for a platform team. The main effort is load testing: building user scenarios, finding the point where latency starts to degrade, choosing scale-up and scale-down thresholds, and checking that Synapse workers behave correctly with Redis relaying replication during scale events. Teams without load-testing experience often underestimate this part. Whoever does the work should also be named as the owner of the thresholds after go-live, because load patterns change.
Does Matrix autoscaling replace capacity sizing for openDesk chat?
No. Autoscaling changes the number of pods within the minimum and maximum limits you set, but it does not decide how many nodes you need, how much memory each pod gets, or which database sizes are right. Those inputs come from sizing. Use the openDesk sizing guide by number of users and the chat sizing guidance for Element and Synapse, with or without federation, to set the baseline and the maximum replica counts. Autoscaling then absorbs peaks above the baseline. If the cluster cannot host the maximum replica count, the autoscaler cannot add capacity. Confirm node capacity, PostgreSQL capacity and Redis capacity separately, because scaling pods does not scale those external services.
Is openDesk Community Edition enough for Matrix autoscaling?
Community Edition is supported only by the community on openCode, with no service level agreement, so there is no vendor support for scaling configuration, patches or incidents. Autoscaling of these Matrix components is part of the Enterprise Edition, and ZenDiS recommends Enterprise for production. Confirm with the project which Matrix components and scaling settings are covered in the Community release you plan to run. Whichever edition you choose, the operator owns the scaling settings, the load tests, the monitoring, the patching, the incident response and the external databases, Redis and storage. Ask any partner to write that split of responsibilities into the scope before you decide.
Limits to confirm before you enable autoscaling
Autoscaling only helps when the Enterprise release covers the components you need and the platform underneath meets its requirements. Each card below is a check to complete against the Enterprise README, the release notes and your own cluster before you turn autoscaling on.
Confirm the autoscaled component list
The Enterprise release decides which Matrix components it autoscales. Element Pro HAProxy, Matrix Authentication Service and Synapse workers are the components this topic covers, but confirm each one in the Enterprise README and the release notes for the version you run. After deployment, inspect the HorizontalPodAutoscaler objects in your cluster and record each minimum and maximum replica count and the metric it watches. A component missing from the release stays at fixed replicas, and the gap will appear under load.
Enterprise READMESynapse rollback may be difficult
The Synapse upgrade notes warn that rolling back can be difficult because database schema changes between releases may not reverse cleanly. Workers added by the autoscaler should run the same Synapse version as the main process, so a faulty release reaches every replica at once. Before you upgrade, take a database backup and test that you can restore it, record the current chart and image versions, and read the notes for every release between your current and target version. Agree the rollback plan, which is usually a restore from backup, with your database operator before go-live.
Synapse upgrade notesPython and PostgreSQL minimums
Synapse 1.142.0 and later need Python 3.10 or newer, and 1.143.0 and later need PostgreSQL 14 or newer. Upstream drops support for a Python or PostgreSQL version once it reaches upstream end of life, so a runtime that works today can stop being supported in a later Synapse release. The openDesk production list names PostgreSQL 15, so check that your database meets both the openDesk requirement and the Synapse minimum for the target version. Ask your database team who patches PostgreSQL major versions and how that work is scheduled.
Only the latest minor is supported
openDesk supports only the latest minor version, so a deployment that falls behind may need several steps before it reaches a supported version. In-place upgrades between major versions are not guaranteed, and skipping several minor versions may require intermediate steps. ZenDiS plans major releases annually in Q3 and minor releases monthly, so align the autoscaling values with the upgrade calendar and retest them at each step. Ask your Enterprise contact which intermediate steps apply to your current version before you choose a target release.
Release management docsKubernetes version and OpenShift status
openDesk requires a CNCF-certified Kubernetes cluster at v1.33 or later. Horizontal autoscaling depends on a working metrics API, so verify that the metrics pipeline runs correctly on your cluster version before you set any replica bounds. The openDesk testing covers kubespray clusters, and OpenShift is untested. If your organization runs OpenShift, ask ZenDiS for written confirmation of support, and check how the metrics API, the ingress controller and the security context constraints affect the autoscaled pods in a test cluster first.
openDesk requirementsFederation adds unpredictable traffic
Federation lets other homeservers send requests and events to your Synapse, on port 8448 by default, so part of the load comes from servers outside your user base. Federated load is harder to predict than client load because it rises and falls with conversations you do not control. Confirm which worker types the autoscaler scales, whether federation traffic reaches those workers, and whether your federation_domain_whitelist setting limits the sources. Include federation in your load tests before you set the autoscaling bounds.
Synapse federation docsHow DeployOpen scopes autoscaling for openDesk Matrix
DeployOpen scopes autoscaling for the Matrix components in openDesk Enterprise as one part of a wider sizing exercise, starting from the chat load your users generate. The written scope covers which components autoscale, which metrics and limits are set, and how Synapse workers, Redis and the external PostgreSQL behave under load. Work is delivered inside your own Kubernetes clusters, with documentation and handover to your operations team.
How we scope
- The written scope names each Matrix component in play: Element Pro HAProxy, Matrix Authentication Service and Synapse workers.
- Scope confirms which autoscaling settings your Enterprise release supports, plus replica bounds and metrics agreed in writing.
- Fixed-scope engagements agree deliverables and timelines in writing before work starts, and ongoing support is available as a retainer.
How we build
- Check the Matrix component versions against the openDesk release you run, since only the latest minor version is supported.
- Configure Synapse workers with Redis for replication, so the generic worker handles client, federation and event traffic.
- Test scaling in a non-production cluster, including how sessions and federation load behave when replicas change.
How we hand over
- Deliver configuration, autoscaler settings and documentation for each Matrix component, running in your own clusters.
- Document metrics, thresholds and scale limits, plus the signals that show a Matrix component needs more capacity.
- Walk your operations team through the runbook, including first checks when a scale event misbehaves.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so scaling settings can be reviewed at each openDesk release.
- Retest scaling behavior after upgrades, since in-place upgrades between majors are not guaranteed.
- Plan Synapse upgrades in advance, since rolling back can be difficult after database schema changes between releases.

