mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Change default trigger from Threads_connected:100 to Threads_running:30.
This commit is contained in:
10
bin/pt-stalk
10
bin/pt-stalk
@@ -15,10 +15,10 @@ fi
|
|||||||
# Configuration settings.
|
# Configuration settings.
|
||||||
# ########################################################################
|
# ########################################################################
|
||||||
# This is the max number of <whatever> we want to tolerate.
|
# This is the max number of <whatever> we want to tolerate.
|
||||||
THRESHOLD=${THRESHOLD:-100}
|
THRESHOLD=${THRESHOLD:-30}
|
||||||
|
|
||||||
# This is the thing to check for.
|
# This is the thing to check for.
|
||||||
VARIABLE=${VARIABLE:-Threads_connected}
|
VARIABLE=${VARIABLE:-Threads_running}
|
||||||
|
|
||||||
# How many times must the condition be met before the script will fire?
|
# How many times must the condition be met before the script will fire?
|
||||||
CYCLES=${CYCLES:-1}
|
CYCLES=${CYCLES:-1}
|
||||||
@@ -231,7 +231,7 @@ is too full.
|
|||||||
=back
|
=back
|
||||||
|
|
||||||
By default, the tool is configured to execute mysqladmin extended-status and
|
By default, the tool is configured to execute mysqladmin extended-status and
|
||||||
extract the value of the Threads_connected variable; if this is greater than
|
extract the value of the Threads_running variable; if this is greater than
|
||||||
100, it runs the collection script. This is really just placeholder code,
|
100, it runs the collection script. This is really just placeholder code,
|
||||||
and almost certainly needs to be customized!
|
and almost certainly needs to be customized!
|
||||||
|
|
||||||
@@ -265,11 +265,11 @@ or in the F<pt-stalk.conf> config file (see L<"CONFIGURING">).
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item THRESHOLD (default 100)
|
=item THRESHOLD (default 30)
|
||||||
|
|
||||||
This is the max number of <whatever> we want to tolerate.
|
This is the max number of <whatever> we want to tolerate.
|
||||||
|
|
||||||
=item VARIABLE (default Threads_connected}
|
=item VARIABLE (default Threads_running)
|
||||||
|
|
||||||
This is the thing to check for.
|
This is the thing to check for.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user