LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

connection between MySQL and Apache LVS-NAT.

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: connection between MySQL and Apache LVS-NAT.
From: Gastón Gorosterrazú <goro@xxxxxxxxxxxxxx>
Date: Thu, 12 Jun 2003 10:47:45 -0600
Hi People,

    Thanks to everyone who helped me in my issue. I solved it quite
different than seen in the HOW-TO. So, someone may need this email in the
near future:
-------------------------------------------------------------------------
    Director
        192.168.0.23 (eth1)
        192.168.0.24 (eth0:100)
        10.0.0.1 (eth0)
        Just configured ip_vs to load balance Apache between Server3 and
Server1 (in this order because for me, Server3 is the primary apache server)
-------------------------------------------------------------------------
    Server1 (primary MySQL, secondary Apache)
        10.0.0.3 (eth0)
        10.0.0.10 (eth0:100)
        MySQL is Master/slave for Server3

-------------------------------------------------------------------------
    Server2 (secordary MySQL)
        10.0.0.4 (eth0)
        Mon running, checking every 10 secs. MySQL in 10.0.0.3. If it fails,
then this machine configures eth0:100 as 10.0.0.10.
        MySQL is Master/slave for Server1
-------------------------------------------------------------------------
    Server3 (primary Apache)
        10.0.0.5
        Apache (in my case php), connects always to 10.0.0.10.
-------------------------------------------------------------------------

    End of story. I have better security in the MySQL daemons (not accesible
from clients), less charge in the director machine (don't have to worry
about MySQL, neither run MON yet),  and I'm happy. :) Now is the turn for
Cyrus in Server2 and Server3.

    Thanks a lot to everyone, as soon as I finish installing this, I'll post
my installation How-to in the net. If I could, anyone can!. :).

Gastón Gorosterrazú
goro@xxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>