Course description

In this comprehensive project, you will design and deploy a highly available web infrastructure using HAProxy as a load balancer and Keepalived for failover management. Starting with Terraform-based provisioning of a VPC, subnets, and EC2 instances, you'll configure HAProxy to distribute traffic across two backend Apache web servers. You'll then implement Keepalived to manage a floating Virtual IP (VIP), ensuring seamless failover between two load balancer nodes. Through hands-on testing, you'll simulate node failure, verify automatic VIP migration, and confirm round-robin load balancing. By the end, you'll have a production-ready HA architecture that ensures zero downtime and scalable traffic handling.

Additionally, all learners receive dedicated online support through our Slack workspace where you can ask questions, get troubleshooting help, and interact with our team throughout the entire project.

Click here to access Slack workspace link

What will i learn?

  • Provision a multi-tier HA infrastructure using Terraform on AWS
  • Install and configure HAProxy for TCP-based load balancing
  • Set up Keepalived for automatic failover using a virtual IP
  • Test high availability by simulating node failure and verifying failover
  • Validate round-robin traffic distribution across backend web servers

Requirements

  • An AWS account with Terraform and EC2 access
  • Basic knowledge of Linux command line and networking
  • Understanding of load balancing and high availability concepts
  • SSH client for connecting to EC2 instances
  • Familiarity with editing configuration files (e.g., haproxy.cfg, keepalived.conf)

Frequently asked question

Keepalived manages a virtual IP address (VIP) that floats between two HAProxy nodes. If the primary load balancer fails, Keepalived automatically moves the VIP to the backup node, ensuring continuous service availability.

Yes, HAProxy and Keepalived are platform-agnostic and can be deployed on-premises or in other cloud environments. The Terraform portion is AWS-specific, but the HAProxy and Keepalived configurations are portable.

HAProxy uses a round-robin algorithm by default, evenly distributing incoming requests across the configured backend web servers (web1 and web2).

Akinola Ojuola

Cloud Solution Architect, DevOps Consultant & Trainer

Akinola Ojuola is a seasoned Cloud Solution Architect, DevOps Consultant and technical trainer with over 20 years of industry expertise. Throughout his career, he has worked with some of the world’s most prominent technology-driven organisations, including IBM, Fujitsu, Walmart, and MasterCard, delivering transformative solutions across various sectors. Akinola has trained and mentored more than 1,000 students across 18 countries on five continents. His commitment to real-world, practical learning has enabled hundreds of learners to launch successful careers in global tech companies. He is passionate about practical, real-world learning. His teaching approach blends deep technical knowledge with hands-on, enterprise-level experience. He holds multiple industry certifications and leads advanced projects in Cloud Architecture, DevOps, DevSecOps, and Artificial Intelligence for both private enterprises and public institutions.Whether you’re just starting or looking to advance your tech career, you’ll gain valuable, job-ready skills under his guidance.

$10

Lectures

2

Skill level

Advanced

Expiry period

1 Months

Certificate

Yes

Related courses