Skip to content

Commit 580a707

Browse files
committed
wsrep_slave_threads #305
1 parent 469a205 commit 580a707

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

mysqltuner.pl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5176,9 +5176,11 @@ sub mariadb_galera {
51765176
having sum(if(c.column_key in ('PRI','UNI'), 1,0)) = 0"
51775177
);
51785178

5179-
infoprint "CPU core detected: ". (cpu_cores);
5179+
5180+
infoprint "CPU core detected : ". (cpu_cores);
5181+
infoprint "wsrep_slave_threads: ". get_wsrep_option('wsrep_slave_threads');
51805182
if ( get_wsrep_option('wsrep_slave_threads') > (cpu_cores) * 4
5181-
or get_wsrep_option('wsrep_slave_threads') < (cpu_cores) * 3 )
5183+
or get_wsrep_option('wsrep_slave_threads') < (cpu_cores) * 2 )
51825184
{
51835185
badprint
51845186
"wsrep_slave_threads is not equal to 2, 3 or 4 times number of CPU(s)";

0 commit comments

Comments
 (0)