Design problem related to Nutanix team
Problem Statement
Design a Cluster Resource Management System that manages compute, storage, and network resources across multiple nodes in a Nutanix-style hyperconverged infrastructure (HCI).
The system should efficiently allocate, track, and balance workloads across the cluster.
π§© Context
Nutanix clusters contain multiple nodes (servers), each with finite CPU, memory, and disk resources.
Virtual machines (VMs) or workloads need to be scheduled and balanced across nodes, ensuring:
You need to design a set of classes that simulate this cluster and resource management system.
β Functional Requirements
βοΈ Non-Functional Requirements
AspectRequirement
Scalability
Support clusters with dozens of nodes and hundreds of VMs.
Reliability
Should handle node failure gracefully.
Extensibility
Should allow addition of scheduling algorithms (e.g., round-robin, least-load).
Maintainability
Clean class boundaries for Nodes, VMs, and Cluster logic.
π§± Core Classes
ClassResponsibility
ClusterManager
Manages all nodes and coordinates VM placement and failover.
Node
Represents a single compute node with resources and a list of VMs.
VM
Represents a virtual machine with defined resource needs.
Scheduler
Determines which node a VM should be assigned to based on policy.
HealthMonitor
Detects node failures and triggers failover logic.
π§Ύ Example Class Diagram (Text Representation)
1
2ββββββββββββββββββββββββββ
3β VM β
4ββββββββββββββββββββββββββ
5β + id: String β
6β + cpu: int β
7β + memory: int β
8β + storage: int β
9ββββββββββββββββββββββββββ
10
11ββββββββββββββββββββββββββ
12β Node β
13ββββββββββββββββββββββββββ
14β + id: String β
15β + totalCpu: int β
16β + totalMemory: int β
17β + totalStorage: int β
18β + usedCpu: int β
19β + usedMemory: int β
20β + usedStorage: int β
21β + vms: List<VM> β
22ββββββββββββββββββββββββββ
23β + canHost(vm): boolean β
24β + addVM(vm): void β
25β + removeVM(vm): void β
26ββββββββββββββββββββββββββ
27
28ββββββββββββββββββββββββββ
29β ClusterManager β
30ββββββββββββββββββββββββββ
31β + nodes: List<Node> β
32ββββββββββββββββββββββββββ
33β + addNode(node): void β
34β + removeNode(id): void β
35β + createVM(vm): void β
36β + migrateVM(vmId, targetNode): void β
37β + rebalance(): void β
38ββββββββββββββββββββββββββ
39
40ββββββββββββββββββββββββββ
41β Scheduler β
42ββββββββββββββββββββββββββ
43β + selectNode(vm, nodes): Node β
44ββββββββββββββββββββββββββπ Workflow Example
π§ Design Discussion Points
π§© Design Patterns Used
PatternPurpose
Strategy
For different scheduling algorithms (LeastLoadScheduler, RoundRobinScheduler).
Observer
For node health updates triggering failover.
Factory Method
For creating different VM types.
Singleton
ClusterManager can be globally accessible.
β Summary
LLD Problem Statement:
Design a Cluster Resource Manager that can add/remove nodes, allocate virtual machines based on available resources, handle node failures, and rebalance the cluster dynamically.
π§ Other Nutanix-Themed LLD Problem Ideas
Here are additional LLD problems aligned with Nutanixβs domains (Virtualization, Storage, Cluster Management):
DomainLLD Problem Statement
Storage Systems
Design a Distributed File Storage System that replicates and manages files across multiple nodes.
Backup & Recovery
Design a Snapshot and Backup Manager for VMs with incremental snapshot support.
Networking
Design a Virtual Network Manager that assigns private IPs to VMs and supports routing tables.
Monitoring
Design a Cluster Health Monitoring System to track node CPU, memory, and disk usage, raising alerts.
Caching
Design a Distributed Cache with LRU eviction and node-level sharding.
Logging
Design a Centralized Log Aggregation Service for nodes and VMs.
Replication
Design a Replication Controller that maintains N copies of critical data across nodes.
π§ Recommended for Nutanix LLD Prep
If you want one go-to Nutanix-style question to prepare deeply:
βDesign a Cluster Resource Management System that can allocate workloads (VMs) across nodes based on available resources, detect failures, and rebalance the cluster dynamically.β
Thatβs 100% Nutanix-relevant, and it tests: