Open throwbear opened 6 months ago
If you are specifically listing all cluster members in the configuration then it will try them forever, so in that case you should edit the config and reload the servers.
The server do support learning network topology dynamically if you only listed some of the servers, in that case it should not try forever
If you are specifically listing all cluster members in the configuration then it will try them forever, so in that case you should edit the config and reload the servers.
The server do support learning network topology dynamically if you only listed some of the servers, in that case it should not try forever
In addition to restarting the servers,is there any commands supporting add or delete routing-table?
You can just add a server listing one or two routes and it will learn the topology, and removing it will be fine. But if you list it all in the config - or remove one listed in the config - you need to reload.
Note, dynamic cluster adjustments isn't compatible with JetStream so if you want to use that you need to be more static in nature.
Observed behavior
I start four nats-server instances by configuration file as follows:
cmd “nats server list” return as follows:
After running a while, I shut down one of cluster server(node103). nats-server log in the rest of cluster keep printing:[ERR] Error trying to connect to route (attempt 13062): dial tcp 192.168.3.103:4248: connect: connection refused
Expected behavior
How to refresh routing-table in the nats cluster Dynamically when removing a node?
Server and client version
nats-server: v2.10.10 nats --version 0.1.3
Host environment
No response
Steps to reproduce
No response