- 论坛徽章:
- 0
|
LVS+KEEPALIVED怪事
LVS+KEEPALIVED运行一段时间不知道咋了,同一IP连接过去的有时候就打不开后端的web,换个IP地址就立马打开了(公司的外网IP),大家有遇到这种怪事的吗! Configuration File for keepalived
- global_defs {
- notification_email {
- 15010477451@139.com
- }
- notification_email_from Alexandre.Cassen@firewall.loc
- smtp_server 127.0.0.1
- smtp_connect_timeout 30
- router_id LVS_DEVEL
- }
- vrrp_instance VI_1 {
- state MASTER
- interface eth0
- virtual_router_id 11
- priority 100
- advert_int 1
- authentication {
- auth_type PASS
- auth_pass 1111
- }
- virtual_ipaddress {
- 121.52.*.*
- }
- }
- virtual_server 121.52.*.* 80 {
- delay_loop 6
- lb_algo rr
- lb_kind DR
- nat_mask 255.255.255.192
- persistence_timeout 60
- protocol TCP
- real_server 121.52.*.* 80 {
- weight 1
- TCP_CHECK {
- connect_timeout 10
- nb_get_retry 3
- delay_before_retry 3
- connect_port 80
- }
- }
- real_server 121.52.*.* 80 {
- weight 1
- TCP_CHECK {
- connect_timeout 10
- nb_get_retry 3
- delay_before_retry 3
- connect_port 80
- }
- }
- }
- ~
复制代码 |
|