Zammad with Redis Sentinel or an external Redis

How to point self-hosted Zammad at an external Redis or a Sentinel cluster, which variables to set, how to secure Redis, and what to confirm before choosing Redis, Valkey or a managed service.

On this page

When Zammad needs an external Redis or Sentinel cluster

A standalone external Redis is enough when you want Zammad's Redis moved off the application host, managed by a platform or database team, or placed behind your own backup and monitoring standards, and you accept that a single Redis instance is a single point of failure for realtime features. Sentinel is the choice when a Redis outage would be unacceptable for your support operation. Redis Sentinel provides high availability when you are not using Redis Cluster, with automatic failover that promotes a replica to master, and the Redis Sentinel documentation says a robust deployment needs at least three Sentinel instances. Zammad connects to that cluster through the mandatory REDIS_SENTINELS variable, with REDIS_SENTINEL_NAME optional and defaulting to mymaster. Plan the Sentinel topology before you touch the Zammad configuration.

Redis carries the realtime websocket communication that keeps agent screens current, and Zammad requires Redis 7 or newer. Confirm the exact Redis version you plan to run against the software requirements page and against the Redis release line your platform team supports, because Redis licensing changed with the 8.0 release. Before choosing a Redis build, confirm the license terms that apply to your use, since the choice between Redis Open Source and other editions is a licensing decision for your legal team, not only a technical one. The Redis licenses page is the starting point for that review.

Zammad's documentation leaves Redis security to the operator. That means you own authentication, network exposure, TLS where the link crosses a trust boundary, and the credentials placed in REDIS_URL or the Sentinel username and password settings. Restrict Redis to the Zammad hosts only, enable authentication on every node including Sentinels, and keep the Redis host out of any public network path. Ask your team to document who can read the Zammad environment file, since it will hold those credentials.

How Zammad connects to Redis: standalone or Sentinel

A standalone Redis is the simplest option. You point Zammad at one Redis endpoint with the REDIS_URL variable, and Zammad uses that connection for realtime websocket communication. If the Redis instance is managed by your platform team, the URL carries the credentials you issued for Zammad, so the connection string itself becomes a secret that must be stored and rotated like any other credential. Zammad requires Redis 7 or newer, so confirm the server version before you point the application at it.

  • Version check: Confirm the server runs Redis 7 or newer, the minimum Zammad documents for realtime communication.
  • Credentials in the URL: Include the Redis username and password in REDIS_URL only when the server requires them, and keep the environment file readable only by the service account.
  • Single point of failure: A standalone instance has no automatic failover. If it goes down, realtime updates stop until it returns, so plan the recovery path with your operations team.
  • Network path: Allow only the Zammad application hosts to reach the Redis port, and confirm TLS or network isolation matches your policy.

Before go-live, confirm that a ticket update in one browser session appears in a second session without a page reload, which shows the websocket path works through Redis.

Redis variables and deployment options compared

This table compares the Zammad connection variables and the Redis options you can point them at, from a single standard Redis to a Sentinel cluster and the Redis or Valkey distribution behind it. Read each row for when it fits and what to confirm before you commit, since licensing and version support differ between the options.

OptionHow Zammad connectsWhen it fitsWhat to confirm
Standard Redis with REDIS_URLREDIS_URL, including credentials if the server requires themOne Redis server that you run and monitor, with no automatic failoverRedis 7 or newer is required for realtime websocket communication, and the URL carries the username and password
Sentinel cluster with REDIS_SENTINELSREDIS_SENTINELS is mandatory, with optional REDIS_SENTINEL_NAME (default mymaster), usernames and passwordsRedis needs automatic failover that promotes a replica to masterSentinel names, the master name your cluster uses, and separate credentials for Sentinel and Redis
Redis Open Source 8.0 and laterSame variables as any standard Redis endpointYou want Redis Open Source and can accept its license choice among RSALv2, SSPLv1 and AGPLv3Which license your legal team accepts, and whether any modified Redis code runs as a network service
Redis 7.4.x to 7.8.xSame variables as any standard Redis endpointAn existing deployment on these releases that you are not upgrading yetThese releases carry the dual RSALv2 or SSPLv1 license, which is not OSI-approved, so confirm the license position with counsel
Valkey as a Redis-compatible serverSame variables, since existing Redis client libraries connect without code changesYou want a BSD-3-Clause server under Linux Foundation governance with a documented migration pathConfirm that your Zammad version and the Valkey release you choose are tested together, and that Sentinel setup follows Valkey's own documentation
Managed or vendor-supported RedisSame variables, using the endpoint and credentials the provider issuesYour team does not want to operate Redis and needs a supplier for patching and failoverThe provider's Redis version, Sentinel support and where the data is hosted, since Redis Cloud runs on AWS, Google Cloud and Azure
Securing the Redis serviceNetwork access, authentication and TLS are set on the Redis or Sentinel side, outside ZammadEvery deployment, including single servers and Sentinel clustersZammad leaves Redis security out of scope, so confirm bind addresses, firewall rules, passwords and patching in your own configuration
Sentinel quorumSentinel instances are configured in REDIS_SENTINELS and run on your hostsClusters that need failover without a single point of controlA robust Sentinel deployment needs at least three Sentinel instances, per the Redis and Valkey documentation

