
./oltp_read_write.lua --mysql-port=3306 --mysql-user=xxx --mysql-password=xxx --mysql-db=xxx --tables=4 --table_size=100000 --threads=128 prepare
./oltp_read_write.lua --mysql-port=3306 --mysql-user=xxx --mysql-password=xxx --mysql-db=xxx --tables=4 --table_size=100000 --threads=128 --report-interval=3 --time=60 run
./oltp_read_write.lua --mysql-port=3306 --mysql-user=xxx --mysql-password=xxx --mysql-db=xxx --tables=4 --table_size=100000 --threads=128 cleanup
该篇博客展示了如何使用oltp_read_write.lua脚本来进行MySQL数据库的在线事务处理(OLTP)性能测试。测试参数包括数据库端口、用户名、密码、数据库名、表数量、表大小以及并发线程数,并设置了报告间隔和运行时间。测试过程包括准备、运行和清理阶段,旨在评估和优化MySQL的高并发读写性能。
1383

被折叠的 条评论
为什么被折叠?



