LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: keepalived tracking http

To: lvs <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: keepalived tracking http
From: lco <lco@xxxxxxxxxx>
Date: 19 Oct 2001 16:01:50 -0700
I've replaced my keepalived.conf with the corrected one you sent
earlier. But I'm still having the same problem, no fail over happening
for the second virtual_server group (206.135.3.11, 192.168.2.14:80,
192.168.2.14:80). Do you have any other ideas?

your question regarding the digests. I've noticed the problem before and
have corrected. Now the digests are the same within each virtual_server
group. But that didn't affect fail-over operation. Curious, why?

TIA

lco



On Fri, 2001-10-19 at 15:34, Alexandre Cassen wrote:
> Re ico,
> 
> http://keepalived.sourceforge.net/pdf/QuickStart.pdf page 12.
> 
> In your keepalived.conf file : (I have attached a modified keepalived.conf 
> file)
> 
> 1. Replace : rh by virtual_server
> 2. Replace : RIP by real_server
> 
> virtual_server 206.135.3.10 80 {
>    delay_loop 30
>    lb_algo wrr
>    lb_kind NAT
>    nat_mask 255.255.255.0
>    persistence_timeout 50
>    protocol TCP
> 
>    sorry_server 206.135.3.10 80
> 
>    real_server 192.168.2.11 80 {
>      weight 1
>      HTTP_GET {
>        url {
>          path /index.html
>          digest 18e12efbc645b6473ddfa6450c75ab16
>        }
>        connect_timeout 3
>        nb_get_retry 3
>        delay_before_retry 2
>      }
>    }
> 
>    real_server 192.168.2.13 80 {
>      weight 1
>      HTTP_GET {
>        url {
>          path /index.html
>          digest 846a96c56ea7479d728c813ecdd4795e
>        }
>        connect_timeout 3
>        nb_get_retry 3
>        delay_before_retry 2
>      }
>    }
> }
> 
> 
> => This mean that you define one "virtual_server" with VIP:206.135.3.10, 
> VPORT:80. this VS is compounded with 2 "real_server" .11 & .13 on port 80. 
> Using HTTP_GET keepalived method.
> 
> I have one question on your configuration file : Your 2 real_server seems 
> to have a different url digest... this mean that /index.html on 
> 192.168.2.11 & 192.168.2.13 are different file... Is it correct ? (your 
> other VS 206.135.3.11:80 use the same digest which sound good to me)
> 
> look forward to you,
> Alexandre
> ----
> 

> # Configuration File for keepalived
> 
> global_defs {
>    notification_email {
>     lco 
>    }
>    notification_email_from lco@xxxxxxxxxx
>    smtp_server 206.135.2.66
>    smtp_connect_timeout 30
>    lvs_id rh1
> }
> 
> virtual_server 206.135.3.10 80 {
>     delay_loop 30
>     lb_algo wrr 
>     lb_kind NAT
>     nat_mask 255.255.255.0
>     persistence_timeout 50
>     protocol TCP
> 
>     sorry_server 206.135.3.10 80
> 
>     real_server 192.168.2.11 80 {
>         weight 1
>         HTTP_GET {
>             url { 
>               path /index.html
>               digest 18e12efbc645b6473ddfa6450c75ab16
>             }
>             connect_timeout 3
>             nb_get_retry 3
>             delay_before_retry 2
>         }
>     }
> 
>     real_server 192.168.2.13 80 {
>         weight 1
>         HTTP_GET {
>             url { 
>               path /index.html
>               digest 846a96c56ea7479d728c813ecdd4795e
>             }
>             connect_timeout 3
>             nb_get_retry 3
>             delay_before_retry 2
>         }
>     }
> }
> 
> virtual_server 206.135.3.11 80 {
>     delay_loop 30
>     lb_algo wrr
>     lb_kind NAT
>     nat_mask 255.255.255.0
>     persistence_timeout 50
>     protocol TCP
> 
>     real_server 192.168.2.12 80 {
>         weight 1
>         HTTP_GET {
>             url {
>               path /index.htm
>               digest bcbbaf5a5626c5577902b7348cd8bbc6
>             }
>             connect_timeout 3
>             nb_get_retry 3
>             delay_before_retry 2
>         }
>     }
> 
>     real_server 192.168.2.14 80 {
>         weight 1
>         HTTP_GET {
>             url {
>               path /index.htm
>               digest bcbbaf5a5626c5577902b7348cd8bbc6
>             }
>             connect_timeout 3
>             nb_get_retry 3
>             delay_before_retry 2
>         }
>     }
> }
> 




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