A comprehensive guide to deploying Keepalived with Nginx for high availability, covering VRRP mechanics, health-check design, split-brain prevention, failover testing, and cloud-environment nuances, with concrete configs and verification steps.
A comprehensive troubleshooting guide for Keepalived VRRP issues covering dual-master split-brain, VIP failover failures, health check misconfigurations, firewall blocking VRRP protocol 112, and ARP cache problems, with real-world case studies and a four-layer diagnostic methodology.
The article explains how to build a million‑level high‑performance system by layering LVS with Keepalived for entry‑level redundancy and Nginx for flexible proxying, while adding health checks, logging, and auto‑scaling to ensure stability and rapid recovery.
The article explains how to build a million‑request‑per‑second system by combining LVS, Nginx, and Keepalived in a three‑layer load‑balancing architecture, detailing each layer’s responsibilities, configuration snippets, and kernel tuning parameters that ensure high throughput and seamless failover.
This guide explains the four operating modes of Linux Virtual Server (LVS)—NAT, DR, TUN, and FULLNAT—detailing packet flows, configuration steps, required kernel parameters, health checks, troubleshooting tips, and best‑practice deployment scripts for building a reliable, high‑performance load‑balancing cluster.
This guide walks through building a dual‑master Nginx + Keepalived high‑availability setup that doubles resource utilization, removes the idle‑backup drawback of traditional active‑passive designs, and provides step‑by‑step configuration, health‑check scripts, failover testing, best‑practice tips, and troubleshooting procedures.
This article explains load balancing fundamentals, compares hardware appliances with the Linux Virtual Server (LVS) solution, details NAT, DR, and TUN modes, and provides step‑by‑step ipvsadm commands, Keepalived high‑availability configuration, kernel tuning, and troubleshooting for production environments.
This article walks through building a simple, cost‑effective high‑availability solution for Nginx using Keepalived’s VRRP‑based VIP failover, covering environment setup, configuration of master and backup nodes, health‑check scripts, testing procedures, troubleshooting tips, and rollback steps.
This article explains why Nginx’s “master‑slave” term refers to a high‑availability setup, details the four‑layer architecture, shows a complete configuration example, and walks through the failover process using VIP and Keepalived.
This article explains how to build a highly available Nginx deployment using a master‑slave architecture combined with Keepalived, detailing the role of virtual IPs, the failover mechanism, and the step‑by‑step process that ensures 99.99% uptime.
This guide explains how to achieve million‑level concurrent request handling by combining Nginx, LVS, and Keepalived, detailing the architecture layers, load‑balancing design, high‑availability configuration, and practical sample configurations for each component in modern large‑scale web services.
This article reveals three hidden traps in Nginx‑Keepalived high‑availability setups—network‑partition split‑brain, inadequate health‑check scripts, and unsafe configuration‑sync timing—explains real incidents caused by each, and provides concrete configuration changes, Bash scripts, and automation tips to prevent service outages.
To prevent single‑point failures of Nginx at the traffic entry, this guide explains why high availability is essential, outlines typical risks, and details a production‑grade Active‑Passive solution using Keepalived and VRRP to automatically fail over a virtual IP within seconds.
This guide explains how to design a high‑availability architecture using Keepalived's VRRP‑based active‑passive failover, covering technical features, applicable scenarios, environment requirements, step‑by‑step installation and configuration for services like Nginx, MySQL and Redis, plus best practices, troubleshooting, monitoring and backup strategies.
This guide walks through installing Nginx on two CentOS 7 virtual machines, configuring keepalived for VRRP‑based high availability, creating a virtual IP, and demonstrating failover scenarios to ensure continuous web service availability in production environments.
This guide walks through designing and implementing a highly available Nginx load‑balancing solution—covering applicable scenarios, prerequisites, environment matrix, step‑by‑step configuration of Nginx, Keepalived, SSL termination, health checks, monitoring, performance tuning, security hardening, troubleshooting, and a concise list of best‑practice recommendations.
This step‑by‑step guide shows how to set up a three‑node Nginx reverse‑proxy cluster with Keepalived for VIP failover, covering prerequisites, installation, configuration, health‑check scripts, monitoring, performance tuning, security hardening, troubleshooting, and rollback procedures.
This article explains the Nginx master‑slave architecture, how a virtual IP is shared between a primary and backup server using Keepalived and VRRP, and why this simple failover design provides high availability for web services with minimal resources.
Learn how to build a million‑concurrent, high‑availability web service using a layered architecture of LVS for layer‑4 load balancing, Keepalived for failover, and Nginx for layer‑7 reverse proxy, complete with configuration examples, health‑check scripts, and deployment tips.
This article explains the fundamentals of concurrency, distinguishes connections from requests, shows how to calculate and tune maximum concurrent connections for Nginx and HAProxy, covers system resource limits, demonstrates real‑time monitoring with stub_status, and provides practical load‑testing and Prometheus monitoring guidance.
This comprehensive guide walks you through the principles, architecture, deployment steps, performance tuning, monitoring, and advanced techniques for building a robust, production‑grade high‑availability load‑balancing solution using LVS and Keepalived, suitable for both beginners and seasoned engineers.
This article explains why Linux Virtual Server (LVS) can handle millions of concurrent connections by operating in kernel space, outlines its three core forwarding modes (NAT, Direct Routing, TUN), describes the main load‑balancing algorithms, and shows how Keepalived provides high‑availability failover.
This article explains how to design a high‑availability, million‑level concurrent architecture using LVS for layer‑4 load distribution, Nginx for intelligent application‑layer routing, and Keepalived for automatic failover, illustrated with clear diagrams and practical insights.
This tutorial explains how Keepalived provides targeted high‑availability for LVS clusters by implementing VRRP, details its architecture, walks through installation, configuration of VRRP and virtual servers, shows health‑check scripts, and demonstrates testing of fail‑over and load‑balancing behavior.
This comprehensive guide walks you through designing, configuring, and optimizing a production‑grade Nginx cluster with 99.99% availability, covering architecture principles, load‑balancing algorithms, Keepalived failover, monitoring, performance tuning, failure‑injection drills, and advanced automation techniques.
This article explains how Nginx master‑slave (high‑availability) setups work, why a virtual IP is used, and how Keepalived monitors health and automatically fails over to ensure continuous service without single‑point failures.
This article reveals three hard‑to‑detect pitfalls in Nginx + Keepalived high‑availability setups—split‑brain caused by network partitions, inadequate health‑check scripts, and unsafe configuration‑sync timing—provides real‑world incident examples, and offers complete, battle‑tested solutions with ready‑to‑use scripts.
This article explains the Nginx master‑slave high‑availability architecture, describing the roles of master and slave nodes, the use of Keepalived for VIP failover via heartbeat detection, and provides configuration diagrams and code snippets to illustrate seamless traffic switching.
This article explains a proven high‑concurrency solution that combines Linux Virtual Server (LVS), Nginx, and Keepalived to achieve million‑level request handling, load balancing, and high availability for large‑scale web services.
This article explains how Nginx's master‑slave (primary‑backup) setup, combined with Keepalived and a virtual IP, provides high‑availability for web and API services by automatically detecting failures, shifting the VIP, and allowing the backup server to take over without service interruption.
This article explains how to build a high‑availability, million‑level concurrent architecture by combining Linux Virtual Server (LVS) for layer‑4 load balancing, Nginx for layer‑7 reverse proxy and caching, and Keepalived for VIP failover, including configuration examples and deployment modes.
This guide demonstrates how to configure keepalived in a dual‑host (master‑master) setup, enabling VIP address migration between two servers by defining two VRRP instances that act as primary and backup for each other, and includes step‑by‑step commands, configuration files, verification procedures, and multicast traffic capture.
Learn step-by-step how to install and configure DRBD for real-time block device replication, set up keepalived for virtual IP failover, and manage primary/secondary roles, including troubleshooting split-brain, to achieve seamless file synchronization and high availability between two Linux servers.
This guide explains Keepalived’s role in providing VRRP‑based high availability for LVS, covering its architecture, VRRP operation, installation, configuration of master and backup nodes, health checks, and practical testing steps to achieve seamless failover in a Linux environment.
This tutorial explains how to design and deploy a high‑availability web cluster using Linux Virtual Server (LVS) and Keepalived, covering terminology, test environment setup, detailed configuration steps, HA testing procedures, and a concise summary of the solution.
Learn how to enhance network service high availability by installing Keepalived Exporter, configuring Prometheus to collect its metrics, and adding a Grafana dashboard, with step‑by‑step commands and tips for a robust monitoring solution suitable for enterprises of any size.
This guide explains the fundamentals of Keepalived, its key features, VRRP‑based high‑availability architecture, step‑by‑step installation and configuration of Keepalived and Nginx on master and backup servers, scripts for health checks, split‑brain causes and solutions, and Zabbix monitoring to detect and alert on HA failures.
This guide walks through configuring Nginx as a reverse‑proxy load balancer, setting up Keepalived for high‑availability, writing monitoring scripts, and testing failover on a CentOS 8 environment with multiple web servers.
This guide demonstrates how to set up a two‑node Keepalived configuration in dual‑host mode, creating two VRRP instances that act as master and backup to enable seamless VIP address migration between the servers.
This guide walks through planning a four‑layer reverse‑proxy cluster, installing Nginx, configuring load‑balancing streams, setting up keepalived high‑availability with master/backup modes, testing failover, and troubleshooting common keepalived issues on Linux servers.
This guide walks you through planning, configuring, and deploying a production‑grade Kubernetes cluster with high performance and availability, covering host planning, HA load balancing with keepalived and HAProxy, Harbor setup, node initialization, and essential system tweaks, all illustrated with ready‑to‑run code snippets.
This guide explains how to create a high‑availability web load‑balancing cluster using Linux Virtual Server (LVS) and Keepalived on CentOS, covering background, terminology, environment setup, detailed configuration steps for master and backup nodes, real‑server preparation, HA testing, and final conclusions.
This guide walks through the complete process of creating a MySQL dual‑master replication cluster, configuring replication users, synchronizing binary logs, setting up keepalived for virtual IP failover, and testing both data consistency and high‑availability monitoring.
This guide explains how to design and deploy a highly available web load‑balancing cluster using Linux Virtual Server (LVS) together with Keepalived, covering architecture, required software, configuration steps for both master and backup nodes, real‑server setup, and HA testing procedures.
This guide walks through setting up a secure SFTP service, configuring chrooted users, implementing one‑way real‑time file synchronization with rsync and inotify, and achieving active‑passive high availability using Keepalived, along with scripts for monitoring VIPs and creating read‑only accounts.
This article explains the principles of high-availability systems using Keepalived, covering VRRP heartbeat, virtual IP handling, health-check scripts for MySQL and RabbitMQ, and the step-by-step failover process, helping developers design resilient services.
This guide walks through downloading the Keepalived source, installing required dependencies, compiling and installing the software on a CentOS 7.9 server, then configuring a preemptive single‑VIP setup with a health‑check script for Nginx, while addressing common pitfalls.
This article presents five expansion strategies—shutdown, write‑stop, log‑based, dual‑write, and smooth 2N—detailing step‑by‑step procedures for MariaDB installation, master‑master replication, dynamic data‑source configuration, and Keepalived high‑availability setup, enabling seamless horizontal scaling and minimal service disruption for large‑scale databases.
The article explains why master‑master MySQL architectures are discouraged, outlines the pitfalls of dual‑write setups, and provides step‑by‑step instructions using dbops to deploy a master‑slave topology and manually create a reversible master‑master configuration for testing.
HAProxy is an open‑source L4/L7 load balancer offering reverse‑proxy, session persistence, diverse balancing algorithms, ACL‑based routing, health checks, and a web UI; the guide details its high‑performance architecture, high‑availability deployment with Keepalived, configuration examples, and extensive kernel and system tuning for massive traffic.
This article provides a comprehensive guide to Linux Virtual Server (LVS) load balancing, covering its architecture, core concepts, software modules, NAT/TUN/DR modes, scheduling algorithms, ipvsadm command usage, and step‑by‑step deployment of LVS‑NAT with Keepalived for both TCP and UDP scenarios.
This article explains the VRRP protocol’s core concepts, state machine, election process, and multi‑master HA mode, provides step‑by‑step Linux router configuration examples—including group creation, priority, interface tracking, preempt mode, timers, and learning—plus an overview of Keepalived’s architecture and split‑brain mitigation strategies.
This article examines the evolution of database high‑availability architectures in large‑scale internet environments, covering basic direct‑connect setups, scale‑up/scale‑out sharding, master‑slave/master‑master with Keepalived, and advanced solutions such as MHA, Percona XtraDB Cluster, and MySQL Group Replication, plus smooth scaling steps.
This guide outlines practical methods to avoid split‑brain incidents in production HA clusters, including dual‑cable heartbeats, arbitration mechanisms, monitoring alerts, disk‑locking techniques, and a detailed keepalived‑based script for automated detection and recovery.
This technical guide explains how to scale a sharded database horizontally by introducing five expansion schemes—including shutdown, write‑stop, log‑based, dual‑write, and smooth 2N approaches—covers MariaDB installation, master‑master replication setup, dynamic data‑source configuration with ShardingJDBC, and detailed Keepalived high‑availability configuration for seamless service continuity.
This article explains how to expand a sharded database from three to four nodes, compares five migration schemes—including stop‑service, stop‑write, log‑based, dual‑write, and smooth 2N approaches—and provides step‑by‑step instructions for MariaDB installation, master‑slave configuration, Keepalived high‑availability setup, and dynamic data‑source integration using ShardingJDBC.
A detailed post‑mortem of a MySQL dual‑master cluster failure caused by a missing mysql-bin.index file, showing step‑by‑step diagnostics, container logs, replication position fixes, and preventive measures for high‑availability deployments.
This guide walks through the background of MySQL read/write splitting, records troubleshooting steps for an unexpected slave crash, explains the two splitting models, and provides detailed commands and configuration examples for using Keepalived to ensure high availability of the slave node.
This article explains how to set up a high‑availability Nginx service using Keepalived on two CentOS virtual machines, covering installation, configuration of keepalived, health‑check scripts, virtual IP management, and failover testing to ensure continuous service availability.
This article documents a MySQL read‑write splitting architecture, investigates an unexpected slave‑node crash, and provides a step‑by‑step guide to using Keepalived for monitoring and automatically restarting the MySQL container to achieve high availability of the replica.
This article provides a step‑by‑step tutorial on installing Nginx, setting up reverse proxy and various load‑balancing methods, configuring upstream directives, enabling SSL, and building high‑availability clusters using Keepalived and LVS with detailed command examples and configuration snippets.
After a month of testing a MySQL dual‑master high‑availability setup, the team encountered numerous replication pitfalls and decided to migrate to a simpler master‑slave architecture, detailing the reasons, differences, and a concrete manual conversion procedure.
This article recounts a real‑world investigation of a MySQL high‑availability outage where HikariCP connections appeared to dead‑lock, detailing the architecture, observed symptoms, code analysis, thread‑dump findings, and the final fix of adding socket timeout parameters to the JDBC URL.
This guide walks through preparing two CentOS virtual machines, installing Nginx, explaining high availability concepts, and configuring Keepalived with VRRP to achieve automatic failover and virtual IP management for a resilient Nginx service.
This guide walks through preparing two CentOS VMs, installing Nginx, explaining high‑availability concepts, and configuring Keepalived with VRRP and a health‑check script to achieve automatic failover of Nginx services via a virtual IP.
This article explains Keepalived’s inner workings, covering its integration with LVS/IPVS, the VRRP election protocol, key configuration parameters, load‑balancing algorithms, and practical deployment examples to help engineers build reliable high‑availability services.
This article provides a step‑by‑step tutorial on installing Nginx, setting up reverse proxy and various load‑balancing methods, configuring upstream directives, deploying Keepalived for high‑availability failover, and building an LVS‑DR cluster to achieve robust, production‑grade traffic distribution.
This guide explains how to scale a sharded database horizontally by adding new nodes, handling data migration with stop‑service, stop‑write, log‑based, dual‑write, and smooth 2N strategies, and implementing high‑availability using MariaDB double‑master replication and Keepalived, complete with configuration examples and code snippets.
This guide explains RabbitMQ clustering concepts, compares classic and mirrored modes, provides step‑by‑step commands to set up a multi‑node RabbitMQ cluster, and shows how HAProxy and Keepalived can be combined to achieve true high‑availability and load balancing.
This comprehensive guide walks you through installing Docker and containerd, configuring yum repositories, setting up kubeadm/kubelet/kubectl, initializing a multi‑master Kubernetes cluster, enabling Flannel CNI and IPVS, building a Nginx‑Keepalived HA load balancer, deploying the Kubernetes dashboard, configuring NFS storage with a dynamic provisioner, and installing a secure Harbor image registry for private images.
This comprehensive tutorial walks through preparing multiple Linux nodes, installing Docker and containerd, setting up kubeadm, kubelet and kubectl, initializing a HA Kubernetes control plane, configuring Flannel networking, deploying the Kubernetes dashboard, installing Nginx + Keepalived for load balancing, setting up NFS with rsync, provisioning storage via Helm, and finally installing a secure Harbor image registry, all with detailed commands and configuration snippets.
This step‑by‑step guide walks you through deploying a production‑grade Kubernetes environment, covering node preparation, Docker and containerd setup, kubeadm initialization, high‑availability configuration with Nginx and Keepalived, installing the dashboard, and setting up a private Harbor registry with NFS storage, all using cloud‑native best practices.
This article provides a step‑by‑step tutorial on configuring Nginx rewrite rules, implementing anti‑hotlinking protection, separating static and dynamic resources, and building a high‑availability architecture using Keepalived with detailed code examples and deployment instructions.
This guide explains Nginx rewrite syntax and flags, provides practical rewrite examples, demonstrates how to configure anti‑hotlinking, outlines static‑dynamic resource separation with caching, and shows step‑by‑step installation and configuration of Keepalived for high‑availability Nginx clusters, including required scripts and host settings.
This article uses a restaurant analogy to demystify Keepalived’s routing mechanisms, detailing the three routing modes—NAT, TUN, and Direct Routing (DR)—their configurations, underlying principles, advantages, limitations, and practical deployment considerations within load‑balancing environments.
After a month of testing a MySQL dual‑master high‑availability setup, the author details the numerous pitfalls encountered—including primary key collisions, sync failures, and data inconsistencies—and explains why they switched to a simpler master‑slave configuration, providing step‑by‑step instructions for the conversion.
After a month of operating a MySQL dual‑master high‑availability cluster, the author details the numerous pitfalls encountered and explains a step‑by‑step manual process for converting the setup to a simpler master‑slave architecture, including configuration changes and Keepalived adjustments.
This tutorial explains how to set up software load balancing using HAProxy and achieve high availability with Keepalived, covering architecture, installation, configuration files, VRRP failover, load‑balancing algorithms, session persistence, SSL offloading, and traffic routing.
This article explains Keepalived’s high‑availability architecture, detailing its integration with LVS/IPVS, VRRP‑based master election, configuration parameters like state, priority, nopreempt, and weight, and how traffic is forwarded and balanced across real servers using various scheduling algorithms.
This article recounts a MySQL high‑availability incident in a dual‑master environment, explains how missing binary‑log index files caused replication failures, and details step‑by‑step troubleshooting, directory recreation, binlog position correction, and configuration improvements to restore reliable database operation.
This tutorial walks through setting up a highly available MySQL master‑master cluster using Docker containers, configuring MySQL replication, and employing Keepalived for automatic failover and virtual IP management, complete with step‑by‑step commands, configuration files, and troubleshooting tips.
The article recounts a production‑like MySQL dual‑master HA setup using Keepalived, describes how a missing binary‑log index caused replication failure, and details step‑by‑step troubleshooting commands, configuration fixes, and preventive measures to restore reliable database synchronization.
This article provides a detailed guide on using Nginx for high‑performance HTTP serving, reverse proxying, load balancing, static‑dynamic separation, installation commands, configuration file structure, practical examples with Tomcat back‑ends, and setting up high‑availability using Keepalived, complete with code snippets and diagrams.
This guide walks you through installing Nginx from source, configuring reverse‑proxy and various load‑balancing methods, setting up Keepalived for high‑availability, and integrating LVS (DR, NAT, TUN modes) to create a robust, fault‑tolerant web service architecture on Linux.
This article provides a comprehensive guide to Nginx, covering its high‑performance architecture, reverse‑proxy concepts, load‑balancing strategies, static‑dynamic separation, installation commands, configuration file structure, practical reverse‑proxy and load‑balancing examples, and high‑availability setup with Keepalived.
This article provides a comprehensive guide to Linux Virtual Server (LVS), covering its history, four operating modes, scheduling algorithms, installation steps, MySQL load‑balancing configuration, ARP suppression techniques, and high‑availability setup using keepalived, all illustrated with diagrams and code snippets.
This guide walks through installing Nginx on Linux, configuring reverse‑proxy and various load‑balancing methods, setting up SSL, integrating Keepalived for high‑availability, and deploying LVS (DR mode) with ipvsadm to create a robust, fault‑tolerant web‑service cluster.
This article provides a step‑by‑step tutorial on installing Nginx, setting up reverse‑proxy and various load‑balancing methods, configuring SSL, deploying Keepalived for failover, and building an LVS‑DR high‑availability cluster with detailed command examples and configuration snippets.
This guide explains Nginx’s high‑performance architecture, covering reverse and forward proxy concepts, load‑balancing strategies, static‑dynamic separation, installation steps, common commands, configuration blocks, and a practical high‑availability setup using Keepalived, providing clear examples and diagrams for each feature.
This tutorial walks through installing Nginx, setting up upstream reverse‑proxy rules, configuring various load‑balancing algorithms, enabling SSL, deploying Keepalived for failover, and building an LVS‑DR high‑availability cluster with detailed commands and configuration examples.
This guide walks you through planning, deploying, and configuring a production‑grade KubeSphere‑based Kubernetes cluster for small environments, covering node layout, storage choices, middleware setup, OS and Docker preparation, HAProxy/Keepalived high‑availability, and KubeKey installation with verification steps.
This tutorial walks through installing Nginx from source, setting up upstream reverse‑proxy groups, configuring various load‑balancing methods (weight, IP hash, URL hash, least connections), enabling SSL, deploying Keepalived for failover, and building an LVS‑DR high‑availability cluster with detailed command‑line examples.
This tutorial explains how to achieve high availability with keepalived by installing the software, configuring VRRP virtual IPs, setting up master and backup nodes, starting the service, and verifying failover through VIP testing on Linux systems.
This comprehensive guide explains what HAProxy is, its core capabilities and performance characteristics, walks through installing and configuring it on CentOS 7 for both L7 and L4 load‑balancing scenarios, and shows how to achieve high availability using Keepalived, complete with practical code snippets and sysctl tuning.
This guide explains how to set up a two‑node high‑availability Nginx service on CentOS using Keepalived, covering preparation, installation of Nginx and Keepalived, configuration of VRRP, virtual IP, health‑check scripts, and a failover demonstration.
This article explains how to use Keepalived together with PostgreSQL to build a two‑node high‑availability cluster, covering Keepalived's VRRP mechanism, host planning, installation steps, asynchronous master‑slave replication configuration, monitoring scripts, and detailed failover drills.
This guide explains how to combine the open‑source tools Keepalived and HAProxy to create a highly available software load‑balancing solution, covering the underlying concepts, installation steps, configuration files, health‑check scripts, session persistence, SSL offloading, and traffic routing techniques.