Managing NATS Instance Scaling: Automatically Updating Configuration for New Instances #5892
Unanswered
mohamedsaleem18
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The helm chart should do this for you, if you use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consumer connection url
A NATS cluster currently consists of 3 NATS instances. According to recommendations from NATS.io, consumers should connect to the cluster using the seed URLs of each NATS instance to ensure automatic failover.
If the cluster is scaled up to 5 instances, is there a method for consumers to automatically detect the new NATS instances and update the NATS URLs accordingly?
For example:
nats://localhost:31420,nats://localhost:31421,nats://localhost:31422
Cluster configuration
In the nats-server.config file, the URLs (routes) of each NATS instance are specified explicitly. When scaling the NATS instances in the StatefulSet from 3 to 5, is there a way to automatically update the nats-server.config file with the new instance URLs (routes)?
For example:
Beta Was this translation helpful? Give feedback.
All reactions