From 5a399f6006ae04ff184bb2a6c8dc660f1f79dd9d Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Mon, 8 Mar 2021 18:01:44 +0100 Subject: [PATCH] Duplicate recommendation/check #545 Duplicate recommendation/check #545 --- mysqltuner.pl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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.";