Redis cache for large Mattermost deployments

Adding an external Redis cache is a scaling decision for large self-hosted Mattermost installations. This page covers when it fits, how it is configured, and what to confirm about plan and support first.

On this page

When does a large Mattermost deployment need an external Redis cache?

An external Redis cache becomes a scaling step once a Mattermost installation grows beyond roughly 100,000 users, and it is configured in the System Console on the Enterprise Advanced plan. A platform team that has outgrown a single Mattermost server usually meets this question while planning a high availability cluster, where the cache is one of several decisions that must be made together. Before the team designs the cache, it should confirm the user count it expects to reach, the plan it will license, and whether its current single server already shows strain under normal load.

The cache sits beside the other components of a clustered deployment. Those are the redundant application servers, the PostgreSQL primary with its read and search replicas, shared file storage on Amazon S3, an S3-compatible service or NAS mounted on every node, and the redundant load balancers that front them. The cache holds data that Mattermost would otherwise fetch repeatedly from the database, so application servers spend less time on identical queries. The exact data types Mattermost places in the cache are listed in its current documentation, and the team should read that list for its release before sizing anything.

Redis is one layer of a larger scaling design, not a fix on its own. Each layer needs an owner, a capacity estimate and a test plan, and the cache should be introduced only after the team has a baseline measured on its own workload. Ask the vendor to confirm which Redis versions the chosen Mattermost release supports, how Redis is clustered and failed over, and what changes when the cache is added to an existing cluster. Ask DeployOpen for a written scope that covers the sizing review, the configuration work and the retest, so the cache is validated under realistic load before it carries production traffic.

Which cache setup fits your deployment

This table compares four cache setups a team can choose for a Mattermost deployment: no external cache, a single Redis 7 instance, clustered Redis, and a managed Redis service. Read each row for when it fits, what it adds to operations, and what to confirm with Mattermost before committing. The main takeaway is that the topology must be documented or supported for your exact Mattermost version, so confirm that before buying or building anything.

Cache optionWhen it fitsWhat it adds to operationsWhat to confirm with Mattermost
No external cacheSmaller clusters that have not reached the scale where an external cache is recommendedNothing extra to run, patch or monitor beyond the Mattermost servers and databaseConfirm the user count and load at which Mattermost recommends an external cache for your version
Single Redis 7 instanceLarge deployments that need a shared cache across Mattermost application nodes without clustering complexityOne more service to deploy, secure, back up in the sense of cache durability, patch and monitor; a single point of failure unless paired with failoverConfirm Redis 7 is the supported major version for your Mattermost release and which settings the System Console exposes for the cache
Clustered RedisVery large installations where the cache must scale horizontally or survive node loss without a full outageCluster topology, node placement, slot management, and client configuration that Mattermost must support; more monitoring and failover testingConfirm whether Mattermost documents or supports Redis clustering for your version and whether it requires the Enterprise Advanced plan
Managed Redis service on your cloudTeams that already run managed data services in their own cloud account and want the provider to handle patching and node replacementShifts host maintenance to the provider while you still manage network access, credentials, TLS settings and version alignmentConfirm the managed service's Redis version matches what Mattermost supports, and that the endpoint type and cluster mode work with the Mattermost cache settings

How the cache sits between application nodes, the database and shared storage

The diagram starts at users reaching a load balancer, which sits behind the trust boundary of the internal network. Requests then fan out to several Mattermost application nodes. Each node talks to the PostgreSQL primary for writes, to read and search replicas for distributed reads, to shared file storage mounted on every node, and to the Redis cache. Check that every node reaches the same cache and that the connections carrying database and storage credentials are limited to the internal network. This is an illustrative topology, not a reference architecture.

Illustrative clustered topology showing where the Redis cache is reached by each application node.

How the Redis cache changes the cluster's failure modes

Adding an external Redis cache creates a new shared dependency that every application node must reach. Before the cache, a node that lost its path to a peer or to the database was the problem to solve. After the cache, a cache outage or a network partition between the application tier and the Redis service can degrade the whole cluster at once, because every node depends on the same cache endpoint. The planning question changes from whether one server is up to whether the cache path stays up for every node, in every availability zone your deployment uses.

The existing high availability prerequisites still apply and do not go away when Redis is added. Mattermost high availability consists of redundant application servers, redundant database servers and redundant load balancers, and it is available only on the Enterprise and Enterprise Advanced plans. Every node also needs shared file storage on Amazon S3, an S3-compatible service or NAS, because local file system storage will not work correctly and risks corrupting files. The cache should be designed with the same redundancy thinking: no single Redis instance, no single network path, and no single host that every node reaches through one point of failure. Confirm the cache topology and the network routes against the Mattermost high availability cluster documentation before you commit to a design.

