Keepalive:将新节点添加到以前的集群
Keepalive : add new node to a former cluster
我对生产中的集群有疑问。
它包含2个节点,一个主从,这个版本:
Keepalived v1.2.7 (08/14,2013)
我们要添加的新节点基于此版本:
Keepalived v1.3.9 (10/21,2017)
您知道我是否可以以及如何将这个新节点不间断地推送到我的旧集群中吗?
这是旧集群的配置文件:
global_defs {
lvs_id cluster
}
vrrp_script check_nginx {
script "killall -0 nginx"
interval 1
weight 2
}
vrrp_instance cluster {
interface eth0
virtual_router_id 1
state MASTER
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass **********
}
vrrp_unicast_bind 10.xx.xx.xx
vrrp_unicast_peer 10.xx.xx.xx
virtual_ipaddress {
10.xx.xx.xx # First node
10.xx.xx.xx # Second node
}
track_script {
check_nginx
}
}
我不知道这是否可行,我不想尝试一些动作使集群崩溃。
谢谢!
因此,在这些版本之间共享两个配置似乎是不可能的。
我们忘记了这个想法。
我对生产中的集群有疑问。
它包含2个节点,一个主从,这个版本: Keepalived v1.2.7 (08/14,2013)
我们要添加的新节点基于此版本: Keepalived v1.3.9 (10/21,2017)
您知道我是否可以以及如何将这个新节点不间断地推送到我的旧集群中吗?
这是旧集群的配置文件:
global_defs {
lvs_id cluster
}
vrrp_script check_nginx {
script "killall -0 nginx"
interval 1
weight 2
}
vrrp_instance cluster {
interface eth0
virtual_router_id 1
state MASTER
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass **********
}
vrrp_unicast_bind 10.xx.xx.xx
vrrp_unicast_peer 10.xx.xx.xx
virtual_ipaddress {
10.xx.xx.xx # First node
10.xx.xx.xx # Second node
}
track_script {
check_nginx
}
}
我不知道这是否可行,我不想尝试一些动作使集群崩溃。
谢谢!
因此,在这些版本之间共享两个配置似乎是不可能的。 我们忘记了这个想法。