|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
07-09-2015, 10:04 AM | #1 |
Guest
Trả Lời: n/a
|
Cách loadbancing làm việc và Loadbalacing and HA với Nginx và Keepalive
Loadbalacing and HA với Nginx và Keepalive 1. Cách loadbalancing làm việc 2. High Availability Support Based on keepalived NGINX Plus Release 6 (R6) and later includes a solution for fast and easy configuration of NGINX Plus in an active-passive high-availability (HA) setup. It is based on keepalived. The keepalived open source project project provides the keepalive daemon for Linux servers, an implementation of the Virtual Router Redundancy Protocol (VRRP) to manage virtual routers (virtual IP addresses), and a health check facility to determine whether a service (for example, a web server, PHP back end, or database server) is up and operational. If a service on a node fails the configured number of health checks, keepalived reassigns the virtual IP address from the master (active) node to the backup (passive) node. VRRP ensures that there is a master node at all times. The backup node listens for VRRP advertisement packets from the master node. If it does not receive an advertisement packet for a period longer than three times the configured advertisement interval, the backup node takes over as master and assigns the configured virtual IP addresses to itself. Configuring High Availability Run the nginx-ha-setup script (available in the nginx-ha-keepalived package, which must be installed in addition to the base NGINX Plus package) on both nodes as the root user. The script configures a high-availability NGINX Plus environment with an active-passive pair of nodes acting as master and backup. It prompts for the following data:
Read more: https://www.nginx.com/resources/admin-guide/nginx-ha-keepalived/ |
|
|