commit
75f4bc623a
5 changed files with 130 additions and 130 deletions
20
INTERNALS.md
20
INTERNALS.md
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
## MySQLTuner Server version checks
|
## MySQLTuner Server version checks
|
||||||
* EOL MySQL version check
|
* EOL MySQL version check
|
||||||
* Currently MySQL < 5.1 are EOF considerated.
|
* Currently MySQL < 5.1 are EOF considered.
|
||||||
* Using 5.5+ version of MySQL for performance issue (asynchronous IO).
|
* Using 5.5+ version of MySQL for performance issue (asynchronous IO).
|
||||||
|
|
||||||
## MySQL Storage engine general information
|
## MySQL Storage engine general information
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
* Query Cache Buffers
|
* Query Cache Buffers
|
||||||
* Query Cache DISABLED, ALL REQUEST or ON DEMAND
|
* Query Cache DISABLED, ALL REQUEST or ON DEMAND
|
||||||
* Query Cache Size
|
* Query Cache Size
|
||||||
* Query cache hit ratio (cache efficienty)
|
* Query cache hit ratio (cache efficiency)
|
||||||
|
|
||||||
## MySQLTuner memory checks
|
## MySQLTuner memory checks
|
||||||
|
|
||||||
|
@ -194,11 +194,11 @@
|
||||||
|
|
||||||
## MySQLTuner replication checks
|
## MySQLTuner replication checks
|
||||||
|
|
||||||
* Is server replication configuarted as slave ?
|
* Is server replication configured as slave ?
|
||||||
* SQL replacation thread running ?
|
* SQL replication thread running ?
|
||||||
* IO replacation thread running ?
|
* IO replication thread running ?
|
||||||
* Replication lag in seconds
|
* Replication lag in seconds
|
||||||
* Is Slave configuratedd in read only ?
|
* Is Slave configured in read only ?
|
||||||
|
|
||||||
## MySQLTuner InnoDB information
|
## MySQLTuner InnoDB information
|
||||||
|
|
||||||
|
@ -206,16 +206,16 @@
|
||||||
* If possible, innodb_buffer_pool_size should be greater data and index size for Innodb Table
|
* If possible, innodb_buffer_pool_size should be greater data and index size for Innodb Table
|
||||||
* Innodb_buffer_pool_size should around 75 to 80 % of the available system memory.
|
* Innodb_buffer_pool_size should around 75 to 80 % of the available system memory.
|
||||||
* InnoDB Buffer Pool Instances
|
* InnoDB Buffer Pool Instances
|
||||||
* MySQL needs 1 instanes per 1Go of Buffer Pool
|
* MySQL needs 1 instance per 1Go of Buffer Pool
|
||||||
* innodb_buffer_pool instances = round(innodb_buffer_pool_size / 1Go)
|
* innodb_buffer_pool instances = round(innodb_buffer_pool_size / 1Go)
|
||||||
* innodb_buffer_pool instances must be equals or lower than 64
|
* innodb_buffer_pool instances must be equals or lower than 64
|
||||||
* InnoDB Buffer Pool Usage
|
* InnoDB Buffer Pool Usage
|
||||||
* If more than 20% of InnoDB buffer pool is not used, MySQLTuner raise an alert.
|
* If more than 20% of InnoDB buffer pool is not used, MySQLTuner raise an alert.
|
||||||
* InnoDB Buffer Pool Log Size
|
* InnoDB Buffer Pool Log Size
|
||||||
* InnoDB total log file size should be 25% of innodb_buffer_pool_size
|
* InnoDB total log file size should be 25% of innodb_buffer_pool_size
|
||||||
* InnoDB Read effiency
|
* InnoDB Read efficiency
|
||||||
* Ratio of read without locks
|
* Ratio of read without locks
|
||||||
* InnoDB Write effiency
|
* InnoDB Write efficiency
|
||||||
* Ratio of write without locks
|
* Ratio of write without locks
|
||||||
* InnoDB Log Waits
|
* InnoDB Log Waits
|
||||||
* Checks that no lock is used on Innodb Log.
|
* Checks that no lock is used on Innodb Log.
|
||||||
|
@ -299,7 +299,7 @@
|
||||||
|
|
||||||
## MySQLTuner performance schema and sysschema information
|
## MySQLTuner performance schema and sysschema information
|
||||||
* Check that Performance schema is activated for 5.6+ version
|
* Check that Performance schema is activated for 5.6+ version
|
||||||
* Check that Performance schema is disactivated for 5.5- version
|
* Check that Performance schema is deactivated for 5.5- version
|
||||||
* Check that Sys schema is installed
|
* Check that Sys schema is installed
|
||||||
* sys Schema version
|
* sys Schema version
|
||||||
* Top user per connection
|
* Top user per connection
|
||||||
|
|
|
@ -144,7 +144,7 @@ Once you create it, make sure it's owned by your user and the mode on the file i
|
||||||
You could use mysql_config_editor utilities.
|
You could use mysql_config_editor utilities.
|
||||||
|
|
||||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||||
Enter passord: ********
|
Enter password: ********
|
||||||
$
|
$
|
||||||
|
|
||||||
After which, ~/.mylogin.cnf will be created with the appropriate access.
|
After which, ~/.mylogin.cnf will be created with the appropriate access.
|
||||||
|
|
2
USAGE.md
2
USAGE.md
|
@ -9,7 +9,7 @@ Allow MySQL server to run for at least 24-48 hours before trusting suggestions
|
||||||
Some routines may require root level privileges (script will provide warnings)
|
Some routines may require root level privileges (script will provide warnings)
|
||||||
You must provide the remote server's total memory when connecting to other servers
|
You must provide the remote server's total memory when connecting to other servers
|
||||||
|
|
||||||
# CONNECTION AND AUTHENTIFICATION
|
# CONNECTION AND AUTHENTICATION
|
||||||
|
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
--socket <socket> Use a different socket for a local connection
|
--socket <socket> Use a different socket for a local connection
|
||||||
|
|
|
@ -6,10 +6,10 @@ pod2markdown mysqltuner.pl >USAGE.md
|
||||||
echo "* TIDYFY SCRIPT"
|
echo "* TIDYFY SCRIPT"
|
||||||
perltidy -b mysqltuner.pl
|
perltidy -b mysqltuner.pl
|
||||||
)
|
)
|
||||||
echo "* Udate CVE list"
|
echo "* Update CVE list"
|
||||||
perl updateCVElist.pl
|
perl updateCVElist.pl
|
||||||
|
|
||||||
git add ../vulnerabilities.csv ../mysqltuner.pl ./USAGE.md
|
git add ../vulnerabilities.csv ../mysqltuner.pl ./USAGE.md
|
||||||
git commit -m 'Update Vulnerabilities list
|
git commit -m 'Update Vulnerabilities list
|
||||||
Identing mysqltuner
|
Indenting mysqltuner
|
||||||
Update Usage information'
|
Update Usage information'
|
232
mysqltuner.pl
232
mysqltuner.pl
|
@ -128,7 +128,7 @@ GetOptions(
|
||||||
-sections => [
|
-sections => [
|
||||||
"NAME",
|
"NAME",
|
||||||
"IMPORTANT USAGE GUIDELINES",
|
"IMPORTANT USAGE GUIDELINES",
|
||||||
"CONNECTION AND AUTHENTIFICATION",
|
"CONNECTION AND AUTHENTICATION",
|
||||||
"PERFORMANCE AND REPORTING OPTIONS",
|
"PERFORMANCE AND REPORTING OPTIONS",
|
||||||
"OUTPUT OPTIONS"
|
"OUTPUT OPTIONS"
|
||||||
]
|
]
|
||||||
|
@ -141,7 +141,7 @@ if ( defined $opt{'help'} && $opt{'help'} == 1 ) {
|
||||||
-sections => [
|
-sections => [
|
||||||
"NAME",
|
"NAME",
|
||||||
"IMPORTANT USAGE GUIDELINES",
|
"IMPORTANT USAGE GUIDELINES",
|
||||||
"CONNECTION AND AUTHENTIFICATION",
|
"CONNECTION AND AUTHENTICATION",
|
||||||
"PERFORMANCE AND REPORTING OPTIONS",
|
"PERFORMANCE AND REPORTING OPTIONS",
|
||||||
"OUTPUT OPTIONS"
|
"OUTPUT OPTIONS"
|
||||||
]
|
]
|
||||||
|
@ -1169,7 +1169,7 @@ sub get_log_file_real_path {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub log_file_recommandations {
|
sub log_file_recommendations {
|
||||||
$myvar{'log_error'} =
|
$myvar{'log_error'} =
|
||||||
get_log_file_real_path( $myvar{'log_error'}, $myvar{'hostname'},
|
get_log_file_real_path( $myvar{'log_error'}, $myvar{'hostname'},
|
||||||
$myvar{'datadir'} );
|
$myvar{'datadir'} );
|
||||||
|
@ -1372,10 +1372,10 @@ sub get_other_process_memory {
|
||||||
sub get_os_release {
|
sub get_os_release {
|
||||||
if ( -f "/etc/lsb-release" ) {
|
if ( -f "/etc/lsb-release" ) {
|
||||||
my @info_release = get_file_contents "/etc/lsb-release";
|
my @info_release = get_file_contents "/etc/lsb-release";
|
||||||
my $os_relase = $info_release[3];
|
my $os_release = $info_release[3];
|
||||||
$os_relase =~ s/.*="//;
|
$os_release =~ s/.*="//;
|
||||||
$os_relase =~ s/"$//;
|
$os_release =~ s/"$//;
|
||||||
return $os_relase;
|
return $os_release;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( -f "/etc/system-release" ) {
|
if ( -f "/etc/system-release" ) {
|
||||||
|
@ -1385,17 +1385,17 @@ sub get_os_release {
|
||||||
|
|
||||||
if ( -f "/etc/os-release" ) {
|
if ( -f "/etc/os-release" ) {
|
||||||
my @info_release = get_file_contents "/etc/os-release";
|
my @info_release = get_file_contents "/etc/os-release";
|
||||||
my $os_relase = $info_release[0];
|
my $os_release = $info_release[0];
|
||||||
$os_relase =~ s/.*="//;
|
$os_release =~ s/.*="//;
|
||||||
$os_relase =~ s/"$//;
|
$os_release =~ s/"$//;
|
||||||
return $os_relase;
|
return $os_release;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( -f "/etc/issue" ) {
|
if ( -f "/etc/issue" ) {
|
||||||
my @info_release = get_file_contents "/etc/issue";
|
my @info_release = get_file_contents "/etc/issue";
|
||||||
my $os_relase = $info_release[0];
|
my $os_release = $info_release[0];
|
||||||
$os_relase =~ s/\s+\\n.*//;
|
$os_release =~ s/\s+\\n.*//;
|
||||||
return $os_relase;
|
return $os_release;
|
||||||
}
|
}
|
||||||
return "Unknown OS release";
|
return "Unknown OS release";
|
||||||
}
|
}
|
||||||
|
@ -2574,7 +2574,7 @@ sub calculations {
|
||||||
$myvar{'innodb_buffer_pool_size'} );
|
$myvar{'innodb_buffer_pool_size'} );
|
||||||
}
|
}
|
||||||
|
|
||||||
# InnoDB Buffer pool read cache effiency
|
# InnoDB Buffer pool read cache efficiency
|
||||||
(
|
(
|
||||||
$mystat{'Innodb_buffer_pool_read_requests'},
|
$mystat{'Innodb_buffer_pool_read_requests'},
|
||||||
$mystat{'Innodb_buffer_pool_reads'}
|
$mystat{'Innodb_buffer_pool_reads'}
|
||||||
|
@ -2594,7 +2594,7 @@ sub calculations {
|
||||||
debugprint "Innodb_buffer_pool_read_requests: "
|
debugprint "Innodb_buffer_pool_read_requests: "
|
||||||
. $mystat{'Innodb_buffer_pool_read_requests'} . "";
|
. $mystat{'Innodb_buffer_pool_read_requests'} . "";
|
||||||
|
|
||||||
# InnoDB log write cache effiency
|
# InnoDB log write cache efficiency
|
||||||
( $mystat{'Innodb_log_write_requests'}, $mystat{'Innodb_log_writes'} ) =
|
( $mystat{'Innodb_log_write_requests'}, $mystat{'Innodb_log_writes'} ) =
|
||||||
( 1, 1 )
|
( 1, 1 )
|
||||||
unless defined $mystat{'Innodb_log_writes'};
|
unless defined $mystat{'Innodb_log_writes'};
|
||||||
|
@ -3412,7 +3412,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery conn(s)";
|
infoprint " +-- $nbL: $lQuery conn(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per statement
|
# Top user per statement
|
||||||
|
@ -3427,7 +3427,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery stmt(s)";
|
infoprint " +-- $nbL: $lQuery stmt(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per statement latency
|
# Top user per statement latency
|
||||||
|
@ -3442,7 +3442,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per lock latency
|
# Top user per lock latency
|
||||||
|
@ -3457,7 +3457,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per full scans
|
# Top user per full scans
|
||||||
|
@ -3472,7 +3472,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per row_sent
|
# Top user per row_sent
|
||||||
|
@ -3487,7 +3487,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per row modified
|
# Top user per row modified
|
||||||
|
@ -3502,7 +3502,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per io
|
# Top user per io
|
||||||
|
@ -3517,7 +3517,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top user per io latency
|
# Top user per io latency
|
||||||
|
@ -3532,7 +3532,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per connection
|
# Top host per connection
|
||||||
|
@ -3547,7 +3547,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery conn(s)";
|
infoprint " +-- $nbL: $lQuery conn(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per statement
|
# Top host per statement
|
||||||
|
@ -3562,7 +3562,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery stmt(s)";
|
infoprint " +-- $nbL: $lQuery stmt(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per statement latency
|
# Top host per statement latency
|
||||||
|
@ -3577,7 +3577,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per lock latency
|
# Top host per lock latency
|
||||||
|
@ -3592,7 +3592,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per full scans
|
# Top host per full scans
|
||||||
|
@ -3607,7 +3607,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per rows sent
|
# Top host per rows sent
|
||||||
|
@ -3622,7 +3622,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per rows modified
|
# Top host per rows modified
|
||||||
|
@ -3637,7 +3637,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per io
|
# Top host per io
|
||||||
|
@ -3652,7 +3652,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top 5 host per io latency
|
# Top 5 host per io latency
|
||||||
|
@ -3667,7 +3667,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top IO type order by total io
|
# Top IO type order by total io
|
||||||
|
@ -3682,7 +3682,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery i/o";
|
infoprint " +-- $nbL: $lQuery i/o";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top IO type order by total latency
|
# Top IO type order by total latency
|
||||||
|
@ -3697,7 +3697,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top IO type order by max latency
|
# Top IO type order by max latency
|
||||||
|
@ -3712,7 +3712,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top Stages order by total io
|
# Top Stages order by total io
|
||||||
|
@ -3727,7 +3727,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery i/o";
|
infoprint " +-- $nbL: $lQuery i/o";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top Stages order by total latency
|
# Top Stages order by total latency
|
||||||
|
@ -3742,7 +3742,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top Stages order by avg latency
|
# Top Stages order by avg latency
|
||||||
|
@ -3757,7 +3757,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top host per table scans
|
# Top host per table scans
|
||||||
|
@ -3772,7 +3772,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# InnoDB Buffer Pool by schema
|
# InnoDB Buffer Pool by schema
|
||||||
|
@ -3787,7 +3787,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery page(s)";
|
infoprint " +-- $nbL: $lQuery page(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# InnoDB Buffer Pool by table
|
# InnoDB Buffer Pool by table
|
||||||
|
@ -3802,7 +3802,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery page(s)";
|
infoprint " +-- $nbL: $lQuery page(s)";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Process per allocated memory
|
# Process per allocated memory
|
||||||
|
@ -3817,7 +3817,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# InnoDB Lock Waits
|
# InnoDB Lock Waits
|
||||||
|
@ -3832,7 +3832,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Threads IO Latency
|
# Threads IO Latency
|
||||||
|
@ -3847,7 +3847,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# High Cost SQL statements
|
# High Cost SQL statements
|
||||||
|
@ -3862,7 +3862,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top 5% slower queries
|
# Top 5% slower queries
|
||||||
|
@ -3877,7 +3877,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery s";
|
infoprint " +-- $nbL: $lQuery s";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top 10 nb statement type
|
# Top 10 nb statement type
|
||||||
|
@ -3892,7 +3892,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top statement by total latency
|
# Top statement by total latency
|
||||||
|
@ -3907,7 +3907,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top statement by lock latency
|
# Top statement by lock latency
|
||||||
|
@ -3922,7 +3922,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top statement by full scans
|
# Top statement by full scans
|
||||||
|
@ -3937,7 +3937,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top statement by rows sent
|
# Top statement by rows sent
|
||||||
|
@ -3952,7 +3952,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Top statement by rows modified
|
# Top statement by rows modified
|
||||||
|
@ -3967,7 +3967,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Use temporary tables
|
# Use temporary tables
|
||||||
|
@ -3982,7 +3982,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Unused Indexes
|
# Unused Indexes
|
||||||
|
@ -3992,7 +3992,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Full table scans
|
# Full table scans
|
||||||
|
@ -4007,7 +4007,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Latest file IO by latency
|
# Latest file IO by latency
|
||||||
|
@ -4022,7 +4022,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# FILE by IO read bytes
|
# FILE by IO read bytes
|
||||||
|
@ -4037,7 +4037,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# FILE by IO written bytes
|
# FILE by IO written bytes
|
||||||
|
@ -4052,7 +4052,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# file per IO total latency
|
# file per IO total latency
|
||||||
|
@ -4067,7 +4067,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# file per IO read latency
|
# file per IO read latency
|
||||||
|
@ -4082,7 +4082,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# file per IO write latency
|
# file per IO write latency
|
||||||
|
@ -4097,7 +4097,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Event Wait by read bytes
|
# Event Wait by read bytes
|
||||||
|
@ -4112,7 +4112,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Event Wait by write bytes
|
# Event Wait by write bytes
|
||||||
|
@ -4127,7 +4127,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# event per wait total latency
|
# event per wait total latency
|
||||||
|
@ -4142,7 +4142,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# event per wait read latency
|
# event per wait read latency
|
||||||
|
@ -4157,7 +4157,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# event per wait write latency
|
# event per wait write latency
|
||||||
|
@ -4172,7 +4172,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
#schema_index_statistics
|
#schema_index_statistics
|
||||||
|
@ -4188,7 +4188,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 most used index
|
# TOP 15 most used index
|
||||||
|
@ -4203,7 +4203,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high read latency index
|
# TOP 15 high read latency index
|
||||||
|
@ -4218,7 +4218,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high insert latency index
|
# TOP 15 high insert latency index
|
||||||
|
@ -4233,7 +4233,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high update latency index
|
# TOP 15 high update latency index
|
||||||
|
@ -4248,7 +4248,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high delete latency index
|
# TOP 15 high delete latency index
|
||||||
|
@ -4263,7 +4263,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 most read tables
|
# TOP 15 most read tables
|
||||||
|
@ -4278,7 +4278,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 most used tables
|
# TOP 15 most used tables
|
||||||
|
@ -4293,7 +4293,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high read latency tables
|
# TOP 15 high read latency tables
|
||||||
|
@ -4308,7 +4308,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high insert latency tables
|
# TOP 15 high insert latency tables
|
||||||
|
@ -4323,7 +4323,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high update latency tables
|
# TOP 15 high update latency tables
|
||||||
|
@ -4338,7 +4338,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# TOP 15 high delete latency tables
|
# TOP 15 high delete latency tables
|
||||||
|
@ -4353,7 +4353,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
# Redundant indexes
|
# Redundant indexes
|
||||||
|
@ -4365,7 +4365,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Tables not using InnoDB buffer";
|
subheaderprint "Performance schema: Tables not using InnoDB buffer";
|
||||||
|
@ -4379,7 +4379,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Table not using InnoDB buffer";
|
subheaderprint "Performance schema: Table not using InnoDB buffer";
|
||||||
|
@ -4393,7 +4393,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
subheaderprint "Performance schema: Table not using InnoDB buffer";
|
subheaderprint "Performance schema: Table not using InnoDB buffer";
|
||||||
$nbL = 1;
|
$nbL = 1;
|
||||||
|
@ -4406,7 +4406,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Top 15 Tables using InnoDB buffer";
|
subheaderprint "Performance schema: Top 15 Tables using InnoDB buffer";
|
||||||
|
@ -4420,7 +4420,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Top 15 Tables with InnoDB buffer free";
|
subheaderprint "Performance schema: Top 15 Tables with InnoDB buffer free";
|
||||||
|
@ -4434,7 +4434,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Top 15 Most executed queries";
|
subheaderprint "Performance schema: Top 15 Most executed queries";
|
||||||
|
@ -4448,7 +4448,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4463,7 +4463,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Top 20 queries with full table scans";
|
subheaderprint "Performance schema: Top 20 queries with full table scans";
|
||||||
|
@ -4477,7 +4477,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Last 50 queries with full table scans";
|
subheaderprint "Performance schema: Last 50 queries with full table scans";
|
||||||
|
@ -4491,7 +4491,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 reader queries (95% percentile)";
|
subheaderprint "Performance schema: TOP 15 reader queries (95% percentile)";
|
||||||
|
@ -4505,7 +4505,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4520,7 +4520,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4535,7 +4535,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4550,7 +4550,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4565,7 +4565,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Top 20 queries with sort";
|
subheaderprint "Performance schema: Top 20 queries with sort";
|
||||||
|
@ -4579,7 +4579,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Last 50 queries with sort";
|
subheaderprint "Performance schema: Last 50 queries with sort";
|
||||||
|
@ -4593,7 +4593,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 row sorting queries with sort";
|
subheaderprint "Performance schema: TOP 15 row sorting queries with sort";
|
||||||
|
@ -4607,7 +4607,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 total latency queries with sort";
|
subheaderprint "Performance schema: TOP 15 total latency queries with sort";
|
||||||
|
@ -4621,7 +4621,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 merge queries with sort";
|
subheaderprint "Performance schema: TOP 15 merge queries with sort";
|
||||||
|
@ -4635,7 +4635,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4650,7 +4650,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 scans queries with sort";
|
subheaderprint "Performance schema: TOP 15 scans queries with sort";
|
||||||
|
@ -4664,7 +4664,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 range queries with sort";
|
subheaderprint "Performance schema: TOP 15 range queries with sort";
|
||||||
|
@ -4678,7 +4678,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
@ -4714,7 +4714,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: Last 50 queries with temp table";
|
subheaderprint "Performance schema: Last 50 queries with temp table";
|
||||||
|
@ -4728,7 +4728,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint
|
subheaderprint
|
||||||
|
@ -4743,7 +4743,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 queries with temp table to disk";
|
subheaderprint "Performance schema: TOP 15 queries with temp table to disk";
|
||||||
|
@ -4757,7 +4757,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
@ -4784,7 +4784,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 30 events by number";
|
subheaderprint "Performance schema: TOP 30 events by number";
|
||||||
|
@ -4798,7 +4798,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 class events by total latency";
|
subheaderprint "Performance schema: TOP 15 class events by total latency";
|
||||||
|
@ -4812,7 +4812,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 30 events by total latency";
|
subheaderprint "Performance schema: TOP 30 events by total latency";
|
||||||
|
@ -4826,7 +4826,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 15 class events by max latency";
|
subheaderprint "Performance schema: TOP 15 class events by max latency";
|
||||||
|
@ -4840,7 +4840,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
subheaderprint "Performance schema: TOP 30 events by max latency";
|
subheaderprint "Performance schema: TOP 30 events by max latency";
|
||||||
|
@ -4854,7 +4854,7 @@ sub mysqsl_pfs {
|
||||||
infoprint " +-- $nbL: $lQuery";
|
infoprint " +-- $nbL: $lQuery";
|
||||||
$nbL++;
|
$nbL++;
|
||||||
}
|
}
|
||||||
infoprint "No information found or indicators desactivated."
|
infoprint "No information found or indicators deactivated."
|
||||||
if ( $nbL == 1 );
|
if ( $nbL == 1 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5565,7 +5565,7 @@ sub mysql_innodb {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# InnoDB Read efficency
|
# InnoDB Read efficiency
|
||||||
if ( defined $mycalc{'pct_read_efficiency'}
|
if ( defined $mycalc{'pct_read_efficiency'}
|
||||||
&& $mycalc{'pct_read_efficiency'} < 90 )
|
&& $mycalc{'pct_read_efficiency'} < 90 )
|
||||||
{
|
{
|
||||||
|
@ -6134,7 +6134,7 @@ validate_mysql_version; # Check current MySQL version
|
||||||
|
|
||||||
check_architecture; # Suggest 64-bit upgrade
|
check_architecture; # Suggest 64-bit upgrade
|
||||||
system_recommendations; # avoid to many service on the same host
|
system_recommendations; # avoid to many service on the same host
|
||||||
log_file_recommandations; # check log file content
|
log_file_recommendations; # check log file content
|
||||||
check_storage_engines; # Show enabled storage engines
|
check_storage_engines; # Show enabled storage engines
|
||||||
mysql_databases; # Show informations about databases
|
mysql_databases; # Show informations about databases
|
||||||
mysql_tables; # Show informations about table column
|
mysql_tables; # Show informations about table column
|
||||||
|
@ -6182,7 +6182,7 @@ Allow MySQL server to run for at least 24-48 hours before trusting suggestions
|
||||||
Some routines may require root level privileges (script will provide warnings)
|
Some routines may require root level privileges (script will provide warnings)
|
||||||
You must provide the remote server's total memory when connecting to other servers
|
You must provide the remote server's total memory when connecting to other servers
|
||||||
|
|
||||||
=head1 CONNECTION AND AUTHENTIFICATION
|
=head1 CONNECTION AND AUTHENTICATION
|
||||||
|
|
||||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||||
--socket <socket> Use a different socket for a local connection
|
--socket <socket> Use a different socket for a local connection
|
||||||
|
|
Loading…
Reference in a new issue