Decide early how the cluster should behave when Redis is slow, unreachable or has lost data, because the answer shapes monitoring, runbooks and the test plan. Confirm with Mattermost, for your chosen server version, what happens to sessions and cached data during a failover, what eviction behavior the cache settings produce under memory pressure, and whether a cache restart forces users to sign in again. Record those answers as acceptance criteria. Then rehearse a cache failure, a node-to-cache network partition and a Redis failover in a staging cluster that matches production topology, and confirm the behavior matches the documentation rather than assuming it.

How to add Redis to a Mattermost cluster

This sequence adds Redis as an external cache to a Mattermost high availability cluster without interrupting users. It starts with plan and version checks, confirms the existing cluster and shared storage work, then configures Redis, the cache settings and a rolling restart. It ends with health checks and a load test in a non-production copy.

  1. Confirm the plan, version and target

    The platform owner records the Mattermost server version the cluster will run before any Redis work starts. Mattermost v11.7 is an Extended Support Release, released on 2026-05-15 with support ending 2027-05-15, and v12.0 was released on 2026-10-16 with support ending 2027-01-15. Confirm in writing with Mattermost that your plan includes external cache support, since Enterprise Advanced is the plan level to verify for this feature. Done when the target version, plan entitlement and change window are recorded in the change request.

  2. Confirm cluster and shared storage health

    Before adding a cache, the existing high availability cluster must work on its own. Mattermost high availability depends on redundant application servers, database servers and load balancers, and every node must mount shared file storage on Amazon S3, an S3-compatible service or NAS. Local file storage will not work correctly and risks corrupting files. The platform team uploads a test file through one node and downloads it through another, then stops one application node and confirms users stay connected through the load balancer. Done when both tests pass and the results are saved as the baseline.

  3. Provision Redis 7 on a restricted network

    The infrastructure team installs Redis 7 on a host or managed service that only application nodes can reach. Restrict the listening interface and firewall rules to the application subnets, enable authentication and TLS where your Redis build supports them, and keep the instance off public networks. Decide between a single instance and a Redis cluster with the Mattermost account team before building, and confirm the clustering requirements in the documentation for your version. Done when a connection test from an application node succeeds and the same test from a host outside the application subnets fails.

  4. Set the cache connection and credentials

    An engineer edits the Mattermost server configuration on one node to point at the Redis endpoint, including any password or TLS settings. Use the configuration keys listed in the official documentation for the target version, and confirm each key name before saving. Keep credentials in your secrets manager or environment-supplied values, and do not place them in a shared file that others can read. Copy the identical configuration to every application node and confirm the file checksums match. Done when all nodes hold the same cache configuration and no Redis password appears in version control.

  5. Set cache options in the System Console

    A system administrator opens the System Console and finds the cache settings for the version in use, then enters the Redis details there. Record each value changed, its previous value and the reason, so the change can be reversed. Match labels and options to the official documentation for your target version. Screenshots from older guides may not reflect current labels. Done when the save succeeds and the change log entry is filed with the change request.

  6. Restart application nodes one at a time

    The operations team restarts one application node at a time where a restart is required. Each node is removed from the load balancer pool before its restart and returned only after it reports healthy. Restarting in sequence keeps the cluster serving users throughout. Watch each node's logs during startup for connection failures to Redis. Done when every node has rejoined the pool, serves requests and logs no repeated cache connection errors.

  7. Validate with health checks and load testing

    Run the health checks your monitoring already uses on every node and confirm the cache reports as connected. Then repeat the change in a non-production copy of the cluster, using a load profile that matches your expected peak concurrent users. Compare response times, error rates and database load against the baseline from the second step. Done when the copy meets the targets your team agreed in advance, the results are filed and the production change is approved.

Security and operational controls for an external cache

An external Redis cache sits between Mattermost application nodes and their data, so it inherits the sensitivity of the messages it holds in memory. The controls below work in parallel: they limit who can reach the cache, protect the credentials that open it, keep the software current, and make failures visible. Check each one against your own security policy and the compliance scope your organization has committed to.

Network isolation for the cache

Place Redis on a private subnet or dedicated network segment so that only Mattermost application nodes can open connections to it. Block the Redis port from user networks, the load balancer tier and any shared jump hosts that do not need it. Confirm that administrators reach the instance through a bastion or management path that is logged. Review security group or firewall rules after every change to the node pool, since new application nodes are the most common source of unplanned access paths.

Authentication and secrets handling

Require a password or ACL credential on every connection and store it in your secrets manager, not in a configuration file checked into source control. Give Mattermost its own Redis user with only the commands it needs, and rotate that credential on a schedule your team can execute without downtime. Confirm how the credential reaches the application nodes and who can read it from the host, the container runtime or the orchestrator.

