VMware vSphere Best Practices
- All the hardware you use in the system is in the hardware compatibility list for that specific version of VMware Software.
- Make sure that the hardware of choice does meet the minimum configuration requirements that’s supported by the VMware software.
- It is also considered as a best practice to test system memory for 72 hours so as to allow you to check for any hardware errors.
- When considering the CPU, it is important to get a CPU that’s compatible with VMware vMotion requirements which have a direct bearing on the DRS (Distributed Resource Scheduler).
- You should also consider the compatibility of the CPU with the associated VMware Fault tolerance.
In terms of processors, most recent processors from both AMD and Intel do include specific hardware features that are geared towards assisting virtualization. Even though the first generation processors did introduce CPU virtualization, the VT-x from Intel and the AMD- V from AMD, things have since changed. For best performance, you are well advised to use the second generation processors which have an additional Memory Management Unit (MMU) virtualization. These include the AMD RVI (rapid virtualization indexing) processor and the Intel EPT (Extended page tables).
It is worth noting that there is an even newer I/O memory management feature in current processors which allows virtual machines to have direct access to several input and output devices such as storage controllers and network cards. In Intel processors, this feature is known as VT-d (Virtualization Technology for Directed input /output). In AMD processors this feature is called IOMMU or AMD-Vi (AMD I/O Virtualization).
Back end storage configuration has been known to greatly affect performance and most of the times; instances of lower than expected storage performance are usually as a result of configuration issues. Storage performance does depend on a variety of factors such as the workload, the cache size, the hardware, the vendor used, the stripe size and the RAID level amongst a host of other activities. Keeping in mind that many workloads are greatly sensitive to the latency of I/O operations, the importance of having storage devices configured correctly cannot be overemphasized. When choosing hardware for this purpose, it is advisable to choose storage hardware that supports VAAI (VMware vStorage APIs for Array integration) so as to offload some of the operations to the storage hardware rather than performing them in ESXi and improve storage scalability.
When deploying or building a vSphere High Availability (HA) cluster, it is normally considered best practice to build the cluster out of identical server hardware as this greatly simplifies the management and configuration of servers using available host profiles and also reduces resource fragmentation and increases ability to handle server failures. The use of drastically different hardware in a cluster does lead to an unbalanced cluster which makes the cluster less productive.
It is also important to take into consideration the overall size of the cluster. It is known that smaller sized clusters do require a larger relative percentage of all the available cluster resources set aside as reserve capacity so as to handle failures adequately. Always keep in mind that a cluster of only three nodes will require at least 33% of the cluster resources to be kept on reserve for fail over whereas a cluster of say ten nodes will only require 10% of cluster resources reserved for failover. It should be noted though that the complexity of the cluster does increase considerably.
For those users who are implementing earlier versions of vSphere, the use of secondary and primary hosts with a limit of five primary hosts should be implemented as part of the VMware vSphere best practices. The vSphere 5.0 though does do away with this requirement and introduces the master-slave relationship amongst the nodes of a cluster. One node must therefore be assigned the role of a master and incase it fails another node is selected in an election process.
When taking into consideration about the network design, it is important to note that the two main areas where best practice does come in sharp focus is on increasing the resiliency of the client side networking and increasing the resiliency of communication channels used by the HA itself. If the switches in the physical network that connect the servers support PortFast or an equivalent setting, then this should be enabled. This allows the host to quickly regain connectivity after booting. It is also recommended that host monitoring is disabled anytime some network maintenance capable of disabling heart beat paths between hosts in that particular cluster since this can trigger an isolation response.
It is also important to ensure that the TCP/UDP port 8182 is always open for all firewalls and network switches which are used by the hosts for any inter-hosts communication. It should be noted that even though vSphere HA will automatically open these ports when enabled and close them when disabled, user action is normally required if firewalls exist between hosts in a cluster such as in what is known as a stretched cluster configuration.
In environments where both IPv4 and IPv6 protocols are in use, it is considered VMware vSphere Best Practice to configure the distributed switches on all the hosts so as to enable access to both networks when required. This does prevent the possibility of encountering network partition issues which may be caused due to host failure or loss of a single IP networking stack.
To enhance overall network availability, it is advisable to configure along heartbeat data stores the redundant management networking from ESXi hosts to other networking switching hardware. The use of network adaptor teaming is also preferable.
Recommended articles for you
Citrix XenServer vs VMware VSphereArticle
Merits and Demerits of Vmware vSphere hosted Virtual Environ...Article
VMWARE VSPHERE 5: The Efficient Way To Improve Your IT Scala...Article