Deploy single Rabbit MQ cluster spread across multiple K8S clusters #13173
-
Community Support Policy
RabbitMQ version used4.0.5 Erlang version used27.2.x Operating system (distribution) usedUbuntu 22 How is RabbitMQ deployed?Bitnami Helm chart rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clusterDeploy RabbitMQ on 2 K8S clusters using helm: helm install rabbitmq-c1 bitnami/rabbitmq --namespace rabbitmq --context="${CTX_CLUSTER1}" helm install rabbitmq-c3 bitnami/rabbitmq --namespace rabbitmq --context="${CTX_CLUSTER2}" I already have ISTIO Mesh installed to connect 2 clusters with different networks. istio-injection=enabled has been enabled in rabbitmq namespace Steps to reproduce the behavior in question
advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?We need one RabbitMQ cluster spread across multiple k8s clusters. Using Federation/Shovel, its more of duplicate queues are being created across clusters where there is no guarantee that only one consumer will consume the message. So, wanted to avoid this Federation/Shovel Plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You didn't say why you "need" that, but most likely - you don't. To be honest, it just sounds like a bad idea. If the goal is to achieve a disaster recovery solution - we have a commercial feature, Warm Standby Replication for such use cases, but it still replicates data between two different RabbitMQ clusters (most likely each deployed to a different Kubernetes cluster, in a different AZ). If you want to explore spreading a RabbitMQ cluster across Kubernetes clusters - go ahead, but we won't spend time on this. |
Beta Was this translation helpful? Give feedback.
You didn't say why you "need" that, but most likely - you don't. To be honest, it just sounds like a bad idea.
If the goal is to achieve a disaster recovery solution - we have a commercial feature, Warm Standby Replication for such use cases, but it still replicates data between two different RabbitMQ clusters (most likely each deployed to a different Kubernetes cluster, in a different AZ).
If you want to explore spreading a RabbitMQ cluster across Kubernetes clusters - go ahead, but we won't spend time on this.