Lsyncd – Syncronizing Folder Master to Slave

Environment Centos 5.7 (Final) Server Requirement, I use 3 server Master Server : Slave1 Server : Slave2 Server : Master Server : Install repository for lsyncd wget rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm Install lsyncd yum install lsyncd Set connection SSH without password between server ssh-keygen scp ~/.ssh/ root@ …

HAProxy – High Availability Load Balance


  • Centos 5.7 (Final)
  • Minimum Architecture requirement

  • Load Balance :
  • Web Server 01 :
  • Web Server 02 :
  • Load Balance Server
    Install repository

    rpm -ivh epel-release-5-4.noarch.rpm

    Install haproxy

    yum install haproxy

    Configure haproxy

    nano /etc/haproxy/haproxy.cfg
    maxconn     4096 # Total Max Connections. This is dependent on ulimit
    nbproc      4 # Number of processing cores. Dual Dual-core Opteron is 4 cores for example.
    mode        http
    clitimeout  60000
    srvtimeout  30000
    contimeout  4000
    option      httpclose # Disable Keepalive
    listen  http_proxy *:80
    mode http
    stats enable
    stats auth admin:123456
    balance roundrobin
    cookie JSESSIONID prefix
    option httpclose
    option httpchk HEAD /check.txt HTTP/1.0
    option forwardfor # This sets X-Forwarded-For
    ## Define your servers to balance
    server Apps01 cookie Apps01 maxconn 300 check inter 3000 rise 3 fall 2
    server Apps02 cookie Apps02 maxconn 300 check inter 3000 rise 3 fall 2

    Client Server