Загрузка страницы

Setup Active-Passive Cluster with Keepalived & HAProxy (Two raspberry pis)

UPDATE:
I made a mistake on 14:24 to the config thanks for everyone for letting me know. All instances should have the same virtual_router_id. So the secondary should have 101 instead of 102. I got lucky and worked because I assigned different priorities. Sorry for the confusion.

Thanks to JR E and Parth Patel for catching the mistake

Red hat doc https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/load_balancer_administration/ch-initial-setup-vsa

Keepalived is a routing software written in C that provides simple and robust facilities for loadbalancing and high-availability to Linux systems. In this video we will talk about this technology and implement it along side HAProxy as a high availability (failover)

Chapters
0:00 Intro
2:10 What is failover?
4:30 What are we building
7:20 KeepAlived Example

* What is Keepalived?
* Setup Keepalived with HAProxy
* VRRP/VIP
* Two rapsberrypis with keepalived and haproxy

sudo apt-get install keepalived
sudo vim /etc/keepalived/keepalived.conf

vrrp_instance pi1 {
state MASTER
interface eth0
virtual_router_id 101
priority 100
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
192.168.254.100
}
}

vrrp_instance pi2 {
state BACKUP
interface wlan0
virtual_router_id 101
priority 200
authentication {
auth_type PASS
auth_pass 1234
}
virtual_ipaddress {
192.168.254.100
}
}



Red HAT Doc

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/load_balancer_administration/ch-initial-setup-vsa

Stay Awesome,
Hussein

Видео Setup Active-Passive Cluster with Keepalived & HAProxy (Two raspberry pis) канала Hussein Nasser
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
20 марта 2020 г. 16:00:18
00:18:56
Яндекс.Метрика