Meet keepalived - High Availability and Load Balancing in One

Techno Tim December 11, 2021
Video Thumbnail
Techno Tim Logo

Techno Tim

@technotim

About

I make videos that help people do awesome things with technology.

Video Description

In my quest to make my services highly available I decided to use keepalived. keepalived is a framework for both load balancing and high availability that implements VRRP. This is a protocol that you see on some routers and has been implemented in keepalived. It creates a Virtual IP (or VIP, or floating IP) that acts as a gateway to route traffic to all participating hosts. This VIP that can provide a high availability setup and fail over to another host in the event that one is down. In this video, we'll set up and configure keepalived, we'll test our configuration to make sure it's working, and we'll also talk about some advanced use cases like load balancing. Video Notes: https://technotim.live/posts/keepalived-ha-loadbalancer/ Support me on Patreon: https://www.patreon.com/technotim Sponsor me on GitHub: https://github.com/sponsors/timothystewart6 Subscribe on Twitch: https://www.twitch.tv/technotim Become a YouTube member: https://www.youtube.com/channel/UCOk-gHyjcWZNj3Br4oxwh0A/join Merch Shop 🛍️: https://l.technotim.live/shop Gear Recommendations: https://l.technotim.live/gear Get Help in Our Discord Community: https://l.technotim.live/discord 2nd channel: https://www.youtube.com/@TechnoTimTalks (Affiliate links may be included in this description. I may receive a small commission at no cost to you.) 00:00 - Intro 00:43 - How does keepalived work in HA mode? 01:22 - How does keepalive act as a load balancer 02:01- What are we going to cover today? 02:30 - Requirements 02:49 - Setting up your servers 03:26 - Installing keepalived 03:46 - Configuring your fist server (config explained) 06:58 - Enable keepalived 07:51 - Configuring your second server 09:31 - Testing keepalived 11:31 - Testing nginx with keepalived 13:42 - Real world scenarios with keepalived (HA PiHole) 16:36 - Use Gravity Sync to keep PiHole HA in Sync 17:00 - What I think about keepalived 17:33 - Stream Highlight - What version of Linux do you use? #keepalived #OpenSource #HighAvailabilty "Siren Glitch" is from Harris Heller's album Breaker. https://l.technotim.live/sb-music-license Thank you for watching!

Boost Network Reliability

AI-recommended products based on this video

Loading...
TP-Link 5 Port Gigabit Ethernet Network Switch (TL-SG1005D) - Plug and Play, Desktop or Wall Mount, Plastic Case, Ethernet Splitter, Fanless, Traffic Optimization, Unmanaged (TL-SG1005D)

TP-Link 5 Port Gigabit Ethernet Network Switch (TL-SG1005D) - Plug and Play, Desktop or Wall Mount, Plastic Case, Ethernet Splitter, Fanless, Traffic Optimization, Unmanaged (TL-SG1005D)

(21,445)
$14.99$13.49
FREE delivery Thu, Sep 4 on your first order
100+ bought in past month
Loading...
TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

(11,241)
$13.97$9.43
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
Laplink PCmover Ultimate 11 - Migration of your Applications, Files and Settings from an Old PC to a New PC - Data Transfer Software - With Optional High Speed Ethernet Cable - 1 License

Laplink PCmover Ultimate 11 - Migration of your Applications, Files and Settings from an Old PC to a New PC - Data Transfer Software - With Optional High Speed Ethernet Cable - 1 License

(4,609)
$54.95
PrimeFREE delivery Sat, Jun 14
Loading...
Buruis Extra Large Capacity Toiletry Bag for Women and Men, Hanging Toiletry Organizer Cosmetics Makeup Bag, Water-Resistant Dopp kit Travel Bag for Full Sized Toiletries, Travel Essentials (Black)

Buruis Extra Large Capacity Toiletry Bag for Women and Men, Hanging Toiletry Organizer Cosmetics Makeup Bag, Water-Resistant Dopp kit Travel Bag for Full Sized Toiletries, Travel Essentials (Black)

(9,847)
$37.99
Prime$6.49 delivery Fri, Jun 13
Loading...
OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge R660XS R760XS

OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge R660XS R760XS

(0)
$1,474.98
FREE delivery Aug 14 - 22
Loading...
OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge XE9680

OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge XE9680

(0)
$1,474.98
FREE delivery Aug 14 - 22
Loading...
OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge R6625 R760 R7615 R7625

OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge R6625 R760 R7615 R7625

(0)
$1,474.98
FREE delivery Aug 14 - 22
Loading...
OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge HS5610 HS5620

OWC 64GB DDR5 4800 PC5-38400 CL40 2Rx4 288-pin 1.1V ECC Registered RDIMM Memory RAM Module Upgrade Compatible with Dell PowerEdge HS5610 HS5620

(0)
$1,474.98
FREE delivery Aug 14 - 22
Loading...
DCNETWORK iPhone 4s Cable USB Sync and Charging Cable for iPhone 4 4s 3G 3GS iPad 1 2 3 iPod Touch Nano 30 Pin Charger Cord Dock Adapter Data 3.3 Feet (White)

DCNETWORK iPhone 4s Cable USB Sync and Charging Cable for iPhone 4 4s 3G 3GS iPad 1 2 3 iPod Touch Nano 30 Pin Charger Cord Dock Adapter Data 3.3 Feet (White)

(943)
$5.99
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month