免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2146 | 回复: 5
打印 上一主题 下一主题

[Linux资讯] centos +mysql+heartbeat 双机互备。出现VIP访问3306时一次可以,下一次就会超时 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-05-02 10:54 |只看该作者 |倒序浏览
centos +mysql+heartbeat 双机互备。出现VIP访问3306时一次可以,下一次就会超时。但是通过VIP访问22端口,却不会出现这种情况。日志出没出现什么报错提示。防火墙是关的。我的配置文件是以下:
cat haresources
mysqlb IPaddr::172.16.1.150 ipvsadm

cat authkeys
auth 1
1 crc

cat ha.cf
logfile /var/log/ha_log/ha-log.log
bcast eth0
keepalive 2   
warntime 10
deadtime 30
initdead 120
hopfudge 1
udpport 694
auto_failback on
node mysqlb
node eeepay.cn
ping 172.16.1.1
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=root uid=root
debugfile /var/log/ha_log/ha-debug.log

/etc/init.d/ipvsadm status
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddressort Scheduler Flags
  -> RemoteAddressort           Forward Weight ActiveConn InActConn
TCP  172.16.1.150:3306 rr
  -> 172.16.1.102:3306            Local   1      0          0         
  -> 172.16.1.101:3306            Masq    1      0          0      

就是会出现这样情况:
telnet 172.16.1.150 3306
Trying 172.16.1.150...
telnet: connect to address 172.16.1.150: Connection timed out

telnet 172.16.1.150 3306
Trying 172.16.1.150...
Connected to 172.16.1.150.
Escape character is '^]'.
8
5.0.95-logBM<#95<p,
是啥原因呢????????????

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
2 [报告]
发表于 2013-05-02 13:29 |只看该作者
tcpdump 看一下,在vip server上。

论坛徽章:
0
3 [报告]
发表于 2013-05-02 15:10 |只看该作者
抓什么样的包呢?

论坛徽章:
0
4 [报告]
发表于 2013-05-02 15:20 |只看该作者
15:20:33.785499 IP 172.16.254.244.comcam > 172.16.1.150.mysql: Flags [S], seq 4069450236, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0
15:20:36.769720 IP 172.16.254.244.comcam > 172.16.1.150.mysql: Flags [S], seq 4069450236, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0
15:20:42.701489 IP 172.16.254.244.comcam > 172.16.1.150.mysql: Flags [S], seq 4069450236, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0
当出现这样时,就会telnet不上。

论坛徽章:
0
5 [报告]
发表于 2013-05-02 15:21 |只看该作者
15:22:49.739709 IP 172.16.254.244.mentaserver > 172.16.1.150.mysql: Flags [S], seq 2012198784, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0
15:22:52.763696 IP 172.16.254.244.mentaserver > 172.16.1.150.mysql: Flags [S], seq 2012198784, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0
15:22:58.699307 IP 172.16.254.244.mentaserver > 172.16.1.150.mysql: Flags [S], seq 2012198784, win 16384, options [mss 1360,nop,wscale 0,nop,nop,sackOK], length 0

这样也不行

论坛徽章:
0
6 [报告]
发表于 2013-05-03 11:37 |只看该作者
有高人帮忙看下是啥原因吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP