Checking apache with Keepalived

Manuel Arostegui Ramirez manuel at todo-linux.com
Wed Apr 18 12:42:24 BST 2007


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 at foo.com

       }
       notification_email_from keepalived at 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.

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list