Consul services disapper when underlying register node goes down

  • I have set up a 3 node consul cluster all as a server(“192.108.2.100”, “192.108.2.101”, “192.108.2.102”).
  • Then register spring service A and B on node “192.108.2.100”.
  • However when consul on node “192.108.2.100” goes down/crashes/switches off then all services disappear.
  • Instead I want these services to shift to other nodes maybe 2.101 or 2.102

here are my consul config.json

{
“node_name”: “100”,
“ui”: true,
“server”: true,
“datacenter”: “dc_1”,
“client_addr”: “0.0.0.0”,
“bind_addr”: “192.108.2.100”,
“advertise_addr”: “192.108.2.100”,
“bootstrap_expect”: 3,
“start_join”: [
“192.108.2.100”,
“192.108.2.101”,
“192.108.2.102”
],
“retry_join”: [
“192.108.2.100”,
“192.108.2.101”,
“192.108.2.102”
],
“leave_on_terminate”: true,
“rejoin_after_leave”: true,
“data_dir”: “C:\dc_1\consul\data”,
“enable_script_checks”: true,
“log_level”: “INFO”
}