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
> or:
> my.server.net/20.html
> or:
> 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.
--
Horms
|