老师,我前端和后端的keepalived他们在设置上没问题。但是当我pause掉一个后就无法访问了。
如ff1先开启了keepalived。ff2是后开启,当我docker pause ff1时,是无法访问的。
而ff2先开启keepalived,ff1是后开启。如果ff2被pause的话,也一样无法访问
ff1/keepalived.conf
vrrp_instance VI_1 {
state MASTER
interface enp0s3
virtual_router_id 53
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
192.168.1.151
}
}
virtual_server 192.168.1.151 6701 {
delay_loop 3
lb_algo rr
lb_kind NAT
persistence_timeout 50
protocol TCP
real_server 192.168.1.105 6601 {
weight 1
}
}
ff2/keepalived.conf
vrrp_instance VI_1 {
state MASTER
interface enp0s3
virtual_router_id 53
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
192.168.1.151
}
}
virtual_server 192.168.1.151 6701 {
delay_loop 3
lb_algo rr
lb_kind NAT
persistence_timeout 50
protocol TCP
real_server 192.168.1.105 6602 {
weight 1
}
}
我后端那边也是实现不了,想问问老师是不是哪里写错了吗