Deploying ES across four VMWare ESX hosts, with about 3-4 ES VMs per host. I plan to configure allocation awareness based on physical host ID, but since this virtual rig is configured to automatically start a dead VM on one of the other ESX hosts, that means the host ID is not static for each ES node, so we cannot hardcode it in the start script.
Further the hosting provider tells me that is is impossible from within the guest VM (RHEL7) to dynamically obtain a stable host identifier. I tell them not to move VMs around, but the answer is that is is automatic and would cause extra manual work to stop VMs from moving during e.g. planned maintenance on one physical host, so they like to avoid that.
I'm sure we're not the first to have such a setup. How have others solved this?