Chuyển đến nội dung chính

Bài đăng

Hiển thị các bài đăng có nhãn Configuration HA proxy

[LB-HA] Configuration Load balancing and High available on HA PROXY tool

Install HAProxy Load Balancer on CentOS Understand about High Available (HA) and Load Balancing Configuring the load balancer Setting up HAProxy for load balancing is a quite straight forward process. Basically all you need to do is tell HAProxy what kind of connections it should be listening for and which servers it should relay the connections to. This is done by creating a configuration file  /etc/haproxy/haproxy.cfg  with the defining settings. You can read about the configuration options at  HAProxy documentation  if you wish to find out more. Open a .cfg file for edit for example using  vi  with the following command sudo vi /etc/haproxy/haproxy.cfg Add the following sections to the the file. Replace the   with what ever you want to call you servers on the statistics page and the  > with the private IPs for the servers you wish to direct the web traffic to. You can check the private IPs at your  UpCloud Control Panel  and  Private network  -tab under  Network  -me