Create highly available services in Nutanix VPC with the Network Load Balancer
Yassine Malki
Advisory Systems Engineer - Service Providers - OVH Cloud ???? @ Nutanix
Nutanix AOS 7.0?and Prism Central 2024.3 versions introduces a suite of powerful features, and the most exciting one is the native Network Load Balancer available as a component of Flow Virtual Networking.
The Network Load Balancer enables high-availability service and distributes the network traffic load among multiple servers. It distributes incoming service requests evenly among multiple servers in such a way that the load distribution is transparent to users. Load balancing thus helps in achieving enhanced application performance, improved resource utilization, increased availability and reliability and scalability.
The Network Load Balancer provides load balancing capabilities up to Layer 4. It creates native load balancing rules within a VPC and it’s fully managed from Prism Central. There is no need to deploy a VM to handle the traffic, its architecture is fully distributed across AHV nodes.?
The Load Balancer does not stop the connection or buffer the whole request; instead, it sends the packet directly to the selected server after manipulating the packet. TCP and UDP sessions are maintained in the load balancer so that packets for a single session are directed to the same server.
There are some new constructs that are introduced as part of the Load Balancer feature.?
Load Balancer session
Listener
Targets
Load Balancing Algorithm
Health Check
Although the schema above should be quite self-explanatory, let’s go through a typical configuration.
The load balancer configuration can be accessed two ways in Prism Central :
To create a new load balancing session, select Create Session
领英推荐
The session creation is straightforward, once created the session shows all targets Healthy.
Now let’s test how we can improve application resiliency with this feature.
Open a web browser and navigate to https://VIP_IP. In the example?https:// 10.38.4.50 now hit one of the web servers.
Reload the page in your browser, the load balancer sends the request to the next available server in the pool which in the example was webserver2.
Every time you reload the web page you will end up on the next available server in the pool for each new session.
Let’s stop the HTTP Web service on one of the webservers.
This operation reflects on the session status, now the webserver1 target is marked unhealthy. ?
Now reload the web page, the load balancer keeps sending the requests to the only healthy server left in the target pool.
Conclusion
Network Load Balancer, as a highly available and resilient native load balancer, can be a good alternative to traditional load balancers when it comes to load balancing traffic between virtualized workloads. In this article, we demonstrated how virtual machines in Nutanix Cloud Platform, can leverage native load balancing capabilities to enhance scale your applications and create highly available services.
Sr. Staff Consulting Architect at Nutanix | NCX #64 | Designing Nutanix on on-prem, Azure, and AWS | Designing Kubernetes and Automation on Nutanix
2 个月This would be a big game changer for many customers.. Nicely articulated Yassine
IT Infrastructure Engineer PCNSA | AWS-CLF | AZ-900 | ITILv4
3 个月Thanks for this update Yassine Malki
CONSULTANT INFRA, STOCKAGE ET VIRTUALISATION
3 个月Thx ????
Ingénieur Systèmes | Infrastructures SI & Cloud[Certified Nutanix NCP-MCI] [Vmware-Openstack-Openshift-K8s-Podman] [zabbix-Grafana-Prometheus-Ansible-CI/CD] [Redhat-Ubuntu-Windows Server][Hycu--Veeam-Acronis backup]
3 个月when will the AOS7 version be released?
Solution Architect Engineer | Storage Solutions,Nutanix, Commvault, Data Migration & Data Center Implementation
3 个月Amazing feature , thanks for sharing????