|
1 | 1 | #!/usr/bin/env perl |
2 | | -# mysqltuner.pl - Version 1.9.5 |
| 2 | +# mysqltuner.pl - Version 1.9.6 |
3 | 3 | # High Performance MySQL Tuning Script |
4 | 4 | # Copyright (C) 2006-2022 Major Hayden - major@mhtx.net |
5 | 5 | # Copyright (C) 2006-2022 Jean-Marie Renouard - jmrenouard@gmail.com |
@@ -57,7 +57,7 @@ package main; |
57 | 57 | #use Env; |
58 | 58 |
|
59 | 59 | # Set up a few variables for use in the script |
60 | | -my $tunerversion = "1.9.5"; |
| 60 | +my $tunerversion = "1.9.6"; |
61 | 61 | my ( @adjvars, @generalrec ); |
62 | 62 |
|
63 | 63 | # Set defaults |
@@ -3164,12 +3164,18 @@ sub mysql_stats { |
3164 | 3164 | infoprint |
3165 | 3165 | "Skipped name resolution test due to missing skip_name_resolve in system variables."; |
3166 | 3166 | } |
| 3167 | + elsif ( -r "/etc/psa/.psa.shadow" and $result{'Variables'}{'skip_name_resolve'} eq 'OFF') { |
| 3168 | + infoprint "CPanel and Flex system skip-name-resolve should be on"; |
| 3169 | + push (@generalrec, "cPanal and skip-name-resolve: https://support.cpanel.net/hc/en-us/articles/360052752094"); |
| 3170 | + push (@adjvars, "skip-name-resolve=0"); |
| 3171 | + } |
3167 | 3172 | elsif ( $result{'Variables'}{'skip_name_resolve'} eq 'OFF' ) { |
3168 | 3173 | badprint |
3169 | 3174 | "name resolution is active : a reverse name resolution is made for each new connection and can reduce performance"; |
3170 | 3175 | push( @generalrec, |
3171 | 3176 | "Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1" |
3172 | 3177 | ); |
| 3178 | + push (@adjvars, "skip-name-resolve=1"); |
3173 | 3179 | } |
3174 | 3180 |
|
3175 | 3181 | # Query cache |
@@ -6860,7 +6866,7 @@ sub which { |
6860 | 6866 |
|
6861 | 6867 | =head1 NAME |
6862 | 6868 |
|
6863 | | - MySQLTuner 1.9.5 - MySQL High Performance Tuning Script |
| 6869 | + MySQLTuner 1.9.6 - MySQL High Performance Tuning Script |
6864 | 6870 |
|
6865 | 6871 | =head1 IMPORTANT USAGE GUIDELINES |
6866 | 6872 |
|
|
0 commit comments