2 wpf295288299 wpf295288299 于 2015.06.25 15:11 提问

关于LVS+KeepAlived,出现Connection reset by peer

我配置完LVS+KeepAlived之后(是一个socket服务的lvs集群),RS日志中总是不停的在出现java.io.IOException: Connection reset by peer错误
keepAlived配置如下:

global_defs {

lvs_id LVS_1
}

vrrp_instance VI_1 {

state MASTER

interface eth0

lvs_sync_daemon_interface eth0

virtual_router_id 50

priority 100

advert_int 1

smtp_alert

garp_master_delay 1

preempt_delay 1

authentication {

auth_type PASS

auth_pass 1111

}

virtual_ipaddress {

172.16.212.130
}
}

virtual_server 172.16.212.130 8066 {

delay_loop 5

lb_algo wrr

lb_kind DR

protocol TCP                 
real_server 172.16.212.200 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3 
        connect_port 8066          
    }     
}      
real_server 172.16.212.201 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3             
        connect_port 8066 
    }
}
real_server 172.16.212.202 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3 
        connect_port 8066          
    }     
}      
real_server 172.16.212.203 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3             
        connect_port 8066 
    }
}
real_server 172.16.212.204 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3 
        connect_port 8066          
    }     
}      
real_server 172.16.212.205 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3             
        connect_port 8066 
    }
}
real_server 172.16.212.206 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3 
        connect_port 8066          
    }     
}      
real_server 172.16.212.207 8066 {          
    weight 1          
    TCP_CHECK {              
        connect_timeout 3             
        nb_get_retry 3             
        delay_before_retry 3             
        connect_port 8066 
    }
}

}

1个回答

u013087513
u013087513   2017.09.08 14:26

我也遇到了同样问题 楼主解决了么?

Csdn user default icon
上传中...
上传图片
插入图片