mysqlcopy 版本初步试验结果 (非skip, 采用的tcpcopy为 0.5以下的版本)

说明一下:

以下试验所采用的tcpcopy为 0.5以下的版本,仅供参考


从208远程发起大量mysql请求,命令如下:

[root@yz250-208 ~]# sysbench --debug=off --test=oltp --mysql-table-engine=innodb --oltp-test-mode=complex --oltp-table-size=10000 --mysql-socket=/tmp/mysql.sock --num-threads=20 --max-requests=0 --mysql-user=root --mysql-password=xxxxxxxx --mysql-host=123.58.176.148  run

[root@yz250-208 ~]# sysbench --debug=off --test=oltp --mysql-table-engine=innodb --oltp-test-mode=complex --oltp-table-size=10000 --mysql-socket=/tmp/mysql.sock --num-threads=20 --max-requests=0 --mysql-user=test --mysql-password=yyyyyy    --mysql-host=123.58.176.148  run


在线:

[root@bgp176-148 tmp]# ll access.log
-rw-rw---- 1 mysql mysql 1160590772 Feb 14 14:34 access.log


测试:

[root@bgp176_161 tmp]# ll access.log
-rw-rw---- 1 mysql mysql 1160696291 Feb 14 14:34 access.log

在线机器运行tcpcopy命令

[root@bgp176-148 tmp]# ps aux|grep tcpcopy
root     19627 12.9  3.2  81552 67448 pts/4    Sl   11:10  26:35 ./tcpcopy 123.58.176.148 3306 123.58.176.161 3306 -p root@xxxxxxxxx:test@yyyyyy

root     19904  0.0  0.0   4032   696 pts/4    S+   14:36   0:00 grep tcpcopy

测试机器运行interception

[root@bgp176_161 tmp]# ps aux|grep interception
root     10857  0.8  0.3  16724 13492 ?        S    Feb10  51:29 ./interception

root     13544  0.0  0.0  61192   732 pts/1    S+   14:36   0:00 grep interception


需要注意的地方就是,在线访问的时候,同时存在root用户和test用户,其中root用户走二次校验过程,test用户走一次校验过程。

测试机器配置的用户名和权限和在线一样。




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 9
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值