Which one is better:
vSphere Fault Tolerance (FT) and vMotion are both used for maintaining high availability of VMs, but they serve different purposes and have different impacts on the operation of a VM.
vSphere Fault Tolerance (FT): FT is used for mission-critical VMs as it provides continuous availability. It works by creating and maintaining a Secondary VM that is identical to the Primary VM. The Primary VM is continuously replicated to the Secondary VM, which can take over at any point in case of a failover situation. This ensures that users experience no interruption in service and no loss of data. However, FT requires more resources as it maintains a duplicate VM and continuously replicates changes from the Primary VM to the Secondary VM.
vMotion: vMotion is used to migrate running VMs from one host to another without any downtime. It is typically used for load balancing and for performing maintenance on the hosts. Unlike FT, vMotion does not maintain a continuous duplicate of the VM, so it requires fewer resources. However, during the migration process, there is a brief period (usually a few seconds) where the VM is paused while its memory state is transferred to the target host.
In the context of transferring a live VM related to a website with regular data entry to another host, both FT and vMotion could be used, but the best choice depends on the specific requirements and constraints of your situation. If continuous availability (zero downtime) is a critical requirement, FT would be the better choice. If resource usage is a concern, and a brief pause during migration is acceptable, vMotion would be the better choice.
References:
- https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.avail.doc/GUID-623812E6-D253-4FBC-B3E1-6FBFDF82ED21.html
- https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.networking.doc/GUID-1CAD9F77-71C5-41DE-9357-E5FAFCD20D36.html
- https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.networking.doc/GUID-AA3656B0-005A-40A0-A293-4309C5ACF682.html