Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual IP can not achieve the master switchover #11

Open
xchkun opened this issue Dec 20, 2017 · 0 comments
Open

Virtual IP can not achieve the master switchover #11

xchkun opened this issue Dec 20, 2017 · 0 comments

Comments

@xchkun
Copy link

xchkun commented Dec 20, 2017

Hi,
Through keepalived nginx master and backup, but the main nginx lost, the virtual IP will not drift to nginx, configured as follows:
10.10.14.9 The host hosts the main nginx and keepalived containers
10.10.14.8 The host has prepared nginx and keepalived containers
keepalived configure:
global_defs {
default_interface ens33
}

#vrrp_script chk_nginx {

script "/etc/keepalived/check_nginx.sh"

interval 2

weight -5

fall 3

rise 2

#}

vrrp_instance VI_1 {
interface ens33

track_interface {
ens33
}

state MASTER
virtual_router_id 51
priority 100
nopreempt

unicast_peer {
10.10.14.8
10.10.14.9
}

virtual_ipaddress {
10.10.14.16
}

authentication {
auth_type PASS
auth_pass 1111
}

track_script {

chk_nginx

}

notify "/container/service/keepalived/assets/notify.sh"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants