环境:
两台服务器,做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]
后来发现是两台服务器(主、备)的主机名同名了,由于高可用依赖于主机名通信,所以不能出现同名的情况。于是改正之,正常运行!
本文出自 “bigmanager” 博客,请务必保留此出处http://minux.blog.51cto.com/8994862/1745615
原文地址:http://minux.blog.51cto.com/8994862/1745615