-
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: Issue 1: Inconsistent Connection ReportingWhen I initially start the cluster and run the following command: nats --server some-dns-name:4222 --user nats --password super_password server report connections I correctly see three servers ( kubectl port-forward nats-0 4222:4222 -n nats
nats --server some-dns-name:4222 --user nats --password super_password server report connections
... streams...
╭────────────────────────────────╮
│ Connections per server │
├────────┬─────────┬─────────────┤
│ Server │ Cluster │ Connections │
├────────┼─────────┼─────────────┤
│ nats-0 │ nats │ 1 │
│ nats-2 │ nats │ 240 │
╰────────┴─────────┴─────────────╯ 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 SecretIn the cluster secret for routes, I observe only one route instead of two for each pod. The configured routes look like this: routes = [
nats://nats_cluster:password@nats:6222
] 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.
Replies: 2 comments
-
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.
-
This is fixed in the bitnami charts now: bitnami/charts#30124 |
Beta Was this translation helpful? Give feedback.
This is fixed in the bitnami charts now: bitnami/charts#30124