#196 comment thread_cache_size recommandations

This commit is contained in:
root 2016-04-29 14:25:16 +02:00
parent bead8a77ef
commit f6f66a49ef

View file

@ -2665,31 +2665,29 @@ sub mysql_stats {
} }
# Thread cache # Thread cache
if ( $myvar{'thread_cache_size'} eq 0 ) { #if ( $myvar{'thread_cache_size'} eq 0 ) {
badprint "Thread cache is disabled"; # badprint "Thread cache is disabled";
push( @generalrec, "Set thread_cache_size to 4 as a starting value" ); # push( @generalrec, "Set thread_cache_size to 4 as a starting value" );
push( @adjvars, "thread_cache_size (start at 4)" ); # push( @adjvars, "thread_cache_size (start at 4)" );
} #} else {
else { # if ( $mycalc{'thread_cache_hit_rate'} <= 50 ) {
if ( $mycalc{'thread_cache_hit_rate'} <= 50 ) { # badprint
badprint # "Thread cache hit rate: $mycalc{'thread_cache_hit_rate'}% ("
"Thread cache hit rate: $mycalc{'thread_cache_hit_rate'}% (" # . hr_num( $mystat{'Threads_created'} )
. hr_num( $mystat{'Threads_created'} ) # . " created / "
. " created / " # . hr_num( $mystat{'Connections'} )
. hr_num( $mystat{'Connections'} ) # . " connections)";
. " connections)"; # push( @adjvars,
push( @adjvars, # "thread_cache_size (> $myvar{'thread_cache_size'})" );
"thread_cache_size (> $myvar{'thread_cache_size'})" ); # } else {
} # goodprint
else { # "Thread cache hit rate: $mycalc{'thread_cache_hit_rate'}% ("
goodprint # . hr_num( $mystat{'Threads_created'} )
"Thread cache hit rate: $mycalc{'thread_cache_hit_rate'}% (" # . " created / "
. hr_num( $mystat{'Threads_created'} ) # . hr_num( $mystat{'Connections'} )
. " created / " # . " connections)";
. hr_num( $mystat{'Connections'} ) # }
. " connections)"; #}
}
}
# Table cache # Table cache
my $table_cache_var = ""; my $table_cache_var = "";