How it works...
Datastore heartbeating is enabled by default and chooses two heartbeat datastores per host. It does so by making sure that it selects the datastores that are not backed by the same NFS server or storage, and are mapped to at least two ESXi hosts. Datastore heartbeating works by using VMFS's filesystem locking mechanism. It creates files—what VMware calls heartbeat files, which are kept open in order to keep a filesystem lock active on that file. Every host in the HA cluster gets a corresponding heartbeat file. In the event of network isolation, the master checks the liveliness of the isolated host by checking whether there is an active lock on its heartbeat file. The heartbeat files are stored in a directory called .vSphere-HA ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access