Version 1.8.0: Support MariaDB 10.6 Update needed for MariaDB 10.6 #557

This commit is contained in:
Jean-Marie Renouard 2021-07-13 18:56:52 +02:00
parent dde94aa343
commit 78d8f3ed85

View file

@ -1,5 +1,5 @@
#!/usr/bin/env perl #!/usr/bin/env perl
# mysqltuner.pl - Version 1.7.29 # mysqltuner.pl - Version 1.8.0
# High Performance MySQL Tuning Script # High Performance MySQL Tuning Script
# Copyright (C) 2006-2021 Major Hayden - major@mhtx.net # Copyright (C) 2006-2021 Major Hayden - major@mhtx.net
# #
@ -56,7 +56,7 @@ $Data::Dumper::Pair = " : ";
#use Env; #use Env;
# Set up a few variables for use in the script # Set up a few variables for use in the script
my $tunerversion = "1.7.29"; my $tunerversion = "1.8.0";
my ( @adjvars, @generalrec ); my ( @adjvars, @generalrec );
# Set defaults # Set defaults
@ -1669,17 +1669,18 @@ sub get_kernel_info {
infoprint "TCP slot entries is > 100."; infoprint "TCP slot entries is > 100.";
} }
if ( `sysctl -n fs.aio-max-nr` < 1000000 ) { if ( -f "/proc/sys/fs/aio-max-nr" )
badprint {
"Max running total of the number of events is < 1M, please consider having a value greater than 1M"; if ( `sysctl -n fs.aio-max-nr` < 1000000 ) {
push @generalrec, "setup Max running number events greater than 1M"; badprint
push @adjvars, "Max running total of the number of events is < 1M, please consider having a value greater than 1M";
'fs.aio-max-nr > 1M (echo 1048576 > /proc/sys/fs/aio-max-nr)'; push @generalrec, "setup Max running number events greater than 1M";
} push @adjvars,
else { 'fs.aio-max-nr > 1M (echo 1048576 > /proc/sys/fs/aio-max-nr)';
infoprint "Max Number of AIO events is > 1M."; } else {
} infoprint "Max Number of AIO events is > 1M.";
}
}
} }
sub get_system_info { sub get_system_info {
@ -2102,7 +2103,8 @@ sub validate_mysql_version {
or mysql_version_eq( 10, 2 ) or mysql_version_eq( 10, 2 )
or mysql_version_eq( 10, 3 ) or mysql_version_eq( 10, 3 )
or mysql_version_eq( 10, 4 ) or mysql_version_eq( 10, 4 )
or mysql_version_eq( 10, 5 ) ) or mysql_version_eq( 10, 5 )
or mysql_version_eq( 10, 6 ) )
{ {
goodprint "Currently running supported MySQL version " goodprint "Currently running supported MySQL version "
. $myvar{'version'} . ""; . $myvar{'version'} . "";
@ -2809,6 +2811,8 @@ sub calculations {
} }
# InnoDB # InnoDB
$myvar{'innodb_log_files_in_group'} = 1 unless defined($myvar{'innodb_log_files_in_group'});
$myvar{"innodb_buffer_pool_instances"} = 1 unless defined($myvar{'innodb_buffer_pool_instances'});
if ( $myvar{'have_innodb'} eq "YES" ) { if ( $myvar{'have_innodb'} eq "YES" ) {
$mycalc{'innodb_log_size_pct'} = $mycalc{'innodb_log_size_pct'} =
( $myvar{'innodb_log_file_size'} * ( $myvar{'innodb_log_file_size'} *
@ -6561,7 +6565,7 @@ __END__
=head1 NAME =head1 NAME
MySQLTuner 1.7.29 - MySQL High Performance Tuning Script MySQLTuner 1.8.0 - MySQL High Performance Tuning Script
=head1 IMPORTANT USAGE GUIDELINES =head1 IMPORTANT USAGE GUIDELINES