-
Notifications
You must be signed in to change notification settings - Fork 94
Peers discovered but filtered out as non-eligible: k8s endpoint listing returned nodes not yet ready #52
Comments
Thank you for your time. Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. GitHub issues are not used for questions, investigations, root cause analysis, discussions of potential issues, etc (as defined by this team). We get at least a dozen of questions through various venues every single day, often light on details. Please post this to rabbitmq-users. Thank you. |
See How to Troubleshoot Peer Discovery (hint: most decisions are logged at |
While not really applicable to Kubernets as the log message says, the range of values in On an unrelated note, two node clusters are highly discouraged because computing a majority of nodes in case of connectivity loss is impossible. Some features in 3.8 will require a 3+ node cluster. |
One of the log files contains the following clue:
According to the Kubernetes API, the pod of the discover peer is not yet initialised. This is the case when the pods are booting in parallel. See this rabbitmq-users thread, for example. The docs now explicitly warn about this:
|
With some backends, namely Kubernetes, a set of nodes can be discovered but then filtered out as ineligible. For example, a node whose pod is not yet ready would not be considered for clustering. Hopefully it would reduce the frequency of questions such as [1][2]. 1. https://groups.google.com/forum/#!msg/rabbitmq-users/tm3Ip0mXXjs/WCOm3z_fAAAJ 2. rabbitmq/rabbitmq-peer-discovery-k8s#52
With some backends, namely Kubernetes, a set of nodes can be discovered but then filtered out as ineligible. For example, a node whose pod is not yet ready would not be considered for clustering. Hopefully it would reduce the frequency of questions such as [1][2]. 1. https://groups.google.com/forum/#!msg/rabbitmq-users/tm3Ip0mXXjs/WCOm3z_fAAAJ 2. rabbitmq/rabbitmq-peer-discovery-k8s#52 (cherry picked from commit 7e2021c)
@michaelklishin Thank you for your reply.I have a another try without the "cluster_formation.k8s.address_type = hostname" , and other configurations do not change like "cluster_formation.randomized_startup_delay_range". rabbitmq-0' s log
rabbitmq_configmap.yaml
rabbitmq_statefulsets.yaml
|
I'm not sure what the question is. At the end of the log a peer joins the cluster:
If you want to see what Kubernetes API endpoint responses return, set log level to For our team GitHub is not a support forum => I am locking this issue. Please iuse the mailing list in the future. |
I'm trying to make a rabbitmq cluster witch 2 node by useing the rabbitmq-peer-discovery-k8s.But both of 2 rabbitmq node are running alone.
rabbimq-0's log
rabbitmq-1's log
rabbitmq cluster_status
rabbitmq_configmap.yaml
rabbitmq_statefulsets.yaml
The text was updated successfully, but these errors were encountered: