etcd would be a fine choice, but Consul provides a lock feature[1] out of the box.<p>1. <a href="https:&#x2F;&#x2F;www.consul.io&#x2F;docs&#x2F;guides&#x2F;leader-election.html" rel="nofollow">https:&#x2F;&#x2F;www.consul.io&#x2F;docs&#x2F;guides&#x2F;leader-election.html</a>