I'm setting up a few Ubuntu 14.04 (LTS) virtual machines under an Azure Service (Availability Set). I'd like for each of these to be able to discover dynamically at least one other system in the local group so that they can initialize an etcd service on boot.
What approach would you take to do this?
Would it be best to simply try connecting to an etcd service on each address in the same netmask until I can connect to one? (Should work with IPv4 okay, but may be problematic in the future).
Don't want to expose this outside of the cluster for the service/vlan in question.