TLS on the cache connection

Where your Redis version and your Mattermost deployment support encrypted connections, enable TLS between application nodes and the cache so that session-related data is not carried in clear text across the network. Decide the certificate authority, the renewal process and who owns certificate expiry before go-live. Confirm the exact settings with the Redis and Mattermost documentation for your chosen versions, and test a failed handshake so that you know how the application behaves.

Patching on the Mattermost calendar

Patch the Redis 7 instance on the same change calendar as Mattermost server upgrades, so that a security fix to either component does not wait for the other. Mattermost releases a new server version in binary form on the 16th of each month, so plan a standing test window around that date. Test Redis minor and patch releases in staging against your current Mattermost version before they reach production, and record which versions are running on each node.

Backup and recovery expectations

Cache contents are rebuildable from the database and file storage, so a full Redis backup is rarely the right control. The real risk is the load spike that follows a cache flush or failover, which can slow or stall the application tier. Agree in advance how long users can tolerate degraded performance, confirm that the application starts cleanly with an empty cache, and document the steps to restart or replace the instance. Ask your vendor or partner to rehearse this path.

Cache health in your monitoring

Track Redis memory use, evictions, connected clients, latency and replication status next to Mattermost server metrics, so that a cache problem is visible before users report slow messages. Set alerts on memory pressure and on connection failures from application nodes, and review whether the Mattermost metrics you collect show cache behavior. Assign an owner for each alert and confirm who is paged when the cache goes unavailable.

How cache planning differs by environment

In a connected production environment, the team can usually pull images and packages from public registries or internal mirrors, and monitoring tools can reach Redis endpoints directly. The main planning work is keeping Redis, the Mattermost server and the database on versions that are known to work together, and fitting cache maintenance into the monthly release rhythm that Mattermost publishes on the 16th of each month.

  • Image sourcing: Decide whether Redis 7 comes from a vendor package repository, an internal mirror or a container registry, and pin the version you test.
  • Network paths: Restrict access so only application nodes can reach the Redis port, and confirm TLS and authentication options with the platform team before the cache is enabled.
  • Monitoring: Add Redis memory, connection count and latency checks to the existing Mattermost health and metrics pipeline, with alerts that route to on-call staff.
  • Upgrade windows: Schedule Redis patching in the same change window as Mattermost server upgrades, and test both in staging first.
  • Failure behavior: Document what users see when the cache is unavailable and who runs the restart procedure.

Confirm with Mattermost which Redis versions and cache settings your server release supports, and confirm with your platform team who owns the Redis host and its backups.

What to confirm before committing to a Redis cache

A Redis cache changes how Mattermost is licensed, load balanced, upgraded and hosted, so each of these items should be settled before a build starts. The cards below are checks to run against the official documentation and your own environment, not conclusions drawn from this page.

Enterprise Advanced requirement in your version

Confirm whether the external cache setting is included in the plan you hold for the exact server version you will run, since plan requirements can differ by release. Ask Mattermost to state this in writing, and check the pricing tiers against the features you need. Do not assume that a feature available on one plan carries over to another. Treat the answer as a licensing gate that must clear before any Redis work is scoped.

Mattermost pricing

Supported Redis 7 topologies

Mattermost documentation should state which Redis deployment shapes it supports, such as a single primary, a replicated pair with failover, or a clustered setup. Confirm the exact Redis 7 minor version and whether clustering is supported or only described as a pattern. Verify with the high availability documentation before choosing a topology, because a topology Mattermost does not document may create support gaps during an incident.

HA cluster docs

Interaction with the load balancer and proxy

Check how application nodes reach Redis through your load balancer and network path, and whether any proxy or Redis-aware routing layer sits between them. Confirm connection limits, timeouts and TLS handling on each hop, because a misconfigured hop can cause intermittent cache misses that look like application slowness. Ask whether session affinity or sticky routing changes how cached data is used across nodes.

Release cadence and Redis upgrade timing

Mattermost publishes new server versions monthly, and Extended Support Releases follow a longer schedule. Map each planned Redis upgrade against the server release you will run, and confirm which Redis versions each server line supports before scheduling either change. Decide whether you will upgrade Redis in the same window as the server, or separately, and document the rollback path for each.

Monthly release day
16th
Server releases

Data residency and sovereignty fit

Determine whether your rules allow a managed Redis service, which may store cached data in a provider region, or require a self-hosted instance inside your own boundary. Cached data can include session and channel content, so classify it the same way as the database. Confirm encryption in transit and at rest, key custody and where backups or snapshots are held before approving any hosting option.

Scope of Mattermost support terms

