Setting Up A High-Availability Load Balancer

Discussion in 'HOWTO-Related Questions' started by pyx69, Nov 6, 2007.

  1. pyx69

    pyx69 New Member

    Hello !

    What about building HA and load balancing between two remote LAMP servers (in different server farms) ?

    Does it make sense ?

    Is it possible to do ?

    Thank you
     
  2. Ben

    Ben Active Member Moderator

    To make it really HA, you need a load balancer cluster. as far as I know they have to be in the same subnet. That does not tell anything about the physical distance. but e.g. you will have problems if two datacenters are connected via ATM over the Ethernet is simulated.
    The rest should not be that big problem to split the location of the backend servers. Another thing is about which services are you talking that shall be loadbalanced and HA?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Yes. But you need two load balancers that are i nthe same subnet so that they can share an IP address ("virtual IP address").

    Take a look at these tutorials: http://www.howtoforge.com/high-availability-load-balancer-haproxy-heartbeat-debian-etch
    http://www.howtoforge.com/high-availability-load-balancer-pound-keepalived-debian-etch
    http://www.howtoforge.com/haproxy_loadbalancer_debian_etch

    If you need master-master replication for your MySQL database (on your LAMP nodes), take a look here: http://www.howtoforge.com/mysql5_master_master_replication_debian_etch

    To merge your access logs from both LAMP nodes, read here: http://www.howtoforge.com/logresolvemerge.pl_merge_apache_access_logs
     

Share This Page