Study guide
6.4 AHV High Availability (HA), Acropolis Dynamic Scheduling (ADS), and Affinity Rules
Nutanix Certified Associate NCA
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: Nutanix Cloud Platform & HCI Foundations
1.1 Nutanix NCA Exam Overview, Format, and Objectives 1.2 Hyperconverged Infrastructure (HCI) vs. Traditional 3-Tier Architecture 1.3 The Nutanix Enterprise Cloud Portfolio (NCI, NUS, NCM, EUC, NC2)
2 Chapter 2: Platform Architecture & Distributed Core Services
2.1 Hardware Building Blocks: Nodes, Blocks, Clusters, and Quorum 2.2 Controller VM (CVM) Architecture, Datapath, and Autopathing 2.3 Core Distributed Services: Cassandra, Stargate, Curator, Zookeeper, and Genesis
3 Chapter 3: Prism Administration & Cluster Operations
3.1 Prism Element vs. Prism Central Architecture and Interface Navigation 3.2 Entity Management, Categories, and Role-Based Access Control 3.3 Nutanix Licensing Tiers, Add-ons, and Pulse Telemetry
4 Chapter 4: AOS Distributed Storage Fabric & Data Placement
4.1 Storage Pools, Storage Containers, and vDisk Virtual Architecture 4.2 Redundancy Factor (RF2 vs. RF3), Failure Domains, and Fault Tolerance 4.3 Data Locality Mechanics and Intelligent Lifecycle Management (ILM)
5 Chapter 5: Storage Optimization & Business Continuity
5.1 Storage Efficiency: Compression, Deduplication, and Erasure Coding (EC-X) 5.2 Space-Efficient Redirect-on-Write (ROW) Snapshots and Zero-Byte Clones 5.3 Protection Domains, Consistency Groups, and Disaster Recovery Replication
6 Chapter 6: AHV Virtual Machine Lifecycle Management
6.1 AHV VM Provisioning, Resource Allocation (vCPU, vRAM, Disks), and Boot Types 6.2 Nutanix Image Service and Virtual Machine Templates 6.3 Nutanix Guest Tools (NGT) Architecture, Features, and Deployment 6.4 AHV High Availability (HA), Acropolis Dynamic Scheduling (ADS), and Affinity Rules
7 Chapter 7: AHV Networking & Flow Security Fundamentals
7.1 AHV Virtual Networking Architecture, Open vSwitch (OVS), and Bridges 7.2 Host Network Uplinks, Virtual Switch Configuration, and NIC Bonding Modes 7.3 Virtual Networks: Managed vs. Unmanaged Networks and IPAM 7.4 Nutanix Flow Network Security & Microsegmentation Fundamentals
8 Chapter 8: Cluster Maintenance, Health Monitoring & Support
8.1 Nutanix Cluster Health Monitoring, Alerts, and Events Engine 8.2 Nutanix Cluster Check (NCC) Architecture and Execution 8.3 Life Cycle Manager (LCM) and Rolling Non-Disruptive Upgrades 8.4 Nutanix Support Ecosystem: Diagnostics, Log Gathering, and Support Bundles
9 Chapter 9: Recognizing Nutanix Solutions, Hypervisors & the Product Portfolio
9.1 Supported Hypervisors for NCI and Feature Supportability 9.2 NCI Core Components, Configurations, and Common Deployment Scenarios 9.3 Nutanix Unified Storage: Files, Objects, and Volumes Use Cases 9.4 Nutanix Database Service (NDB) and Database Automation 9.5 Nutanix Kubernetes Platform, Enterprise AI, and End-User Computing
10 Chapter 10: Nutanix Tools — Migration, Deployment, and Validation
10.1 Nutanix Move: Cross-Hypervisor and Cloud Migration 10.2 Foundation and Foundation Central: Imaging and Cluster Deployment 10.3 X-Ray, Collector, and the Objective 1.3 Tool Inventory
11 Chapter 11: Cluster Configuration, Security & Hardware Maintenance
11.1 Cluster Services Configuration: DNS, NTP, SMTP, and SNMP 11.2 Cluster Security Options: Lockdown, Encryption, and the Recycle Bin 11.3 Node Maintenance Mode, Host Shutdown, and Cluster Shutdown 11.4 Cluster Expansion: Node Types and In-Node Expansion Capabilities 11.5 Out-of-Band Management and Remote Console Access
12 Chapter 12: Storage, Network, and Software Administration Tasks
12.1 Volume Groups, vDisk Placement, and Live vDisk Migration 12.2 Network Visualizer, Physical Switch Monitoring, and Network Segmentation 12.3 The Software Compatibility Matrix and Upgrade Path Planning 12.4 Taking and Managing VM Snapshots in Prism 12.5 License Operations: State, Assignment, Reclamation, and Expiry
13 Chapter 13: Performance Analysis, Reporting & Support Operations
13.1 Prism Analysis: Metric Charts, Entity Charts, and Custom Reports 13.2 Custom Alert Policies and Behavioural Anomaly Detection 13.3 Interpreting Workload Performance: CPU Contention, CPU Ready, Memory, and I/O Latency 13.4 Creating Support Cases, Required Documentation, and Insights
6.4 AHV High Availability (HA), Acropolis Dynamic Scheduling (ADS), and Affinity Rules
Key Takeaways Explain This Topic AI
AHV High Availability operates in two distinct modes: Best Effort (default, attempts to restart VMs on surviving nodes without memory reservation guarantees) and Guarantee Mode (reserves dedicated host failover capacity using segment-based reservation calculation).
In Guarantee Mode, AHV enforces Admission Control to strictly prevent administrators from powering on new workloads if doing so would violate the calculated N+1 or N+2 failover host reservation capacity.
The distributed Acropolis Leader CVM monitors hypervisor and VM heartbeats via libvirt; if a physical host fails to heartbeat for over 60 seconds, the Acropolis Leader orchestrates automated VM restarts on surviving nodes.
Acropolis Dynamic Scheduling (ADS) continuously detects CPU, memory, and storage controller hotspots across physical hosts, automatically executing non-disruptive Live Migrations to balance workload utilization and enforce NUMA boundaries.
VM-to-Host affinity rules constrain virtual machines to specific physical nodes for software licensing compliance (e.g., Oracle or Microsoft SQL Server per-core licensing), while VM-to-VM anti-affinity rules ensure redundant application pairs never co-locate on the same physical host.
Last updated: September 2026
AHV High Availability (HA), Acropolis Dynamic Scheduling (ADS), and Affinity Rules
Quick Summary: Enterprise virtualization requires robust mechanisms to withstand hardware failures, balance dynamic compute demands, and enforce workload placement governance. Nutanix AHV delivers these capabilities natively within the Acropolis Operating System. AHV High Availability (HA) protects workloads against physical server outages through Best Effort and Guarantee reservation modes. Acropolis Dynamic Scheduling (ADS) acts as an intelligent, autonomous cluster scheduler that dynamically mitigates CPU and memory hotspots via non-disruptive Live Migration . Finally, Affinity Rules allow administrators to bind workloads to specific physical hosts for software licensing optimization ( VM-to-Host ) or separate redundant application instances across distinct nodes ( VM-to-VM Anti-Affinity ).
1. AHV High Availability (HA) Architecture and Failure Detection
High Availability in traditional virtualization relies on an external management server (such as VMware vCenter) to monitor ESXi hosts and issue restart commands. If the management server crashes, HA state can become degraded or unmanageable. In Nutanix AHV, High Availability is a fully distributed, native service embedded into the Acropolis architecture running on every Controller VM. +-------------------------------------------------------------------------+
- | Acropolis HA Architecture |
- +------------------------------------+------------------------------------+
- | Elected Acropolis Leader CVM (Orchestrator) |
- | - Monitors ZooKeeper Quorum for Node Heartbeats |
- | - Tracks Host Memory Pools & Failover Segment Reservations |
- | - Issues libvirt Restart Commands upon Node Failure |
- +------------------------------------+------------------------------------+
- |
- +---------------------------+---------------------------+
- | (Continuous Heartbeats) | (Heartbeat Missed >60s)
- v v
- +-----------------------------------+ +-----------------------------------+
- | Node 01 (Surviving AHV Host) | | Node 02 (FAILED AHV Host) |
- | - Hypervisor: Healthy | | - Physical Server Crashed |
- | - CVM: Healthy | | - Heartbeat Lost |
- | - Action: Hosts Restarted VMs | | - Action: Declared Dead |
- +-----------------------------------+ +-----------------------------------+
- Heartbeating and Failure Mechanics
Distributed Health Monitoring: Every AHV host runs a local Acropolis agent that maintains continuous communication with the local CVM and the cluster's elected Acropolis Leader CVM .
Failure Thresholds: The Acropolis Leader monitors node liveness using ZooKeeper consensus and network heartbeats. If a physical AHV host stops heartbeating for more than 60 seconds (or if IPMI out-of-band management signals a catastrophic power supply or motherboard failure), the Acropolis Leader declares the host dead.
Shared Storage Advantage: Because all VM virtual disks reside on the Distributed Storage Fabric (DSF), storage is universally accessible across the cluster. The Acropolis Leader does not need to unmount, re-zone, or re-attach storage volumes; it simply directs surviving healthy AHV hosts to spawn new QEMU/KVM execution threads and attach to the existing vDisk metadata paths.
2. AHV HA Operating Modes: Best Effort vs. Guarantee Mode
AHV provides two distinct High Availability operational configurations, configured easily in Prism Element under Manage VM High Availability : +-------------------------------------------------------------------------+
- | AHV HA Operating Modes |
- +-----------------------+-------------------------------------------------+
- | Best Effort Mode | - Default configuration |
- | | - 0% cluster memory reserved for failover |
- | | - Restarts VMs only if free capacity exists |
- | | - Risk of stranded unpowered VMs during failure |
- +-----------------------+-------------------------------------------------+
- | Guarantee Mode | - Enterprise production standard |
- | | - Automatically reserves N+1 or N+2 capacity |
- | | - Uses dynamic "Failover Segments" calculation |
- | | - Admission Control strictly protects failover |
- +-----------------------+-------------------------------------------------+
- 1. Best Effort Mode (Default)
Operational Model: In Best Effort mode, the cluster dedicates zero reserved memory for host failure scenarios. All physical RAM across all nodes can be 100% committed to running virtual machines.
Failure Behavior: If an AHV host fails, the Acropolis Leader analyzes surviving hosts. If surviving hosts happen to have enough free physical RAM to satisfy the failed VMs' 100% pinned reservations, the VMs restart successfully.
Risk Factor: If the surviving nodes are heavily utilized and lack sufficient free RAM, some or all failed VMs cannot restart . Those VMs remain in a powered-off state until physical hardware is restored or other workloads are manually shut down.
Target Environment: Dev/test environments, non-critical lab clusters, or environments where maximum workload density overrides availability guarantees.
2. Guarantee Mode (Production Best Practice)
Operational Model: In Guarantee mode, the cluster guarantees that sufficient compute and memory capacity is perpetually reserved to restart all protected VMs in the event of one (N+1) or two (N+2) physical host failures.
Failover Segments Calculation: Rather than requiring administrators to manually designate a static, idle "standby host" (which wastes expensive hardware), AHV calculates Failover Segments . AHV examines the memory capacity of the largest node in the cluster and reserves an equivalent slice of aggregate memory distributed across all cluster nodes.
Admission Control Enforcement: When Guarantee mode is active, Prism enforces strict Admission Control . If an administrator attempts to create or power on a new VM whose memory allocation would eat into the reserved failover segment, Prism blocks the action with an error: "Cannot power on VM because HA reservation would be violated."
- Architectural Attribute Best Effort HA Mode Guarantee HA Mode
- Dedicated Reserved Capacity None (0 GB) Dynamically calculated (N+1 or N+2)
- Restart Guarantee Opportunistic (best effort) 100% Guaranteed for all protected VMs
- Admission Control Disabled Strictly Enforced
- Resource Utilization 100% usable capacity Usable capacity = Total capacity minus failover segment
- Primary Use Case Test/Development, non-critical Enterprise Mission-Critical Production
Important
Enabling HA Guarantee Mode requires that all nodes in the cluster have uniform network configurations and access to identical storage containers, ensuring any surviving host can successfully host any failed VM.
3. Acropolis Dynamic Scheduling (ADS)
In dynamic enterprise environments, virtual machine resource consumption fluctuates unpredictably. A batch billing job or midday database query spike can suddenly saturate a physical host's CPU or memory, degrading performance for all co-located workloads.
Acropolis Dynamic Scheduling (ADS) is Nutanix's native, automated workload balancing engine (comparable to VMware DRS, but completely autonomous and built directly into AHV without requiring external appliances). +-------------------------------------------------------------------------+
- | Acropolis Dynamic Scheduling (ADS) |
- +-------------------------------------------------------------------------+
- | 1. Continuous Telemetry: ADS samples CPU, memory, and CVM I/O every 10s |
- | 2. Contention Detection: Host 01 exceeds 85% CPU / High CPU Ready |
- | 3. Migration Calculation: ADS identifies VM-Batch-02 as ideal candidate |
- | 4. Non-Disruptive Live Migration: VM migrated to Host 03 in seconds |
- | 5. Equilibrium Restored: Workload balanced without user intervention |
- +-------------------------------------------------------------------------+
- How ADS Operates
Continuous Anomaly Detection: ADS continuously monitors real-time performance metrics across all physical AHV hosts—including physical CPU utilization, CPU Ready Time (%RDY), physical memory pressure, and local CVM storage throughput.
Intelligent Migration Planning: When ADS detects compute or storage contention on a host, it calculates an optimization plan. Rather than blindly moving random VMs, ADS evaluates VM resource footprints, memory page dirtiness rates, NUMA topologies, and configured affinity rules to select the candidate that relieves the hotspot with the lowest migration cost.
Non-Disruptive Live Migration: ADS triggers a native AHV Live Migration :
The VM's memory pages are pre-copied across the high-speed network (10/25/100 GbE) to the target host while the VM continues executing on the source host.
In the final phase, CPU execution pauses for a fraction of a millisecond while the last dirty memory pages transfer.
Execution resumes seamlessly on the target host. Active TCP network connections, database transactions, and user sessions remain uninterrupted.
NUMA and Storage-Aware Scheduling
ADS does not merely look at raw CPU percentages; it is deeply aware of Non-Uniform Memory Access (NUMA) boundaries and storage locality:
If a multi-vCPU VM is spanning sockets unnecessarily, ADS attempts to migrate co-located workloads to free up an entire NUMA node for the multi-vCPU workload.
ADS coordinates with the local CVM Stargate service to factor in network fabric bandwidth, ensuring migrations do not congest storage replication pathways.
4. Affinity Rules: VM-to-Host and VM-to-VM Anti-Affinity
While ADS automatically distributes workloads for maximum performance, enterprise governance and architectural best practices frequently demand strict control over where specific VMs are permitted to execute.
Nutanix AHV provides two foundational policy mechanisms to govern VM placement: VM-to-Host Affinity and VM-to-VM Anti-Affinity . +-------------------------------------------------------------------------+
- | Affinity Rule Types |
- +------------------------------------+------------------------------------+
- | VM-to-Host Affinity | VM-to-VM Anti-Affinity |
- | "Where can a VM run?" | "Who can a VM NOT run with?" |
- +------------------------------------+------------------------------------+
- | - Primary Driver: Software License | - Primary Driver: Redundancy / HA |
- | - Oracle / MS SQL Per-Core Rules | - Domain Controllers (DC01 & DC02) |
- | - Hardware Specifics (GPUs, NICs) | - Web Load Balancers / DB Clusters |
- | - Strict vs Non-Strict Modes | - Prevents Single Point of Failure |
- +------------------------------------+------------------------------------+
- 1. VM-to-Host Affinity Rules (Licensing & Hardware Constraints)
VM-to-Host affinity binds a virtual machine to a specific subset of physical AHV hosts within the cluster.
The Software Licensing Imperative
Enterprise software vendors (most notably Oracle and Microsoft ) frequently audit virtualization platforms. Under per-core or per-socket licensing contracts, if a database virtual machine is permitted to freely migrate across all 16 nodes in an enterprise cluster, the vendor may legally demand that the customer purchase licenses for all physical cores across all 16 nodes —costing hundreds of thousands of dollars.
By creating a VM-to-Host affinity rule binding database workloads exclusively to Node 01 and Node 02 , the organization strictly bounds its licensing audit scope to those two physical hosts.
Strict vs. Non-Strict Affinity Modes
Strict Affinity ("Must Run On"): The VM is strictly confined to the designated hosts. If both Node 01 and Node 02 experience hardware failures, AHV HA will never restart the VM on Node 03 or Node 04, protecting the organization from catastrophic software licensing non-compliance.
Non-Strict Affinity ("Should Run On"): The VM prefers to run on the designated hosts during normal operations. However, if all designated hosts crash, AHV High Availability overrides the rule and restarts the VM on any available surviving host to ensure business continuity.
2. VM-to-VM Anti-Affinity Rules (High Availability & Redundancy)
VM-to-VM anti-affinity rules mandate that two or more specified virtual machines must never run on the same physical host simultaneously .
Architectural Justification
Enterprise applications achieve high availability by deploying redundant pairs:
Active Directory Domain Controllers ( DC01 and DC02 ).
Clustered Database Nodes (SQL Always-On Availability Groups SQL-NodeA and SQL-NodeB ).
Clustered Firewalls or Web Proxies.
If ADS or an administrator inadvertently places both DC01 and DC02 onto physical Node 03 , and Node 03 suffers an unexpected motherboard failure, both domain controllers crash simultaneously , causing an enterprise-wide authentication outage. Configuring a VM-to-VM Anti-Affinity rule ensures that ADS perpetually keeps DC01 and DC02 on separate physical hosts.
How Anti-Affinity Interacts with HA and ADS
ADS Enforcement: ADS treats anti-affinity as a hard placement filter. It will never recommend or execute a live migration that would consolidate anti-affinity peers onto a single host.
HA Failover Behavior: During a host failure, the Acropolis Leader analyzes surviving hosts to find a node that does not host an anti-affinity peer. If the cluster is down to its last host and no alternative exists, AHV prioritizes keeping workloads alive, unless strict isolation policies are programmatically enforced.