Parameters
Parameters that affect the shutdown behavior of nodes:
You can either allow a Consul node to auto-leave the quorum on shutdown, or you can manually remove the node from the quorum with the leave or force-leave commands (which have to be run on the node you wish to remove).
There are two parameters that affect the behavior of nodes in a cluster on shutdown and restart - both of which have “leave” in them.
“leave_on_terminate” - false by default. Setting this to true will remove the node from the cluster when it is terminated.
“skip_leave_on_interrupt” - false by default. Setting this to true will not remove the node from the cluster when it is interrupted.(see more on signals).
A Consul node can be stopped via Unix signals. The behavior depends on how the nodes are notified i.e., which signal is passed to Consul.