mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-20 01:06:35 +08:00
PT-1492 Update doc for pt-kill
This commit is contained in:
+13
-1
@@ -3543,7 +3543,7 @@ sub find {
|
||||
PTDEBUG && _d('Checking query', Dumper($query));
|
||||
my $matched = 0;
|
||||
|
||||
if ( !$find_spec{replication_threads}
|
||||
if ( !$find_spec{replication_threads}
|
||||
&& $ms->is_replication_thread($query) ) {
|
||||
PTDEBUG && _d('Skipping replication thread');
|
||||
next QUERY;
|
||||
@@ -7604,6 +7604,18 @@ from all classes. The C<Actions> options specify which actions will be
|
||||
taken. At this step, there are no more classes, just a single list of
|
||||
queries to kill, print, etc.
|
||||
|
||||
pt-kill will kill all the queries matching ANY of the specified criteria (logical OR).
|
||||
For example, using:
|
||||
|
||||
--busy-time 114 --match-command 'Query|Execute'
|
||||
|
||||
will kill all queries having busy-time > 114 C<OR> where the command is C<Query> or C<Execute>
|
||||
|
||||
If you want to kill only the queries where C<busy-time > 114> C<AND> the command is Query or
|
||||
Execute, you need to use L<"--kill-busy-commands>:
|
||||
|
||||
--busy-time 114 --kill-busy-commands 'Query|Execute'
|
||||
|
||||
=head1 OUTPUT
|
||||
|
||||
If only L<"--kill"> is given, then there is no output. If only
|
||||
|
||||
Reference in New Issue
Block a user