Meet keepalived - High Availability and Load Balancing in One

Share
Techno Tim
Published at : 13 Dec 2021
11244 views
848
3

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.

★ Subscribe! https://l.technotim.live/subscribe
★ I'm Live on Twitch https://l.technotim.live/twitch
★ Get Help in Our Discord Community! https://l.technotim.live/discord
★ Documentation found here https://l.technotim.live/docs
__________________________________________

⚙ Gear Recommendations ⚙
https://www.amazon.com/shop/technotim
https://kit.co/TechnoTim

(Affiliate links are included in this description. I may receive a small commission at no cost to you.)
__________________________________________

♦ Patreon https://www.patreon.com/technotim
♦ GitHub https://github.com/timothystewart6
♦ Twitter https://twitter.com/TechnoTimLive
♦ Discord https://discord.gg/DJKexrJ
♦ Instagram https://www.instagram.com/techno.tim/
♦ TikTok https://www.tiktok.com/@technotim
__________________________________________

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 #OpenSouce #HighAvailabilty

"Siren Glitch" is from Harris Heller's album Breaker.
https://www.streambeats.com/static/pdf/StreamBeats%20Sync_Use%20License.pdf

Thank you for watching!
keepalivedkeepalived tutoriallinux

Deus Ex - Versalife

Deus Ex - Versalife

Negative Still Force Caused Joe's Death | The Flash Armageddon Crossover [HD]

Negative Still Force Caused Joe's Death | The Flash Armageddon Crossover [HD]

Oscar Wilde's Sincere Words on Destiny, Life, Happiness and Women | Oscar Wilde Quotes

Oscar Wilde's Sincere Words on Destiny, Life, Happiness and Women | Oscar Wilde Quotes

This is too much...

This is too much...

They Could Not

They Could Not

CBC News: The National | Hospital staff shortages, Youth COVID, Alcohol and cancer

CBC News: The National | Hospital staff shortages, Youth COVID, Alcohol and cancer

Goin' Through - Γυναίκες | Goin' Through - Gynaikes - Official Video Clip

Goin' Through - Γυναίκες | Goin' Through - Gynaikes - Official Video Clip

AWS Tutorial - How to copy/clone/duplicate EC2 Instances?

AWS Tutorial - How to copy/clone/duplicate EC2 Instances?

10 Agent ABILITIES You're USING HORRIBLY WRONG! - Valorant

10 Agent ABILITIES You're USING HORRIBLY WRONG! - Valorant

DIG A SNOWPIT FOR AVALANCHE SAFETY | HOW TO XV

DIG A SNOWPIT FOR AVALANCHE SAFETY | HOW TO XV

TO1(티오원) | 'Realize (Intro.)' (Official Audio)

TO1(티오원) | 'Realize (Intro.)' (Official Audio)

Infantrymen

Infantrymen

How To Turn Your Passion & Purpose Into A Successful Business

How To Turn Your Passion & Purpose Into A Successful Business

Discuss with Us: Eleanor Oliphant is Completely Fine || BookTea with Summer and Sabryn

Discuss with Us: Eleanor Oliphant is Completely Fine || BookTea with Summer and Sabryn

BREAKING NEWS! Europe wants a MANNED Space Program!! Here's how they could do it in FOUR YEARS!

BREAKING NEWS! Europe wants a MANNED Space Program!! Here's how they could do it in FOUR YEARS!

Holy Moly!! This Will be a REALLY BAD PRECEDENT!

Holy Moly!! This Will be a REALLY BAD PRECEDENT!

attempting an all nighter ON A SCHOOL NIGHT *I went insane*

attempting an all nighter ON A SCHOOL NIGHT *I went insane*

Hide and Seek Pretend Play around the House with Ryan's World

Hide and Seek Pretend Play around the House with Ryan's World

White House: We're Not Shutting Down The Economy

White House: We're Not Shutting Down The Economy

Der Müll-Check | Reportage für Kinder | Checker Tobi

Der Müll-Check | Reportage für Kinder | Checker Tobi

"He's a special talent" | Micah & Redknapp on Foden's ability & his best position

"He's a special talent" | Micah & Redknapp on Foden's ability & his best position

Canadian Bahu Ka Hamare Ghar Indian Swagat..

Canadian Bahu Ka Hamare Ghar Indian Swagat..

PERFECT SPEEDSLIDES - Trackmania Cup Of The Day

PERFECT SPEEDSLIDES - Trackmania Cup Of The Day

Prepping isn’t just about yourself.

Prepping isn’t just about yourself.

Jo Khabo Khayalo Main 💋 Heart Touching Love Story 💘 Children Sad Love Story 🎶 Love Book 🌴

Jo Khabo Khayalo Main 💋 Heart Touching Love Story 💘 Children Sad Love Story 🎶 Love Book 🌴

BABY meets her SISTERS for the first time! 😍

BABY meets her SISTERS for the first time! 😍

Work & Jazz: Smooth Coffee Shop Jazzy Vibes for Relaxing Atmosphere

Work & Jazz: Smooth Coffee Shop Jazzy Vibes for Relaxing Atmosphere

My $1 Million Passive Income Portfolio

My $1 Million Passive Income Portfolio

*WOW* WRONG Shapeshifter Transform in Among Us! Funny Moments #231

*WOW* WRONG Shapeshifter Transform in Among Us! Funny Moments #231

How To Build The Golden Butterfly Portfolio (VERY LOW RISK)

How To Build The Golden Butterfly Portfolio (VERY LOW RISK)

Witchleaf - Drift and Blend

Witchleaf - Drift and Blend

Little Mix Confirm Leigh-Anne Original Solo Music In New Film | PopBuzz Meets

Little Mix Confirm Leigh-Anne Original Solo Music In New Film | PopBuzz Meets

Sort Of Quartet - Lotus Wald

Sort Of Quartet - Lotus Wald

Okay Daddy | #ungeklickt

Okay Daddy | #ungeklickt

Necessary Ingredients to Recover from an Affair: A Sense of Urgency

Necessary Ingredients to Recover from an Affair: A Sense of Urgency

Dune Costume Designers Break Down Dune’s Stillsuits | WIRED

Dune Costume Designers Break Down Dune’s Stillsuits | WIRED

MYSTERY BUTTONS Pick Our SLIME Ingredients!! | JKREW

MYSTERY BUTTONS Pick Our SLIME Ingredients!! | JKREW

are they pretty?

are they pretty?

Are you working on new projects and need flexible finance solutions to support you?

Are you working on new projects and need flexible finance solutions to support you?

Eating The UNHEALTHIEST Holiday Foods On EARTH!

Eating The UNHEALTHIEST Holiday Foods On EARTH!

Pool Lesson | How To Run Out - GoPro

Pool Lesson | How To Run Out - GoPro

Growth of Commercial Space

Growth of Commercial Space

attempting to bake Claire Saffitz' Flourless Chocolate Wave Cake (harder than i expected tbh)

attempting to bake Claire Saffitz' Flourless Chocolate Wave Cake (harder than i expected tbh)

(2 CODE) All New *BOSS MISSION* SCROLLS LOCATION In Old Ember Shindo Life!

(2 CODE) All New *BOSS MISSION* SCROLLS LOCATION In Old Ember Shindo Life!

GTA 5 But Everything I Touch Turns DIAMOND!

GTA 5 But Everything I Touch Turns DIAMOND!

Plangamy Official Video

Plangamy Official Video

Top 10 Events That Changed YouTube Forever

Top 10 Events That Changed YouTube Forever

Crimewatch 2015 EP9 | House-breaking cases

Crimewatch 2015 EP9 | House-breaking cases

Therefore™ Online v25 Webinar

Therefore™ Online v25 Webinar