Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Add/document reliable way to figure out if server node joined cluster successfully #880
I'm trying to create a AWS AutoScaling configuration to fully automate rolling upgrades of my consul nodes. The idea is that the ASG will terminate one instance, create a new one and wait with the next one until I signal success for the first one.
I might be able to check if the node is in /v1/status/peers but I'm not sure this goes through the raft log and is guaranteed to be consistent. Or I assume that a node sucesffully joined as soon as /v1/status/leader returns something, but same here - I'm not sure about the consistency guarantees.
So if there is a way to programatically tell that a node successfully joined it should be documented. If not, I think it would be useful to have a API endpoint for that.