MySQL Performance doctor: OrzDBA bitsCN.com
MySQL Performance doctor: OrzDBA
[Root @ even ~] # Svn co http://code.taobao.org/svn/orzdba/trunk
A trunk/orzdba_rt_depend_perl_module.tar.gz
A trunk/orzdba
A trunk/orzdbatool usage instructions
Obtain version 4.
[Root @ even trunk] # chmod + x orzdba
MySQL verification information, such as username, password, host, port, and sock, needs to be configured around Line 3 of the code.
(I) view MySQL response time (rt)
Install tcprstat first
# Wget http://github.com/downloads/Lowercases/tcprstat/tcprstat-static.v0.3.1.x86_64
# Ln-sf/root/tcprstat-static.v0.3.1.x86_64/usr/bin/tcprstat
Add/usr/bin/tcprstat to the default read location around Line 1 of the source code.
Decompress orzdba_rt_depend_perl_module.tar.gz and install the perl module on which rt depends.
[Root @ localhost trunk] #./orzdba-lazy-rt-S/home/mysql55/mysql. sock
Note:
Count: number of requests processed during this interval
Avg: average response time for all completed requests within this interval
95_avg: the average response time of 95% of requests within this interval. the unit is subtle. this value can reflect the average query response time of the MySQL Server.
(Ii) monitor various InnoDB indicators
[Root @ localhost trunk] #./orzdba-innodb-S/home/mysql55/mysql. sock
(Iii) monitor MySQL Server performance
[Root @ localhost trunk] #./orzdba-mysql-S/home/mysql55/mysql. sock
BitsCN.com