pt-kill
重点注意: 这里的
重点注意2: ddl,dml,select,都是属于Command=Query
+
| Id | User | Host | db | Command | Time | State | Info |
+
| 3 | repl | xx.xxx.126.166:60528 | NULL | Binlog Dump GTID | 492777 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 4 | repl | xx.xxx.126.165:48604 | NULL | Binlog Dump GTID | 492765 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 502 | job_heartbeat | xx.xxx.2.217:34626 | heartbeat_db | Sleep | 0 | | NULL |
| 1053 | dbadmin | localhost | heartbeat_db | Query | 1 | altering table | alter table heartbeat add column ts2 date |
| 1055 | pt_kill | xx.xxx.126.166:63167 | NULL | Sleep | 1 | | NULL |
| 1056 | dbadmin | localhost | NULL | Query | 0 | starting | show processlist |
+
+
| Id | User | Host | db | Command | Time | State | Info |
+
| 3 | repl | xx.xxx.126.166:60528 | NULL | Binlog Dump GTID | 492716 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 4 | repl | xx.xxx.126.165:48604 | NULL | Binlog Dump GTID | 492704 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 502 | job_heartbeat | xx.xxx.2.217:34626 | heartbeat_db | Sleep | 0 | | NULL |
| 1053 | dbadmin | localhost | heartbeat_db | Query | 3 | updating | update heartbeat set ts = '2018-09-06 00:07:58' |
| 1055 | pt_kill | xx.xxx.126.166:63167 | NULL | Sleep | 0 | | NULL |
| 1056 | dbadmin | localhost | NULL | Query | 0 | starting | show processlist |
+
+
| Id | User | Host | db | Command | Time | State | Info |
+
| 3 | repl | xx.xxx.126.166:60528 | NULL | Binlog Dump GTID | 492613 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 4 | repl | xx.xxx.126.165:48604 | NULL | Binlog Dump GTID | 492601 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 502 | job_heartbeat | xx.xxx.2.217:34626 | heartbeat_db | Sleep | 0 | | NULL |
| 1053 | dbadmin | localhost | heartbeat_db | Query | 3 | User sleep | select 1,sleep(4) |
| 1055 | pt_kill | xx.xxx.126.166:63167 | NULL | Sleep | 1 | | NULL |
| 1056 | dbadmin | localhost | NULL | Query | 0 | starting | show processlist |
+
+
| Id | User | Host | db | Command | Time | State | Info |
+
| 3 | repl | xx.xxx.126.166:60528 | NULL | Binlog Dump GTID | 492740 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 4 | repl | xx.xxx.126.165:48604 | NULL | Binlog Dump GTID | 492728 | Master has sent all binlog to slave; waiting for more updates | NULL |
| 502 | job_heartbeat | xx.xxx.2.217:34626 | heartbeat_db | Sleep | 0 | | NULL |
| 1053 | dbadmin | localhost | heartbeat_db | Query | 4 | starting | rollback |
| 1055 | pt_kill | xx.xxx.126.166:63167 | NULL | Sleep | 0 | | NULL |
| 1056 | dbadmin | localhost | NULL | Query | 0 | starting | show processlist |
+