On 10/17/05, Horms <horms@xxxxxxxxxxxx> wrote:
>
> On Mon, Oct 17, 2005 at 04:01:33PM +0900, sipieter nicolas wrote:
> > Hi there,
> > i managed to get LVS running.. i'm quite happy.
> > i must say it's very interesting. i'm eager to stress on
> > some high connections context.
> >
> > now the next step, i need to health-check my backends by
> > some url check. because there's some 3rd party app running
> > on top of the http server on my backend, sometime that 3rd
> > party app crash, while http port 80 still looks ok!
> >
> > in this case despite the fact theport 80 looks ok, there's
> > no point to be redirected on that backend until that 3rd
> > party app(some java CAD software) have been restarted.
> >
> > so... i need to check something like that:
> > doing an url test:
> >
> > my.server.net/10.html <http://my.server.net/10.html>
> > or:
> > my.server.net/20.html <http://my.server.net/20.html>
> > or:
> > my.server.net/30.html <http://my.server.net/30.html>
> > depending wich url test is successful, i'll need to
> > reconfigure LVS accordingly.
> >
> > for example: if 10 and 30.html URL check return faillure,
> > and 20.html return OK, then i need to tell ipvsadm that
> > the order of server changed, or that some server died.. i
> > need to stop my clients to be routed on thoses servers.
> >
> >
> > is something like this is possible with LVS ?
> > i were thinking of some sheel script but maybe there's
> > already such facilities in LVS ?
>
> You will need an external program that manages LVS.
> Two popular examles are keepalived and ldirectord.
> I know a lot about the last one, as I maintain it,
> and you would probably need to modify it to do what
> you want, though that modification should be quite easy.
> I'm not that familiar with keepalived, but the docs are
> out there.
>
> --
>
Hey,
How can I do the same with ldirectord? Is there any tutorial or any example
for such scenario ?
My Scenario is such
On Real Servers ,2 applications are running on Apache with mysql as
database.I have done the clustering of mysql on the Real Servers.Now if the
mysql server on any of the real goes down,still LVS server will keep on
sending the requests to the Real Server as it is only handling the requests
of the Apache not of mysql.
1st Real Server: 192.168.1.67 <http://192.168.1.67> (Running Apache,2
Applications on Apache,Mysql clustering)
2nd Real Server: 192.168.1.68 <http://192.168.1.68> (Running Apache,2
Applicatons on Apache,Mysql clustering).
Database server in both the Applications is localhost because the
Applications can't access the database from the 2 machines.
If any of the mysql host stops working or rather I say mysql stops working
on one of the host then the clients will start receiving errors as the LVS
will keep sending the requests to the server which is having
problem(irrespective of the algorithms) because the Application will not be
able to access the database locally.
How do I overcome such a problem ?
Thanks & Regards
Ankush Grover
|