Ask in writing whether Mattermost support covers issues that originate in a Redis instance you operate, and whether it covers a managed Redis service you select. Clarify who owns the Redis patching, monitoring and failover runbooks, and what evidence Mattermost will request during a ticket. Clear ownership before go-live prevents a support handoff from stalling a production incident.

Questions buyers ask before adding Redis

What drives the cost of adding a Redis cache to Mattermost?

The cost is driven by prerequisites you may already have or may need to build: a high availability Mattermost cluster, a Mattermost plan that includes the Redis cache setting, the infrastructure to run Redis, and the people who operate it. Mattermost's high availability cluster requires the Enterprise or Enterprise Advanced plan, so the subscription is usually the largest recurring line item if you are not already on one. Other recurring costs include the Redis hosting, monitoring, patching and on-call time. One-time costs include design, configuration, testing and change management. Ask any partner to split a quote into these components so you can see which items you can absorb internally.

How long does adding a Redis cache take?

The timeline depends mostly on how mature your existing high availability setup is and how long your approvals take. If your Mattermost cluster, shared file storage and database replicas are already stable and monitored, the work is mainly Redis setup, configuration and testing. If the cluster is still being built, the prerequisite work will set the schedule. No duration is supplied for this work, so ask for a written timeline that lists each phase, the change windows it needs and the approvals each phase depends on. Plan for a test environment run before any production change.

What does the work need from our team?

Expect to provide access to the Redis cluster and the Mattermost servers, a valid Mattermost license on the plan that includes this setting, and a test environment that mirrors production as closely as possible. You will also need named owners who can approve configuration changes and scheduled maintenance windows. Security and networking teams should review how Redis is reachable from Mattermost nodes and what authentication is enforced. Confirm early which of these you can provide and on what dates, because they often control the schedule more than the technical work does.

Can our internal team add Redis to Mattermost on its own?

Yes, if your team already runs a high availability Mattermost deployment and operates Redis in production. The Mattermost high availability documentation and the Redis documentation are the primary references, and an experienced platform team can work from them. The gaps usually appear in failover testing, cache behavior under load and the clustering decisions, so check whether your team has run those tests before. If you lack Redis operations experience, a partner can take on design and testing while your team keeps ownership of day-two operations.

What does a partner add to this work?

A partner adds structured design, a written build sequence, configuration checks against the System Console settings, failover and load testing, and documentation your operators can use after handover. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, so the work stays in your accounts and data centers. Scope, deliverables and timelines are agreed in writing before work starts, and ongoing support is available as a retainer. Ask for the specific test cases and handover materials included in the scope.

What should we ask for in a written quote?

Ask for a quote built from a written scope that lists the Redis version and deployment model, the Mattermost prerequisites you are assuming, and what is excluded. Request the phases, the deliverables for each phase, the test scenarios, the change windows assumed, and the assumptions about your environment. Ask which costs are one-time and which recur, such as support or retainer fees, and what triggers a change order. Confirm who is responsible for Mattermost licensing and for any Redis hosting or licensing. DeployOpen does not publish prices, so the quote is the basis for comparison.

Which Mattermost plan do we need for this work?

The Mattermost pricing page lists high availability clustering from the Enterprise plan, and the Redis cache for large deployments is described as an Enterprise Advanced requirement in the topic guidance. Confirm the exact plan with Mattermost sales before you commit to a design, since plan terms can change. Mattermost sells these plans as prepaid annual subscriptions based on seat licenses and does not list public prices, so ask your account contact for the subscription terms that apply to your user count.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a Redis cache on Mattermost, that means starting from your user count, current database load and license tier before any Redis node is provisioned.

How we scope

  • Confirm your Mattermost plan level and whether Enterprise Advanced licensing covers the external cache before design starts.
  • Review current user counts, database load and cache-related pain points against the reference architectures your team has selected.
  • Agree a written, fixed scope listing Redis topology, network zones, System Console settings, test cases and handover documents.

How we build

  • Install Redis 7 in your environment with access control, TLS and persistence settings chosen with your security team.
  • Configure Mattermost cache settings in the System Console and test them against your staging instance before any production change.
  • Design and test the Redis clustering layout, failover behavior and the monitoring that will show cache hit rates and node health.

How we hand over

  • Deliver runbooks covering configuration, restart order, failover tests and rollback steps for the Redis and Mattermost nodes.
  • Provide a record of test results, configuration baselines and the evidence your compliance or security reviewers may request.
  • Walk your operations team through monitoring, alerting and day-two tasks so the cache can be run without DeployOpen on call.

How we support

  • Offer ongoing support, Redis and Mattermost upgrades and continuous testing as a retainer after handover.
  • Plan Redis upgrades and Mattermost release changes together, since monthly server releases can affect cache behavior.
  • Retest the cache layer after major Mattermost upgrades, infrastructure changes or new capacity requirements.

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.