LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Checking apache with Keepalived

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Checking apache with Keepalived
From: "Manuel Arostegui Ramirez" <manuel@xxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2007 13:42:24 +0200
Hi all.

I've set up Keepalived+LVS.
That machine is the one who send the clients to either apache1 or apache2,
two
boxes behind the Keepalived machine.

Everything seems to be normal, aside from the fact that when one Apache
fails
(daemon stopped, for instance), keepalived report it, that's perfect, then
if
you take a look to the ipvsadm -L output you notice it dissapear from the
list, perfect again.
The thing is, why when I restart the Apache server, keepalived don't
realised
it and include it to the ipvsadm list again.
Is actually keepalived supposed to do that?
I'm using round robin.

This is my keepalived.conf file:
# Configuration File for keepalived
 global_defs {
      notification_email {
         foo@xxxxxxx

      }
      notification_email_from keepalived@domain
      smtp_server 127.0.0.1
      smtp_connect_timeout 30
      lvs_id LVS_MAIN
 }
 virtual_server PUBLIC_IP 80 {
        delay_loop 30
        lb_algo wrr
        lb_kind NAT
        persistence_timeout 50
        protocol TCP
        real_server 192.168.128.7 80 {
              weight 2
              HTTP_GET {
                     url {
                         path /

                     }
                     url {
                         path /

                     }
                     connect_timeout 3
                     nb_get_retry 3
                     delay_before_retry 2
              }
        }
        real_server 192.168.128.5 80 {
              weight 1
              HTTP_GET {
                     url {
                         path /

                     }
                     connect_timeout 3
                     nb_get_retry 3
                     delay_before_retry 2
              }
      }
}

Thanks in advance.

Manuel.

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