Назад | Перейти на главную страницу

Могу ли я использовать 2 кластера пульса в одной сети

Играю с HeartBeat. Я пытаюсь создать 2 кластера с 2 узлами в каждой в одной сети.

ldap1 (192.168.3.1) <-> ldap2 (192.168.3.2) www1 (192.168.3.3) <-> www2 (192.168.3.4)

При включении ldap1, ldap2 и выключении www1, www2, HA работает с выключенными ldap1, ldap2 и включенными www1, www2. HA работает с ldap1.ldap2 и www1, www2, HA не работает.

У меня ошибка:

ERROR: netstring authentication failed

Могу ли я иметь 2 кластера высокой доступности, работающих в одной сети?

Да, ты можешь. Вам нужно будет настроить разные адреса многоадресной рассылки в конфигурациях Heartbeat (/etc/ha.d/ha.cf) или использовать одноадресные адреса.

Пример конфигурации с использованием одноадресной рассылки (mcast закомментирован):

# Only allow the nodes specified in to the cluster
autojoin none

# Use hostnames output by 'uname -n'
node node-a node-b

# Specify the method, interfaces, and addresses for heartbeat communication.
# Depending upon the network configuration this section may need to be different
# on each host (listing only the local interfaces and addresses); however
# Heartbeat should be smart enough to determine which interfaces are local
# and which belong to a peer
udpport 694
ucast eth0 172.17.2.50
ucast eth0 172.17.2.51
ucast eth1 172.18.2.50
ucast eth1 172.18.2.51

# Or, use mcast
# mcast eth0 239.0.0.1 694 1 0
# mcast eth1 239.0.0.1 694 1 0

# Specify where to log to
logfacility syslog

# Thresholds (in seconds)
keepalive 2
warntime 10
deadtime 30
initdead 120