A
A
aroun2016-02-22 05:23:04
linux
aroun, 2016-02-22 05:23:04

How to ensure switching back when raising a node, hertbeat?

There are two servers, both have heartbeat, the configs are as follows:

haresources
video-2 IPaddr::192.168.138.150/24

cat ha.cf
logfacility daemon
bcast eth0
keepalive 500ms
deadtime 5
warntime 5
initdead 15
auto_failback off
node video-1
node video-2
use_logd yes
ping video-1
logfile /var/log/ha.log

On the second, the same thing, only in the opposite direction.
Let's say the virtual address on the video-1 server, we put it down, the address switches to the second server, how to make it so that when the first virtual address is raised, the address returns to the first one, i.e. the first would be the master?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-02-22
@aroun

auto_failback on

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question