Is it possible that I can trigger the client to reconnect on discovering a new cluster node? #1509
-
Hi guys, Now the client only reconnects when it encountered errors. So if I added a new node into my cluster, it won't have any traffic at all until some clients reconnect. I think it will cause a big problem when upgrading NATS cluster. So if I can trigger the client to reconnect once it discovered a new node, then the problem will be solved. Any ideas on this one? Really appreciate! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sometimes clients want to connect to specific servers, but in general we recommend connecting to the closest cluster (lowest RTT). Balancing connections across a system and within clusters has come up. We have added the ability for a system user to disconnect certain clients and we will build that up to a function in the NATS cli to auto re-balance a NATS system over a period of time. |
Beta Was this translation helpful? Give feedback.
Sometimes clients want to connect to specific servers, but in general we recommend connecting to the closest cluster (lowest RTT).
Balancing connections across a system and within clusters has come up. We have added the ability for a system user to disconnect certain clients and we will build that up to a function in the NATS cli to auto re-balance a NATS system over a period of time.