Which Redis license and version fits an open-source Zammad stack

The license of the Redis build you run is a decision for your legal team before it is a technical one. Redis 7.2.x and earlier remain under BSD-3-Clause. Redis 7.4.x to 7.8.x, then called Redis Community Edition, are offered under the dual RSALv2 or SSPLv1 license, and neither of those is OSI-approved. Redis Open Source 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and the GNU AGPLv3, effective from the general availability release of Redis 8. Zammad itself is AGPLv3, so an AGPLv3 Redis build is the option that most closely matches a fully open-source stack, but the choice is yours to make and document. Confirm the terms on the Redis licenses page before you pin a version.

Redis also publishes a FAQ on modified code. Teams moving from Redis 7.2 or earlier with unmodified artifacts see no impact, but teams that offer modified Redis code as a network service must make the modified source available to that service's users. A standard Zammad deployment that only consumes Redis as a backend is unlikely to meet that condition, yet your legal team should confirm it against your own build pipeline, any custom patches and whether you package Redis into images. Ask the Redis or Zammad vendor for written confirmation if a regulated customer or auditor will read this decision.

Valkey is the other path. It is licensed under BSD-3-Clause, was forked from open-source Redis before the move to source-available licenses, and is backed by the Linux Foundation. Valkey is compatible with Redis OSS 7.2 and all earlier open-source Redis versions, and existing Redis client libraries connect without code changes. Before choosing it, confirm with Zammad support that the Redis variables in your version work against Valkey, and test Sentinel behavior, because compatibility with the protocol does not by itself prove the Sentinel setup behaves the same way.

Setting up Zammad against an external Redis or Sentinel cluster

This sequence confirms the Redis version and distribution, creates a dedicated Redis identity, points Zammad at either a standalone Redis or a Sentinel cluster, and proves that realtime updates and failover behave as expected before the instance goes into use.

  1. Confirm Redis version and distribution

    The platform team confirms that the Redis service is version 7 or newer, since Zammad requires Redis 7 or newer for realtime websocket communication. Record which distribution is in use, such as Redis Open Source, a Redis Software deployment, or Valkey, and confirm its license terms and support path with the vendor or your procurement team before you build on it. Done when the version string from the server and the chosen distribution are written into the change record.

  2. Decide between standalone Redis and Sentinel

    Choose the connection type before editing any configuration. A single Redis node uses REDIS_URL. A Sentinel setup uses the mandatory REDIS_SENTINELS variable, with REDIS_SENTINEL_NAME only if your monitored master name differs from the default of mymaster. Sentinel needs at least three Sentinel instances for a robust deployment, according to the Redis Sentinel documentation. Done when the topology, master name and Sentinel addresses are listed and reviewed.

  3. Create a dedicated Redis user and password

    Create a separate Redis account for Zammad with a strong password and only the command and key permissions it needs. Do not reuse the default account or an administrator password. If Sentinel requires its own credentials, prepare those as separate values so they can be set through REDIS_SENTINEL_USERNAME and REDIS_SENTINEL_PASSWORD. Test the login from the Zammad host with a standard Redis client before going further. Done when the test login succeeds and the account is recorded in your secrets store.

  4. Set the Redis variables in the Zammad environment

    Add REDIS_URL with the username and password embedded, or REDIS_SENTINELS plus any optional sentinel name and passwords, to the environment file that Zammad reads. For package installs, this is the environment configuration used by the Zammad services. For Docker Compose, it is the .env or scenario file. Restrict file permissions so only the service account can read the secrets. Done when the file is saved, permissions are verified and no password appears in shell history or version control.

  5. Restart Zammad services and check the startup log

    Restart the Zammad application, scheduler and websocket services so they read the new Redis settings. Watch the startup output and the Zammad logs for Redis connection messages. A clean start shows no authentication failures, no refused connections and no repeated reconnect attempts. If the log shows errors, correct the URL, credentials or sentinel name before continuing. Done when services report running and the log is free of Redis connection errors.

  6. Verify websocket realtime updates across two sessions

    Sign in to Zammad in two separate browser sessions, using two different agent accounts if possible. Open the same ticket in both, change its state or add an internal note in one session, and confirm the other session updates without a manual reload. Repeat with a new ticket appearing in the overview. Realtime updates depend on the websocket path working through Redis, so this check proves the integration rather than only the connection. Done when updates appear in the second session within the normal expected behavior you recorded in testing.

  7. Test Sentinel failover and confirm recovery

    In a test window, stop the current Redis master or simulate its failure so Sentinel promotes a replica. Confirm in the Sentinel logs that a new master was elected, then repeat the two-session realtime check. Also watch the Zammad logs during the switch for expected reconnect messages and confirm they stop once the new master is in place. Record how long the interruption lasted in your own environment. Done when realtime updates resume after promotion and the failover event is documented.

  8. Review logs and set ongoing connection monitoring

    Confirm that Redis authentication failures, connection timeouts and sentinel discovery errors are captured in your log pipeline and alerting. Check that the Zammad logs contain no recurring Redis messages after the failover test. Document the final REDIS_URL or REDIS_SENTINELS configuration, the sentinel name in use and the owner of the Redis credentials. Done when alerts for Redis connection errors are active and the configuration record is complete.

Using Valkey on RHEL 10 as the Redis-compatible service

If your organization standardizes on a BSD-3-Clause Redis-compatible server, Valkey is the option to evaluate, but you must confirm two things before you point Zammad at it: that your RHEL 10 repositories provide a Valkey package you can support, and that Zammad's documentation and your own test cover Valkey as the backing service for realtime websocket traffic. Valkey is a fork of open-source Redis made right before Redis moved to source-available licenses. It is maintained as an open community project under LF Projects, LLC, and existing Redis client libraries connect to it without code changes. Valkey Sentinel provides high availability when you are not using Valkey Cluster, and the Valkey project recommends at least three Sentinel instances, the same pattern covered earlier in this section.

The Valkey migration guide documents four methods for moving data: copying an RDB snapshot, replicating with REPLICAOF and then promoting the replica, using key-level MIGRATE for selected keys, and, for clusters, adding Valkey nodes as replicas and promoting them with CLUSTER FAILOVER. Your choice depends on whether you can take a short write freeze and whether you run standalone or clustered Redis. Note the warning in the guide: data files produced by Redis Community Edition 7.4 and later are not compatible with Valkey, and the guide does not cover a migration path for them. If your current Redis is 7.4 or newer, plan a different method, and test it on a copy of your data before any cutover. Zammad keeps its ticket content in PostgreSQL, so Redis loss affects realtime delivery and cached state rather than the ticket record, but the cutover still needs a verified plan.

Ask your RHEL 10 platform team and, if you have one, your Zammad support contact, to confirm three things in writing: the Valkey version your distribution packages and how long it receives security fixes, whether Zammad's supported configuration covers Valkey rather than only Redis 7, and how the Sentinel settings described above behave on your build. Then run a staging test that exercises live agent updates, failover of the Sentinel-managed master, and a Zammad restart, and record the results. Valkey's upstream release lines are maintained in parallel, so the version you deploy should be one your vendor or distribution actually supports, not simply the newest upstream tag.

Securing Redis, which Zammad leaves to the operator

Zammad uses Redis for realtime websocket communication, and the Zammad documentation leaves securing that Redis or Sentinel deployment to you. The cards below cover the controls that connect the Zammad application hosts to Redis and Sentinel, and the checks to run before and after each change.

Isolate Redis and Sentinel ports

Keep the Redis data ports and the Sentinel ports on a private network segment that only the Zammad application hosts and the other Redis and Sentinel nodes can reach. Confirm that Redis is not bound to a public interface and that no load balancer or proxy forwards traffic to it. Sentinel listens on its own port, so review it separately from the data port when you audit the host.

Sentinel docs

Use per-service usernames and strong passwords

Give Zammad its own Redis user with access limited to the commands and keys it needs, rather than sharing an administrative account. Store the password in your secrets manager and pass it through the REDIS_URL value, and rotate it on a schedule you can document. Test that a rotated credential works on every Zammad node before you retire the old one.

Separate Sentinel passwords from data passwords

