keepalived是以辅助ip的形式出现的。所以不是以别名的形式出现的,所以ifconfig无法查看它的虚拟ip地址
查看虚拟ip应:ip add | grep 181
主节点和备节点只有一方有虚拟ip
只要主节点停掉,备节点会立即接管,这时ip add | grep 181在备节点会出现
如果两边都有,查看是不是防火墙的原因,让两边不能监听主节点的心跳
单实例,多虚拟ip
多实例,多虚拟ip(每个实例中都有主备,互相接管)
实例之间只有两点不同,一个是状态,一个 优先级
keepalived是以辅助ip的形式出现的。所以不是以别名的形式出现的,所以ifconfig无法查看它的虚拟ip地址
查看虚拟ip应:ip add | grep 181
主节点和备节点只有一方有虚拟ip
只要主节点停掉,备节点会立即接管,这时ip add | grep 181在备节点会出现
如果两边都有,查看是不是防火墙的原因,让两边不能监听主节点的心跳
单实例,多虚拟ip
多实例,多虚拟ip(每个实例中都有主备,互相接管)
实例之间只有两点不同,一个是状态,一个 优先级