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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Fail-over and High-Availability (Explained by Example)Meet keepalived - High Availability and Load Balancing in OnePostgreSQL HA With Patroni: Looking at Failure Scenarios and How the Cluster Recovers From ThemActive-Active vs Active-Passive Cluster to Achieve High Availability in Scaling SystemsLoad balancing webservers with HAProxy and KeepalivedActive Active vs Active Passive High Availability ClusterSyncing your Files Across ALL your Computers via SyncthingAccess your internal websites! Nginx Reverse Proxy in Home Assistant.HAProxy Crash Course (TLS 1.3, HTTPS, HTTP/2 and more)The Essentials of an HAProxy Configuration FileLyft's Envoy: Embracing a Service MeshHow to build your own Raspberry Pi Kubernetes Cluster[ Kube 1.5 ] Set up highly available Kubernetes cluster step by step | Keepalived & HaproxyPOSTGRESQL12 streaming REPLICATION Centos 8 | How To DevOpsAmjith Ramanujam - How Netflix does failovers in 7 minutes flat - PyCon 2018MySQL High Availability Stack: Orchstrator, Proxysql, and Consul with Peter SylvesterAPI Gateway Pattern & Kong in a Microservices WorldTutorial: Free SSL Certificate Installation in CentOS / Red Hat Enterprise Linux (RHEL)Configure HA Cluster using KeepAlived with FloatingIP | Install KeepAlived on Ubuntu