Hi,
I would like to understand how retry-join will work for a consul agent in client mode ?
We have 3 consul agents in server mode and 1 consul agent in client mode. All 3 consul agents in server mode are started and formed a cluster.
During the start of consul in client mode we pass the flag -retry-join so that it keeps trying to find consul agents in server mode.
Let us consider it found the consul agents in server mode and joined them. Now in its consul member list we have 3 consul agents in server mode with status as "alive".
Now if we gracefully exit all 3 consul agents in server mode then in the consul member list of the consul agent in client mode we see the status as "left" for these 3 servers.
Based on my understanding even if i rebuild all the 3 consul agents in server mode with same ip, the consul agent in client mode will not retry to join them because it has flagged these consul agents as "left".
Also if i rebuild all the 3 consul agents in server mode with different ip, the consul agent in client mode will not retry to join them because it does not know these new ip addresses.
In these scenario, i have to either restart the consul agent in client mode or manually perform a "consul join" to one of the consul node in server mode.
Also i would like to confirm if 3 statutes for consul agents are "alive", "left", "failed".
Please let me know if my understanding is correct or not.
Thanks,
Pradeep NSS