亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 請高人幫忙看看keepalived配置文件中的錯誤 [打印本頁]

作者: zhancat200801    時間: 2015-12-28 20:23
標(biāo)題: 請高人幫忙看看keepalived配置文件中的錯誤
本帖最后由 zhancat200801 于 2015-12-28 20:33 編輯

大家好,本人在虛擬機上學(xué)習(xí)keepalived,配置文件如下,目前的問題是無法實現(xiàn)輪詢,多次刷新只能訪問其中一臺真實web服務(wù)器。

哪位高人麻煩能幫忙看看是什么原因呢?多謝!

global_defs {
   notification_email {
      2234343@qq.com
   }
   notification_email_from 777743@qq.com
   smtp_server smtp.qq.com
   smtp_connect_timeout 30
   router_id LVS_DEVEL
}
# VIP1
vrrp_instance LVS_HA {
    state MASTER
    interface eth0
    #lvs_sync_daemon_inteface eth0
    virtual_router_id 151
    priority 100
    advert_int 5
    #nopreempt
    authentication {
        auth_type PASS
        auth_pass 2222
    }
    virtual_ipaddress {
        192.168.1.100
    }
}

virtual_server 192.168.1.100 80 {
    delay_loop 6
    lb_algo rr
    lb_kind DR
    netmask 255.255.255.0
    persistence_timeout 60
    protocol TCP
    real_server 192.168.1.107 80 {
        weight 1
        #notify_down /data/sh/mysql.sh
        TCP_CHECK {
           connect_timeout 10
           nb_get_retry 3
           delay_before_retry 3
           connect_port 80
        }
    }

     real_server 192.168.1.105 80 {
        weight 1
        #notify_down /data/sh/mysql.sh
        TCP_CHECK {
           connect_timeout 10
           nb_get_retry 3
           delay_before_retry 3
           connect_port 80
        }
    }

}

我的IP地址設(shè)置如下:
LVS-主:192.168.1.109
LVS-備:192.168.1.106
web服務(wù)器1:192.168.1.107
web服務(wù)器2:192.168.1.105
VIP:192.168.1.100

有一個問題是兩臺LVS服務(wù)器上,是否需要也綁定VIP到lo:0上?我目前的做法是綁定了,但不知道是否正確。請高人幫忙,謝謝!

作者: Godbach    時間: 2016-01-18 17:59
回復(fù) 1# zhancat200801

是否能輪詢,按理說和 KeepAlived 沒啥關(guān)系吧。你單獨配置的 LVS,能否實現(xiàn)輪詢的。

如果 KeepAlived 影響了輪詢的話,那么看下 health check 的結(jié)果


   




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2