Re: [Keepalived-devel] Re: Question concerning virtual mac address
Status: Beta
Brought to you by:
acassen
|
From: Sebastien R. <Seb...@di...> - 2005-04-26 16:46:43
|
Le Mardi 26 Avril 2005 18:08, Christian Schuhegger a =E9crit :
[...]
> i would like to have a solution where the vrrp daemon runs on the same
> machine as the service (apache) and therefore i would like to have the
> option to configure the checks in the vrrp_instance NAME {} section. if
> then a failure of the actual service occurs the vrrp daemon instance of
> this server just goes into back-up mode and another machine takes over.
> i do not need the lvs/load balancing functionality and i have a kernel
> which does not support lvs. i would like to be able to have the same
> checks that go normally into the virtual_server IP {} section to trigger
> a "go to backup-mode" or "go to master-mode" of the vrrp daemon.
>
> is this possible with keepalived? would you take such an implementation
> proposal into consideration for the future?
Quick & quite ugly way to do it :=20
=2D use separate script to monitor your apache process (from the simple ps =
|=20
grep to a more complex http GET with parsing http return code or even http=
=20
body).=20
=2D one script on each node, each monitoring it own local apache
=2D in case of apache failure, the script send a SIGTERM to keepalived or a=
=20
rc.keepalived stop.
=2D try to restart apache
=2D in case of apache back to life, start again keepalived.
The latency of the failover will be quite bad compared to a standard LVS=20
architecture, but you can use service on the same box than the director.=20
Regards
=2D-=20
S=E9bastien
|