环境:
两台服务器,做httpd高可用。一主一备,当启动其中一台的时候,不报错,如果两台同时在线就会报错如下信息:
heartbeat[54977]: 2016/02/27_19:45:58 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:45:59 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:00 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:01 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:02 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:03 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:04 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:05 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:06 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:07 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:08 WARN: 1 lost packet(s) for [node1.etaoka.net] [34:36] heartbeat[54977]: 2016/02/27_19:46:08 info: No pkts missing from node1.etaoka.net! heartbeat[54977]: 2016/02/27_19:46:08 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:09 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:09 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546] heartbeat[54977]: 2016/02/27_19:46:09 ERROR: should_drop_message: attempted replay attack [node1.etaoka.net]? [gen = 1456573531, curgen = 1456573546]
attempted replay attack 这个翻译过来就是试图重放攻击,意思也就是收到重复messagging了。
后来发现是两台服务器(主、备)的主机名同名了,由于高可用依赖于主机名通信,所以不能出现同名的情况。于是改正之,正常运行!