![]() This tutorial explains how to set up a two-node load balancer with and keepalived on CentOS 7. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. If one of them is down, all requests will automatically be redirected to the remaining backend server. which means the users will not notice any disruption of the service. For configuring HA-Load balanceer, You need 2 virtual/physical servers for the load-balancers and 2 virtual/physical servers to load-balance. In addition to the 4 IP addresses needed by the servers themselves, a fifth virtual IP address (VIP) is necessary. The two load-balancers and the VIP need to be in the same network segment. Piranha has been replaced in RHEL7/CENTOS 7 with HAProxy and keepalived. All Centos/Redhat openSUSE Ubuntu. [root@haproxy ~]# yum install haproxy -y [root@haproxy ~]# systemctl enable haproxy && systemctl start haproxy. -Now let’s move to add our backend and frontend configuration under haproxy.cfg file. So, HAProxy will be used as load-balancing software, keepalived as high availability solution and apache as software to load-balance. Add the HAPEE components repository HAPEE components include modules, scripts, tools, and optimized third party software. • In the file /etc/yum.repos.d/hapee.repo, add the content below. [hapee-plus] name=hapee-plus enabled=1 baseurl=gpgcheck=1 [hapee-plus-source] name=hapee-plus-source enabled=1 baseurl=gpgcheck=1 • Replace the tag [YOURKEYHERE] with the key you received from HAProxy. Output of a successful search: [.] hapee-1.5r2-base.noarch: HAPEE BASE: Common dependencies hapee-1.5r2-cli.x86_64: HAPEE CLI: Command line interface for HAPEE LB (socat) hapee-1.5r2-cli-debuginfo.x86_64: Debug information for package hapee-1.5r2-cli hapee-1.5r2-lb.x86_64: HAPEE LB: Layer 7 load-balancing (HAProxy) hapee-1.5r2-lb-debuginfo.x86_64: Debug information for package hapee-1.5r2-lb hapee-1.5r2-lb-dev.x86_64: HAPEE LB: developpement files hapee-1.5r2-vrrp.x86_64: HAPEE VRRP: VRRP daemon (Keepalived). Hapee-1.5r2-vrrp-debuginfo.x86_64: Debug information for package hapee-1.5r2-vrrp.
0 Комментарии
Оставить ответ. |
АвторНапишите что-нибудь о себе. Не надо ничего особенного, просто общие данные. Архивы
Март 2019
Категории |