keepalivedのヘルスチェック その2

Apacheをrestartしてみる。

virtual_server 192.168.11.100 80 {
    delay_loop 1
    lb_algo rr
    lb_kind DR
    protocol TCP

    real_server 192.168.11.15 80 {
        weight 1
        HTTP_GET {
            url {
              path /keepalived_HTTP_GET
              status_code 200
            }
            connect_timeout 3
        }
    }
}


[root@hastur html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

LVSも瞬断。


IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.11.100:80 rr

[LVS_DEVEL] Realserver 192.168.11.15:80 - DOWN
=> CHECK failed on service : connection error <=