How to configure and use Haproxy on centos 7

 

Command install haproxy

nano /etc/selinux/config

disabled selinux ;

and put this sign # so that the process does not run on the part marked;

Enter the IP server and client under the app-web backend .You add one or more bind lines to your frontend and listen sections to receive client connections. Assign to it an IP address and port on which to listen. In the following example, we define a frontend named myproxy and bind it to the IP address 10.0. 0.5 on port 80: frontend myproxy bind 10.0. ;

input numbers on listening statistics Usually useful for TCP traffic only. This is especially useful for TCP because such a configuration is usually simpler than HTTP. HAProxy sends requests to a backend and then receives a response from one of the active servers. Statistics here include information about the health of each server, timings related to queuing, connecting, and getting a response, and request rates.

test on google chrome;
















Komentar

Postingan Populer