diff --git a/mysqltuner.pl b/mysqltuner.pl index 0579a22..f74c60c 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -5332,6 +5332,7 @@ having sum(if(c.column_key in ('PRI','UNI'), 1,0)) = 0" infoprint "CPU core detected : " . (cpu_cores); infoprint "wsrep_slave_threads: " . get_wsrep_option('wsrep_slave_threads'); + if ( get_wsrep_option('wsrep_slave_threads') > ( (cpu_cores) * 4 ) or get_wsrep_option('wsrep_slave_threads') < ( (cpu_cores) * 2 ) ) { @@ -5344,16 +5345,6 @@ having sum(if(c.column_key in ('PRI','UNI'), 1,0)) = 0" "wsrep_slave_threads is equal to 2, 3 or 4 times number of CPU(s)"; } - if ( get_wsrep_option('gcs.fc_limit') != - get_wsrep_option('wsrep_slave_threads') * 5 ) - { - badprint "gcs.fc_limit should be equal to 5 * wsrep_slave_threads"; - push @adjvars, "gcs.fc_limit= wsrep_slave_threads * 5"; - } - else { - goodprint "gcs.fc_limit should be equal to 5 * wsrep_slave_threads"; - } - if ( get_wsrep_option('wsrep_slave_threads') > 1 ) { infoprint "wsrep parallel slave can cause frequent inconsistency crash.";