Configuring Redis and RabbitMQ for OpenCTI: what your team must decide
If you are planning a self-hosted OpenCTI platform, the message layer is one of the first things to size and secure, because OpenCTI depends on it for every asynchronous write. The platform hands work to Python workers and connectors through RabbitMQ queues, and it uses a Redis stream as the event buffer behind that flow. Accepting defaults is reasonable for a pilot, but production teams need to decide how large the Redis stream may grow, how much memory each service may consume, and whether either component must run as a cluster. Those choices determine how much backlog your ingestion can absorb before it slows or fails.
Start with Redis. By default the OpenCTI Redis stream is limited to 2 million events, with a memory footprint of around 8 GB, so decide whether that ceiling fits your expected feed volume and connector count before you deploy. Your team must also choose between a single instance, Sentinel-managed high availability (which requires at least three Sentinel instances for a robust deployment) and Redis Cluster, which is enabled with REDIS__MODE=cluster. Confirm the Redis version you will run against the OpenCTI dependency minimum of 7.1 or later, and check the Redis licenses page before choosing a release line, because the license terms changed starting with Redis 8.0.
RabbitMQ has a different constraint. OpenCTI does not accept multiple RabbitMQ nodes in its configuration, so a RabbitMQ cluster needs a TCP load balancer in front of it. Plan that load balancer, its health checks and its TLS termination before the platform is deployed, and confirm the minimum RabbitMQ version (3.11 or later) against the release you intend to run. RabbitMQ also consumes memory up to a threshold, so set its memory limit together with the Docker memory limits for the container. Ask your platform team to confirm how TLS is applied to both Redis and RabbitMQ in your environment, and record the decision in your deployment design.
How the platform, workers, Redis and RabbitMQ connect
The diagram starts at the connectors and the web UI, which write through the OpenCTI platform rather than straight to storage. The platform hands asynchronous writes to RabbitMQ, where Python workers consume them, and it publishes events to the Redis stream that stream consumers read. A RabbitMQ cluster sits behind a TCP load balancer because OpenCTI addresses a single RabbitMQ endpoint. Check that every component can reach the broker and Redis endpoints you configure, and that Elasticsearch or OpenSearch and S3-compatible storage are reachable from the platform and workers.
Request and message paths between the OpenCTI platform, workers, Redis, RabbitMQ and dependencies.
Redis and RabbitMQ configuration options and when each fits
This table compares the Redis and RabbitMQ topologies OpenCTI can run on, with the condition that makes each one a reasonable choice. Read each row as a decision: start with the topology your team can operate, then check the stream cap and memory limits against your expected event volume. The main takeaway is that OpenCTI's RabbitMQ setup always needs a TCP load balancer when clustered, because the platform does not accept multiple RabbitMQ nodes.
| Option | How it works with OpenCTI | When it fits |
|---|---|---|
| Standalone Redis | One Redis instance holds the OpenCTI event stream, using the default cap of 2 million events and a footprint of around 8 GB. | Small or test deployments where a single instance can hold the stream and a restart or failure is acceptable to the team. |
| Redis cluster (REDIS__MODE=cluster) | OpenCTI connects in cluster mode when this environment variable is set, spreading the stream across shards. | Larger deployments that need horizontal capacity, and where the team can confirm cluster support for the Redis version in use. |
| Redis Sentinel with replicas | Sentinel monitors a master and promotes a replica automatically on failure. Sentinel is used when Redis Cluster is not. | Teams that want high availability without cluster mode. Sentinel docs call for at least three Sentinel instances. |
| Single RabbitMQ node | One broker receives and delivers messages between the platform, Python workers and connectors. Memory use is capped by its configured threshold. | Test environments and smaller production deployments where a broker outage is an accepted risk and recovery steps are documented. |
| Clustered RabbitMQ behind a TCP load balancer | Several nodes sit behind one TCP load balancer, because OpenCTI does not accept multiple RabbitMQ nodes in its configuration. | Production deployments that need broker redundancy, provided the team can operate the load balancer and confirm failover behavior. |
| RabbitMQ memory limits with Docker memory limits | RabbitMQ stops accepting publishes at its memory threshold, so the threshold is set together with the container memory limit. | Every deployment. Setting the broker threshold without a matching container limit leaves memory behavior hard to predict. |
| Default Redis stream cap (2 million events) | The stream is trimmed at this length by default, with a footprint of around 8 GB as stated in the OpenCTI installation docs. | Confirm whether the default fits your ingestion rate before raising or lowering the cap, and size memory to match. |
How the Redis stream limit and memory footprint shape sizing
The default OpenCTI Redis stream is limited to 2 million events, with a memory footprint of around 8 GB, and that figure is the starting point for sizing Redis, not the ceiling. The stream is the buffer between the platform and the workers that write to Elasticsearch or OpenSearch, so it holds the backlog that builds up when producers outpace consumers. Memory planning therefore depends on three things you control: how much data your imports and connectors push in, how many connectors run at once, and how fast your Python workers drain the queue. A burst of feed imports, or a connector that re-sends a large history, can fill the stream faster than a steady-state estimate suggests.
Before you settle on a memory allocation, run a load test that mirrors your real import schedule and connector count, then record the stream length and Redis memory use over the peak window. Compare the observed peak with the default limit and with the memory your Redis host or container can give it without starving other services. Ask the vendor or your own platform team whether the stream cap is configurable in your OpenCTI version and how the platform behaves when the cap is reached, so you know whether a surge means lost events, delayed ingestion or a visible error. Treat the default figures as illustrative defaults to confirm, not as a sizing guarantee.
Confirm the Redis version before you finalize the build. OpenCTI's dependency list calls for Redis 7.1 or later, so check that the Redis build you plan to deploy meets that requirement and that your chosen distribution, container image or package is the one you tested. Redis licensing changed with the 8.0 line, so record which license terms apply to the exact build you deploy and have your legal or procurement team review them before production. Repeat the version check whenever you upgrade either Redis or OpenCTI, because memory behavior and supported versions can change between releases.
Setup sequence for Redis and RabbitMQ with OpenCTI
This sequence takes Redis and RabbitMQ from version checks to a tested OpenCTI deployment that recovers cleanly after a node restart. Each step closes with a check your team can record before moving on.
Confirm dependency versions and RabbitMQ release line
Confirm that the Redis version is 7.1 or later and the RabbitMQ version is 3.11 or later, as listed in the OpenCTI deployment overview. Also record which RabbitMQ release line you will run, since community support windows differ between lines. Check the RabbitMQ release information page to confirm whether your chosen line is still in community support or needs a commercial support license. Also check the Redis license terms for your chosen version, because the license changed across Redis releases. The step is done when the versions, release line and license position are written down and approved by your platform owner.
Size the Redis stream and its memory
Decide the Redis stream length and the memory budget for it before you deploy. The OpenCTI installation documentation gives a default stream limit of 2 million events, with a memory footprint of around 8 GB. Compare that figure with the memory available on the Redis host or pod, and with the ingestion volume your connectors will generate. Ask your OpenCTI implementation contact to confirm any change to the stream limit for your workload. The step is done when the stream limit, the memory allocation and the headroom above them are recorded in your configuration plan.
Set RabbitMQ memory threshold and container limits
Configure the RabbitMQ memory threshold so the broker stops accepting publishers before the host runs out of memory. Then set the Docker or Kubernetes memory limit for the RabbitMQ container so the two settings agree. The OpenCTI installation documentation says RabbitMQ should be configured together with Docker memory limits. Run a short load test with representative connector traffic and watch memory use and blocked connections. The step is done when a load test stays under the threshold and the limits are written into your deployment files.
Choose standalone, Sentinel or cluster mode
Select the Redis topology that matches your availability target. Redis Sentinel provides automatic failover for Redis when you do not use Redis Cluster, and its documentation says a robust deployment needs at least three Sentinel instances. Redis Cluster is enabled in OpenCTI with the REDIS__MODE=cluster setting. For RabbitMQ, OpenCTI does not support multiple nodes in its configuration, so a cluster must sit behind a TCP load balancer. Document the topology, the endpoints OpenCTI will use and the owner of each component. The step is done when the chosen topology is approved and the connection settings for each service are drafted.
Place a TCP load balancer in front of RabbitMQ
If you run a RabbitMQ cluster, place a TCP load balancer in front of its nodes and point OpenCTI at the load balancer address only. Confirm with your network team which health check the load balancer uses to remove an unhealthy node from rotation. Test that a connection made through the load balancer reaches a healthy node and that the platform and workers can publish and consume messages. The step is done when a test message sent through the load balancer is consumed and the failed-node test passes in the next step.
Enable TLS on Redis and RabbitMQ
Enable TLS on the client connections to both services, following the configuration keys in the OpenCTI installation and clustering documentation. Issue certificates from the certificate authority your organization uses and install the trust chain on the OpenCTI platform and worker hosts. Confirm that the platform, workers and connectors connect over TLS and that plaintext connections are refused. Record the certificate expiry dates and the owner responsible for renewal. The step is done when every client connection is verified as encrypted and renewal ownership is assigned.
Test reconnection after a node restart
Restart one Redis node or RabbitMQ node at a time while OpenCTI is ingesting data. Watch the platform logs, worker logs and connector logs to confirm they reconnect without manual intervention. Check that queued messages are not lost and that ingestion resumes after the restart. For Sentinel, also confirm that failover promotes a replica and that OpenCTI follows the new master. Repeat the test for each node role. The step is done when every restart test is recorded with its result, and any reconnection failure has a fix and a retest.
Securing Redis and RabbitMQ traffic and access
Redis and RabbitMQ carry the work that OpenCTI's platform and workers depend on, so their connections, credentials and queues need the same care as the data store behind them. The cards below cover what to protect, who should reach each broker and how to watch and recover the queued work. Confirm each TLS and authentication setting against the current configuration reference for your OpenCTI release before you change production.
TLS for client connections
Decide whether traffic between the OpenCTI platform, its workers and the two brokers crosses a network you do not fully control. If it does, enable TLS on each client connection and make sure every OpenCTI component trusts the same certificate authority. Check the Redis and RabbitMQ TLS settings in the configuration reference for your OpenCTI version, because key names and certificate paths change between releases. Test a restart with TLS enabled before rollout.
OpenCTI installation docsCredentials and network isolation
Give Redis and RabbitMQ their own credentials, stored in your secrets manager and passed to OpenCTI through environment variables rather than committed configuration files. Place both brokers on a private network segment that only the platform and worker hosts can reach. Remove default guest accounts from RabbitMQ and confirm that Redis is not bound to a public interface. Rotate these credentials on a schedule and record who holds them.
Restricting broker access
List every component that connects to each broker, including connectors, and allow only those sources through firewall rules or security groups. Connectors often run on separate hosts or in separate namespaces, so they are the most common source of unexpected traffic. Review the list after each new connector is deployed. Record the owner of each allowed source so that removals happen when a connector is retired.
Monitoring queue depth and memory
Watch RabbitMQ queue depth and memory use, and Redis stream length and memory use, as security and availability signals together. A sudden growth in queued messages can show a stalled worker, a connector sending unusual volume, or a broker under attack. Alert before memory reaches the point where RabbitMQ applies its memory threshold, and keep the Docker memory limits aligned with those thresholds. Agree the alert owners and response steps before go-live.
Backup and recovery for queued work
Decide in advance how much queued work you can lose and how the platform recovers it after a broker failure. Redis streams and RabbitMQ queues hold messages that have not yet been written to the platform, so a broker rebuild without those messages can leave gaps in ingested data. Document the recovery steps, test a broker restore in a non-production environment, and confirm with your OpenCTI and broker vendors which durability settings apply to your deployment.
Patching tied to support windows
Plan broker and Redis upgrades around the published support dates rather than on an ad hoc basis. RabbitMQ 4.2 community support ended on July 31, 2026, and RabbitMQ 4.3.6 has community support until January 31, 2027, according to RabbitMQ release information. Redis security releases are published on the Redis releases page, so subscribe to them. Check each upgrade against the OpenCTI dependency versions in your release notes before applying it.
RabbitMQ release informationQuestions teams ask before configuring Redis and RabbitMQ for OpenCTI
What drives the effort of configuring Redis and RabbitMQ for OpenCTI?
The effort depends mostly on how many event sources and workers feed the platform, how large the Redis stream must be, and how many environments need matching configuration. OpenCTI's default Redis stream is limited to 2 million events, with a memory footprint of around 8 GB, so event volume and retention decide whether that default is enough. RabbitMQ also needs memory limits set together with Docker memory limits, and each change must be checked under real load. Teams with more connectors, more workers, or a requirement for TLS and clustering face more testing and more documentation work.
Can an internal team configure Redis and RabbitMQ for OpenCTI without a partner?
Yes, a team with Linux, container and messaging experience can usually configure both services, provided it reads the OpenCTI installation and clustering documentation and tests each change. The harder parts are sizing the stream and queues against real event volumes, setting up a TCP load balancer in front of a RabbitMQ cluster because OpenCTI does not support multiple RabbitMQ nodes in its configuration, and proving that failover behaves as expected. A partner is useful when the team lacks spare capacity, needs an independent review, or must show evidence to an assessor.
What does the work need from our team?
The work needs access to the staging and production environments where Redis and RabbitMQ run, current sizing data such as event volumes, connector counts, worker counts and available memory, and a named owner who can approve configuration changes. It also needs change windows for restarts and failover tests, and a record of the current OpenCTI version, since configuration keys can differ between releases. Ask your team to confirm the hosting model, whether TLS certificates are issued internally, and who will operate the services after handover.
How long does a configuration review take?
The duration depends on scope: a single environment with one Redis instance and one RabbitMQ node is far quicker to review than a clustered Redis deployment with a RabbitMQ load balancer, TLS and separate test and production stacks. Load testing, failover testing and documentation add time for each environment. Ask any provider for a written timeline that lists the environments, the tests and the deliverables, and confirm how the timeline changes if sizing data arrives late.
How does Redis licensing affect the choice of Redis version?
Licensing depends on the Redis version you run. Redis 7.2 and earlier remain under the BSD-3-Clause license, Redis 7.4.x to 7.8.x are under the dual RSALv2 or SSPLv1 license, which neither is OSI-approved, and Redis Open Source 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and AGPLv3. The Redis licenses FAQ says teams using unmodified Redis artifacts from 7.2 or earlier see no impact, while teams offering modified Redis code as a network service must make that source available. Have your legal or compliance team confirm which license fits your use before you pick a version.
Does a managed Redis or RabbitMQ service change the configuration work?
A managed service changes who operates the infrastructure, but it does not remove the OpenCTI-side configuration. You still need to set the stream limits, memory thresholds and connection settings that OpenCTI reads, and you still need to confirm that the managed product supports the Redis and RabbitMQ versions OpenCTI requires. Redis Cloud is a managed service on AWS, Google Cloud and Azure, while Redis Software is a self-managed product, and both carry their own terms. Ask the managed provider to confirm TLS, cluster behavior and support lifecycles in writing.
Which RabbitMQ support lifecycle should we plan around?
Plan around the community support dates and any commercial support you hold. RabbitMQ 4.3.6 was released on September 16, 2026 with community support until January 31, 2027, and 4.2 community support ended on July 31, 2026. Longer support is available only with a valid commercial support license, for example commercial support for 4.2 runs to June 30, 2030, according to the RabbitMQ release information. Confirm the current dates and terms with the Broadcom support portal before you commit to a version.
How DeployOpen scopes and delivers this configuration
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For OpenCTI, that means agreeing in writing how the Redis stream and RabbitMQ queues are sized, secured and operated in your environment before any configuration changes are made.
How we scope
- Engagements are fixed-scope, with the Redis and RabbitMQ deployment model, versions and environment agreed in writing before work starts.
- The written scope records your OpenCTI version, expected ingestion volume, stream length target, and whether Redis runs standalone, in Sentinel or in cluster mode.
- Scope also records the RabbitMQ load balancer approach, TLS requirements, memory limits and the hosting platform (Docker Compose, Kubernetes or manual install).
How we build
- We configure Redis and RabbitMQ connection settings, TLS and memory limits in the OpenCTI deployment you control, following the vendor documentation for your versions.
- We test stream and queue behavior under representative load, including memory thresholds and how the platform and workers recover from a dependency restart.
- We confirm the license and edition of each component against your organization's requirements before anything is deployed.
How we hand over
- You receive written configuration records for Redis and RabbitMQ, including each setting, its reason and the environment it applies to.
- Handover includes a runbook covering stream length checks, queue depth monitoring, memory alerts and steps for changing the cluster or TLS settings.
- We walk your platform and security teams through verification results and open items so ownership of the configuration is clear.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including re-checks when Redis or RabbitMQ versions change.
- Upgrade planning covers the Redis and RabbitMQ release lines your OpenCTI version supports, with the licensing and support dates confirmed at that time.
- Support can include retesting after configuration changes, so the documented settings stay accurate as your environment evolves.

