[轉]MySQL实时性能监控工具doDBA tools
http://www.ywnds.com/?p=7499
http://www.ywnds.com/?p=7499
https://mariadb.com/kb/en/mariadb/galera-cluster-status-variables/ http://www.ywnds.com/?p=6084 http://benjr.tw/95536 http://www.99cloud.net/html/2016/jiuzhouyuanchuang_0316/131.html SHOW GLOBAL STATUS LIKE ’wsrep_%’; (1)SHOW GLOBAL STATUS LIKE ’wsrep_cluster_state_uuid’; 集群中每个节点的值必须一致。 (2)SHOW GLOBAL STATUS LIKE ’wsrep_cluster_size’; 显示集群的规模,此例应该显示”2”。 (3)SHOW GLOBAL STATUS LIKE ’wsrep_cluster_status’; 显示”Primary”为正常。 (4)SHOW GLOBAL STATUS LIKE ’wsrep_ready’; 显示”ON”为正常。 (5) SHOW GLOBAL STATUS LIKE ’wsrep_connected’; 显示”ON”为正常。 (6) SHOW GLOBAL STATUS LIKE ’wsrep_local_state_comment’; 显示” Joined”为正常。
http://www.actionsky.com/docs/archives/171 http://www.slideshare.net/yejr/my-sql-20131020?ref=http://imysql.com/2013/11/19/mysql-benchmark-testing.shtml ========== apt-get install sysbench 建table、records sysbench –debug=on –test=oltp –db-driver=mysql –mysql-table-engine=innodb –oltp-table-size=1000000 –mysql-user=root –mysql-password=oooxxx –mysql-host=10.255.255.215 prepare 測試 sysbench –num-threads=16 –max-requests=100000 –debug=on –test=oltp –db-driver=mysql –mysql-table-engine=innodb –oltp-table-size=1000000 –mysql-user=root –mysql-password=oooxxx –mysql-host=10.255.255.215 run 清掉table、records sysbench –debug=on –test=oltp –db-driver=mysql –mysql-table-engine=innodb –oltp-table-size=1000000 –mysql-user=root –mysql-password=oooxxx –mysql-host=10.255.255.215 cleanup https://blog.gslin.org/archives/2015/09/13/5971/%E7%94%A8-sysbench-%E6%B8%AC%E8%A9%A6-mysql-%E6%95%88%E8%83%BD/ http://blog.xuite.net/misgarlic/weblogic/56170203-MySQL+benchmark+tool+-+sysbench http://hugnew.com/?p=737 ========== http://who0168.blog.51cto.com/253401/556300/ [root@localhost bin]# ./sysbench 测试用例: sysbench [general-options]… –test= [test-options]… command 通用选项: --num-threads=N 创建测试线程的数目。默认为1. --max-requests=N 请求的最大数目。默认为10000,0代表不限制。 --max-time=N 最大执行时间,单位是s。默认是0,不限制。 --forced-shutdown=STRING 超过max-time强制中断。默认是off。] --thread-stack-size=SIZE 每个线程的堆栈大小。默认是32K。 --init-rng=[on|off] 在测试开始时是否初始化随机数发生器。默认是off。 --test=STRING 指定测试项目名称。 --debug=[on|off] 是否显示更多的调试信息。默认是off。 --validate=[on|off] 在可能情况下执行验证检查。默认是off。 ...