クラウド上に2台のOracleLinux 7サーバーがあり、Corosyncを使用したいと思います。サーバーは(LANではなく)同じクラウドネットワーク上にありますが、NICは1つしかありません。これがconfファイルです。
サーバーA:
totem {
version: 2
secauth: off
transport: udpu
crypto_cipher: none
crypto_hash: none
interface {
member {
memberaddr: x.y.z.i
}
member {
memberaddr: x.y.z.j
}
ringnumber: 0
bindnetaddr: x.y.z.i
mcastport: 5405
ttl: 1
}
}
logging {
fileline: off
to_stderr: no
to_logfile: yes
logfile: /var/log/cluster/corosync.log
to_syslog: yes
debug: off
timestamp: on
logger_subsys {
subsys: QUORUM
debug: off
}
}
quorum {
#provider: corosync_votequorum
}
サーバーB:
totem {
version: 2
secauth: off
transport: udpu
crypto_cipher: none
crypto_hash: none
interface {
member {
memberaddr: x.y.z.i
}
member {
memberaddr: x.y.z.j
}
ringnumber: 0
bindnetaddr: x.y.z.j
mcastport: 5405
ttl: 1
}
}
logging {
fileline: off
to_stderr: no
to_logfile: yes
logfile: /var/log/cluster/corosync.log
to_syslog: yes
debug: off
timestamp: on
logger_subsys {
subsys: QUORUM
debug: off
}
}
quorum {
#provider: corosync_votequorum
}
両方のサーバーでCorosyncサービスを開始すると、それらが互いに結合していないことがわかりますが、サーバーAのログには、2秒ごとに繰り返しログエントリがあります。
Jun 08 04:22:48 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20544) was formed. Members
Jun 08 04:22:48 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
Jun 08 04:22:49 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20548) was formed. Members
Jun 08 04:22:49 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
Jun 08 04:22:50 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20552) was formed. Members
Jun 08 04:22:50 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
Jun 08 04:22:52 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20556) was formed. Members
Jun 08 04:22:52 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
Jun 08 04:22:53 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20560) was formed. Members
Jun 08 04:22:53 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
Jun 08 04:22:55 [17856] serverA corosync notice [TOTEM ] A new membership (x.y.z.i:20564) was formed. Members
Jun 08 04:22:55 [17856] serverA corosync notice [MAIN ] Completed service synchronization, ready to provide service.
そして、これが「corosync-cmapctl | grepmember」の出力です。
サーバーA:
runtime.totem.pg.mrp.srp.members.1489420110.config_version (u64) = 0
runtime.totem.pg.mrp.srp.members.1489420110.ip (str) = r(0) ip(x.y.z.i)
runtime.totem.pg.mrp.srp.members.1489420110.join_count (u32) = 1
runtime.totem.pg.mrp.srp.members.1489420110.status (str) = joined
totem.interface.0.member.0 (str) = x.y.z.j
totem.interface.0.member.1 (str) = x.y.z.i
サーバーB:
runtime.totem.pg.mrp.srp.members.1489420107.config_version (u64) = 0
runtime.totem.pg.mrp.srp.members.1489420107.ip (str) = r(0) ip(x.y.z.j)
runtime.totem.pg.mrp.srp.members.1489420107.join_count (u32) = 1
runtime.totem.pg.mrp.srp.members.1489420107.status (str) = joined
totem.interface.0.member.0 (str) = x.y.z.j
totem.interface.0.member.1 (str) = x.y.z.i
私は何が間違っているのですか?
パブリックIPではなくプライベートIPを使用する必要があります
corosyncは、一部のクラウドプロバイダー(AWSなど)によってブロックされているマルチキャストネットワーク通信を使用します。
http://aws.Amazon.com/vpc/faqs/
Q. Amazon VPCはマルチキャストまたはブロードキャストをサポートしていますか?
番号