From an architecture perspective, vCenter HA supports both embedded and external Platform Services Controllers.
- An embedded Platform Services Controller instance can be used when there are no other vCenter Server or Platform Services Controller instances within the single sign-on domain.
- External Platform Services Controller instance is required when there are multiple vCenter Server instances in an Enhanced Linked Mode configuration.
- A vCenter HA cluster consists of one Active vCenter Server node that serves client requests.
- One Passive node to take the role of Active node in the event of active vCenter Server node failure.
- One quorum node called the Witness node to solve the classic split-brain problem due to network failures within distributed systems maintaining replicated data.
Traditional architectures use some form of shared storage to solve the split-brain problem. However, in order to support a vCenter HA cluster spanning multiple datacenter’s, vCHA design does not assume a shared storage–based deployment. As a result, one node in the vCenter HA cluster is permanently designated as a quorum node, or a Witness node. The other two nodes in the cluster dynamically assume the roles of Active and Passive nodes.
A vCenter Server appliance is stateful and requires a strong, consistent state for it to work correctly. The appliance state (configuration state or runtime state) is mainly composed of:
- Database data (stored in the embedded PostgreSQL database)
- Flat files (for example, configuration files).
A design assumption of low latency and high bandwidth network connectivity between the Active and Passive node is made to guarantee zero recovery point objective (RPO).
A vCHA cluster requires a vCHA network that is separate from the management network for the vCenter Server appliance. Clients can have access to the Active vCenter Server appliance via the management network interface, which is public.
Roles for each type of node in a vCenter HA cluster, as shown above Figure, are:
- Runs the active instance of vCenter Server.
- Enables and uses the public IP address of the cluster.
- Runs as the passive instance of vCenter Server.
- Constantly receives state updates from the Active node in synchronous mode.
- Equivalent to the Active node in terms of resources.
- Takes over the role of Active Node in the event of failover.
- Serves as a quorum node.
- Used to break a tie in the event of a network partition causing a situation where the Active and Passive nodes cannot communicate with each other.
- A light-weight VM utilizing minimal hardware resources.
- Does not take over role of Active/Passive nodes.
In the event of the Active vCenter Server appliance failing due to hardware, software, or network failures, the Passive node appliance takes over the role of the Active node, assumes the public IP address for the cluster, and starts serving client requests. Meanwhile, it is expected that the clients need to re-log into the appliance for continued access. Because the HA solution utilizes synchronous database replication, there will never be any data loss during failover (RPO = 0).
Availability of the vCenter Server appliance failure conditions:
Active node failure:
- As long as the Passive node and the Witness node can communicate with each other, the Passive node will promote itself to Active and start serving client requests.
Passive node failure:
- As long as the Active node and the Witness node can communicate with each other, the Active node will continue to operate as Active and continue to serve client requests.
Witness node failure:
- As long as the Active node and the Passive node can communicate with each other, the Active node will continue to operate as Active and continue to serve client requests.
- The Passive node will continue to watch the Active node for failover.
More than one node failure or is isolated:
- This means all three nodes(Active, Passive & Witness) cannot communicate with each other.
- This is more than a single point of failure and when this happens, the cluster is assumed non-functional and availability is impacted because VCHA is not designed for multiple failures.
Isolated node behaviour:
- When a single node gets isolated from the cluster, it is automatically taken out of the cluster and all services are stopped. For example, if an Active node is isolated, all services are stopped to ensure that the Passive node can take over as long as it is connected to the Witness node.
- Isolated node detection takes into consideration intermittent network glitches and resolves to an isolated state only after all retry attempts have been exhausted.
A client connecting to the vCenter Server appliance will use the public IP address. In the event of failover, the Passive node will take over the exact personality of the failed Active node including the public IP address. The target recovery time objective (RTO) is in minutes about 5 minutes, during which clients should be ready to receive failures.
There are two modes in which vCHA can be deployed.
- Basic mode.
- Advanced mode.
- The basic workflow can be used in most scenarios in which all vCHA nodes run within the same cluster.
- This workflow automatically creates the passive and witness nodes.
- It also creates vSphere DRS anti-affinity rules if vSphere DRS is enabled on the destination cluster and uses VMware vSphere Storage DRS for initial placement if enabled.
- Some flexibility is provided in this workflow, so you can choose specific destination hosts, datastores, and networks for each node. This is a simple way to get a vCHA cluster up and running.
- The Basic step by step walkthrough is available here at VMware Walkthrough portal.
- The Advanced workflow is an alternative that can be used when the active, passive, and witness nodes are to be deployed to different clusters, vCenter Server instances, or even other datacenter’s.
- This process requires the customer to manually clone the source vCenter Server instance for the passive and witness nodes and to then place those nodes in the chosen locations with the appropriate IP address settings.
- This process, but provides greater flexibility for customers who needs it.
- The Advanced step by step walkthrough is available here at VMware Walkthrough portal.