Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.68 KB


Keepalived

Keepalived provides frameworks for both load balancing and high availability. The load balancing framework relies on the well-known and widely used Linux Virtual Server (IPVS) kernel module, which provides Layer 4 load balancing. Keepalived implements a set of health checkers to dynamically and adaptively maintain and manage load balanced server pools according to their health. High availability is achieved by the Virtual Redundancy Routing Protocol (VRRP). VRRP is a fundamental brick for router failover. In addition, keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. Each Keepalived framework can be used independently or together to provide resilient infrastructures.

Install keepalived.

apt install keepalived

Start and enable keepalived service.

systemctl start keepalived
systemctl enable keepalived

configuration file path.

cat /etc/keepalived/keepalived.conf
nano /etc/keepalived/keepalived.conf

Architecture - keepalived

keepalived1

Keepalived with Nginx upstream.

Install nginx.

apt install nginx

Start and enable nginx service.

systemctl start nginx
systemctl enable nginx

configuration file path.

cat /etc/nginx/sites-available/default
nano /etc/nginx/sites-available/default

Architecture - keepalived and nginx upstream

keepalived and nginx