Configure HAProxy on CentOS/RHEL 5/6

HAProxy is a very fast and reliable solution for high availability, load balancing, It supports TCP and HTTP-based applications. Now a days most of websites need 99.999% uptime for there site, which are not possible with single server setup. Then we need some high availability environment which can easily manage with single server failure.

haproxy-setup-diagram

This article will help you to install HAProxy on CentOS, RHEL servers.

Setup Instructions:

Step 1: Setup EPEL Repository

Install epel repository on your system depending on your operating system version using following command.

Step 2: Install HAProxy

Install HAProxy package using yum package manager from command line interface using following comamnd.

Step 3: Configure HAProxy

Update your HAProxy configuration file /etc/haproxy/haproxy.cfg as per your requirement, You may also use below given configuration file as an example of setup and modify it.

[ Update red mark values as per your network setup ]

OR
Download it using below url:

Change the ips in configuration file as per your network setup.

Step 4: HAProxy System Specific Configuration

You also need to make few changes in configuration file as per your system configuration.

Step 5: Start HAProxy Service

Start HAProxy service using following command, also configure it to auto start on system boot.

Finally You have done it.

For more configuration details check below url. http://haproxy.1wt.eu/download/1.4/doc/configuration.txt

I hope this article will help to setup HAProxy for your high availability setup.


코멘트 쓰기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.

다음의 HTML 태그와 속성을 사용할 수 있습니다:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



배송정보
배송조회를 하시려면 송장번호를 클릭하세요
배송조회
상품명
주문번호
택배사
송장번호