Inconsistent Connection Reporting and Routes in NATS JetStream Cluster Across Pods (Bitnami Helm Chart 8.5.2) #6301
Unanswered
serhii-kaliuzhnyi-dev
asked this question in
Q&A
Replies: 1 comment
-
This is an issue with the Bitnami Helm chart: The complete set of pods should be set as part of the routes section in the configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running a NATS JetStream cluster (version 2.10.24) deployed with the Bitnami Helm Chart (version 8.5.2) on Kubernetes. The setup spans three availability zones (AZs) with three replicas:
nats-0
,nats-1
, andnats-2
Issue 1: Inconsistent Connection Reporting
When I initially start the cluster and run the following command:
I correctly see three servers (
nats-0
,nats-1
,nats-2
) in the cluster, with one of them (e.g.,nats-1
) elected as the leader. However, when I kill the leader pod (nats-1), a new leader is elected (e.g.,nats-0
). After this, if I proxy eithernats-0
ornats-2
using:and re-run the same command, I see only two servers in the cluster, even though the nats-1 pod is running. However, if I proxy nats-1 and re-run the command, I see all three servers again.
Is this expected behavior for NATS JetStream clustering? Could this potentially lead to unexpected behavior with RAFT elections or restoring the cluster state?
Issue 2: Missing Routes in Cluster Secret
In the cluster secret for routes, I observe only one route instead of two for each pod. The configured routes look like this:
According to the JetStream clustering documentation, I expected to see routes for each pod in the cluster. This seems like a misconfiguration. Could this contribute to the behavior described in Issue 1?
Questions:
Beta Was this translation helpful? Give feedback.
All reactions