测试TCPCOPY+MYSQL
来源:互联网 发布:mac os 使用教程 编辑:程序博客网 时间:2024/05/29 08:10
官方文档:感谢wangbin
https://github.com/session-replay-tools/mysql-replay-module
http://blog.csdn.net/wangbin579/article/details/8950282
项目需求需要安装tcpcopy在线copy流量,测试测试机mysql性能。
10.0.0.95 线上数据库
10.0.0.96测试数据库
10.0.0.97作为assistant server
搭建过程
10.0.0.97
Installation
Getting intercept installed on the assistant server
git clone git://github.com/session-replay-tools/intercept.git
cd intercept
./configure --with-resp-payload
make
make install
报错的话执行
yum -y install pcre
yum -y install libpcap*
安装完执行
/usr/local/intercept/sbin/intercept -i eth0 -F 'tcp and src port 3306' -d
10.0.0.95 线上数据库安装
Getting tcpcopy installed on the online server
git clone git://github.com/session-replay-tools/tcpcopy.git
cd tcpcopy
git clone git://github.com/session-replay-tools/mysql-replay-module.git
./configure --set-protocol-module=mysql-replay-module
make
make install
安装完执行
/usr/local/tcpcopy/sbin/tcpcopy -x 3306-10.0.0.96:3306 -s 10.0.0.97
10.0.0.96测试数据库
route add -host 客户端IP gw 10.0.0.97
关键所在
就可以在客户端IP 上访问10.0.0.95 线上数据库,然后访问数据包可以实时同步到10.0.0.96上,执行相同的操作。
10.0.0.95线上数据库的日志
[root@mc_a_db95 ~]# tailf /usr/local/tcpcopy/logs/error_tcpcopy.log
10.0.0.97assistant server上的日志
tailf /usr/local/intercept/logs/error_intercept.log
- 测试TCPCOPY+MYSQL
- 【测试环境】 测试TCPCOPY+MYSQL
- tcpcopy测试mysql的初步效果展示
- tcpcopy,mysql模拟在线压力测试的好帮手
- tcpcopy安装及其测试
- 测试工具tcpcopy
- tcpcopy压力测试
- 【测试环境】TCPCopy 使用方法
- 各位mysql大佬,有空帮我测试tcpcopy mysql功能吧
- 回归测试之利器---tcpcopy
- 使用tcpcopy做压力测试
- 【测试环境】tcpcopy架构漫谈
- tcpcopy
- tcpcopy
- tcpcopy
- tcpcopy
- tcpcopy
- tcpcopy
- 5个数组Array方法: indexOf、filter、forEach、map、reduce使用实例
- 开发者都应该使用的10个C++11特性
- Java static 静态方法 并发(是否线程安全)
- iphone模拟器安装app
- 华为2015年C++研发岗面经
- 测试TCPCOPY+MYSQL
- AutoCAD数据导入SuperMap后的投影定义与投影转换
- Mosquitto简要教程
- 在安卓系统上使用Google Analytics API V4
- 腾讯2015年测试开发岗面经
- Java String的常用方法
- Java流的深入理解
- 数据库导出sql到本地
- 具有高可用性的CloudFoundry架构