Sentinel and the Redis data nodes can use different credentials, so a leaked Sentinel password does not automatically expose the data service. Ask your Redis or Valkey administrator to confirm which credentials Sentinel requires and whether Zammad needs them for REDIS_SENTINELS. Record which secret feeds which variable so rotation does not break failover.

Zammad Redis variables

Encrypt Redis traffic where supported

Where your Redis or Valkey build and client library support TLS, enable it between Zammad and the data nodes, and between Sentinel and the nodes it monitors. Traffic on a private segment still crosses hosts, so unencrypted sessions can expose credentials and cached realtime data. Confirm with the vendor documentation for your exact version how TLS is configured and whether Zammad's connection settings accept the TLS endpoint.

Limit clients with host firewall rules

Write firewall rules that allow connections to Redis and Sentinel only from the Zammad hosts and your monitoring or administration hosts, and deny everything else by default. Re-check these rules after every Zammad node is added, replaced or moved, because a new node that is not on the allow list will fail to reach Redis. Keep the rules in version control so reviewers can compare them with the running configuration.

Log access and patch both release lines

Enable Redis or Valkey logging for authentication failures and configuration changes, and forward those logs to the central log system you use for Zammad. Track the release line you run, since Valkey maintains several lines at once and Redis publishes security releases on its own schedule. Schedule patch reviews against the release pages for your chosen engine, and test each update on a non-production Sentinel group first.

Valkey releases

How Zammad, Redis primary, replicas and Sentinels fit together

The diagram starts at the Zammad application nodes, which ask the Sentinel servers where the current Redis primary is instead of connecting to a fixed host. The Sentinels watch the primary and its replicas and promote a replica when the primary fails, so the address Zammad gets changes over time. Check that Zammad nodes can reach every Sentinel, that the Sentinels can reach each Redis node, and that the whole Redis side sits inside a network that only Zammad can use.

Zammad nodes discover the Redis primary through Sentinels inside a restricted network.

Limits to confirm in your environment before going live

Zammad's documentation sets the baseline for Redis, but the exact combination you run depends on your release, your package or container, and your failover design. The cards below list the items to verify in your own environment rather than assume from the docs.

Supported Redis and Sentinel versions

Zammad requires Redis 7 or newer for realtime websocket traffic, but the Redis line you pick is a separate decision. Redis 8 and later carry different license terms from the 7.4 to 7.8 line, and Valkey is a BSD-3-Clause alternative. Confirm with Zammad's documentation for your release which Redis or Valkey versions are tested, and record the version you deploy so upgrades are planned against it.

Software requirements

Sentinel name and password behavior

REDIS_SENTINEL_NAME defaults to mymaster, so a cluster that uses a different master name must set it explicitly. Check how your package or container passes REDIS_SENTINELS, sentinel passwords and Redis credentials, since a value that works in a shell may not reach the Zammad process. Test a connection from the application host using the same environment the service reads.

Failover and reconnection timing

Sentinel promotes a replica when the master fails, but the time Zammad takes to reconnect and resume realtime updates depends on your Sentinel settings and client behavior. Run a planned master failover during testing, then measure how long agents' browsers stay disconnected and whether ticket updates queue or drop. Do not treat the failover time as known until you have measured it in your environment.

Redis Sentinel docs

Memcached for multi-instance deployments

Memcached is needed for multi-instance Zammad deployments such as containers or cluster nodes, while single installations can use the file system cache. Redis does not replace it. If you run several application nodes behind a load balancer, confirm the Memcached setup alongside Redis, since a Redis Sentinel design can still fail on cache consistency if Memcached is missing.

Redis security outside Zammad's scope

Zammad does not manage Redis hardening, so authentication, network binding, TLS, patching and backups for the Redis or Sentinel nodes belong to your team or your Redis support provider. Confirm who owns those controls and who answers when a Redis node is down. Include Sentinel nodes in your firewall and monitoring plan, since a robust Sentinel setup needs at least three instances.

Sentinel instances recommended
3
Zammad Redis variables

Questions teams ask before changing Redis for Zammad

Is a standalone external Redis enough for Zammad?

A standalone external Redis is enough when a single Redis server meets your availability target and your team can restore it quickly. Zammad uses Redis for realtime websocket communication and needs Redis 7 or newer, so the server must be reachable from every Zammad node. The decision turns on what happens when that one server fails: websocket updates stop until it returns, and you need a tested restore path. Confirm the Redis version, network path, and recovery procedure with your own operations team before choosing this layout.

What does Redis Sentinel add, and how many Sentinels do you need?

Redis Sentinel adds automatic failover, promoting a replica to master when the current master fails, for deployments that do not use Redis Cluster. The Redis Sentinel documentation says a robust deployment needs at least three Sentinel instances, so that the cluster can agree on a failover without a single point of decision. Sentinel also adds moving parts: replicas to size, Sentinel processes to place on separate hosts, and failover to test. Zammad connects through the REDIS_SENTINELS variable, and it needs the sentinel name and passwords configured to match your setup.

Can Valkey replace Redis for Zammad?

Valkey is a BSD-3-Clause fork of open-source Redis, and its migration guide says existing Redis client libraries connect without code changes. The guide says Valkey is compatible with Redis OSS 7.2 and earlier, so a move from those versions is effectively an upgrade. Redis Community Edition 7.4 and later write data files that Valkey cannot read, so a move from those versions needs a method the guide does not cover. Confirm with Zammad's supported Redis and Valkey versions for your release, and test your Sentinel configuration against Valkey Sentinel before you switch.

What does the work need from the internal team?

The work needs someone who runs Redis and someone who runs Zammad, with a clear owner for each side. The Redis side covers hosts, network rules, authentication, replication, and Sentinel placement. The Zammad side covers the environment variables, restarts, and checks that websocket updates still reach agents. Your team should also own the change window, rollback steps, and the monitoring that will catch a failed failover. Before the work starts, agree who will be on call for Redis after go-live.

What drives the cost of this change, and why is no price quoted without written scope?

The cost depends on how many Zammad nodes connect, how many Redis or Sentinel hosts you run, where they sit, and how much testing your change process requires. Each of these changes the number of hosts, configuration items, and test cases, so a price guessed before those facts are known would not be reliable. DeployOpen does not publish a price list. Most engagements are fixed-scope, with scope, deliverables, and timelines agreed in writing before work starts, and a quote follows from that written scope. Ask for the included environments, the failover tests, and the handover material in any quote you receive.

How long does testing take, and what changes the duration?

Testing time depends on the environment: a lab with one Redis server takes less effort than a production layout with replicas, three Sentinels, and separate failure domains. Failover tests, restarts under load, and checks of websocket behavior add time because each one must be repeated after a change. Your change calendar and the number of environments you need to clear, such as staging and production, also set the schedule. Ask for a duration in writing only after the topology and the test plan are fixed, and confirm the approval steps your organization requires.

Can our team make this change without outside help?

Yes, a team with Redis and Zammad experience can make this change alone, provided it tests failover before go-live. The main risks are misconfigured sentinel names, missing passwords, and Zammad nodes that still point at the old server. Use the Zammad Redis variable documentation as the reference for REDIS_URL, REDIS_SENTINELS, and the optional sentinel name and passwords. If your team lacks someone who has run Sentinel failover in production, an outside review of the plan is a reasonable middle option.

Does Zammad secure Redis for you?

No, Zammad leaves Redis security to you, so the Redis server needs its own controls. Restrict network access to Zammad nodes and Sentinels, require authentication with usernames and passwords, and avoid exposing the port to the wider network. Review which credentials appear in environment files and how they are stored and rotated. Check the Redis licenses page if you plan to modify Redis or run it as a network service, since the license terms depend on the version you choose.

How DeployOpen scopes and delivers Redis changes for Zammad

Every Redis change starts with a written scope. Before any work begins, DeployOpen and the client agree in writing which Redis topology is in play: a standalone external Redis reached through REDIS_URL, or a Sentinel cluster reached through REDIS_SENTINELS with an optional REDIS_SENTINEL_NAME. The scope also names the Zammad hosts that will connect, the Redis version and build to be used (including whether Valkey is the chosen server), the networks and firewall paths involved, and who owns each credential. Scoping also covers which Redis-dependent behavior must be proven after the change, such as realtime websocket updates in the agent interface. A quote follows from that written scope, and the client should ask for the quote to list each of these items separately.

Planning comes next, and it is where most of the decisions sit. The team confirms the Sentinel layout (Sentinel is documented with at least three instances for a robust deployment), the Redis user accounts and passwords, how secrets reach the Zammad host without appearing in shell history or version control, and how Zammad's Redis connection will be restricted at the network level. DeployOpen implements inside the client's own infrastructure, so the work is carried out in the client's staging environment first, then promoted to production under the change process the client already runs. During implementation, the team verifies that failover promotes a replica and that Zammad reconnects, then tests websocket behavior by forcing a Redis failover while agents hold open sessions. Those results, with the exact configuration, are recorded for review. The handover package includes configuration documentation, a failover runbook, the credential inventory with rotation owners, and operating notes that name what to watch in logs after a Redis event.

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.