LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: keepalived tracking http

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: keepalived tracking http
From: Alexandre Cassen <Alexandre.Cassen@xxxxxxxxxx>
Date: Sat, 20 Oct 2001 00:34:38 +0200
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

Attachment: keepalived.conf
Description: Text document

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