Merge pull request #216 from jfcoz/skip-name-resolve
add skip-name-resolve recommendation
This commit is contained in:
commit
cf1f794a70
1 changed files with 8 additions and 0 deletions
|
@ -2501,6 +2501,14 @@ sub mysql_stats {
|
|||
"Aborted connections: $mycalc{'pct_connections_aborted'}% ($mystat{'Aborted_connects'}/$mystat{'Connections'})";
|
||||
}
|
||||
|
||||
# name resolution
|
||||
if ($result{'Variables'}{'skip_name_resolve'} eq 'OFF') {
|
||||
badprint
|
||||
"name resolution is active : a reverse name resolution is made for each new connection and can reduce performance";
|
||||
push( @generalrec,
|
||||
"Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1" );
|
||||
}
|
||||
|
||||
# Query cache
|
||||
if ( !mysql_version_ge(4) ) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue