Skip to content

Commit 596918c

Browse files
RENOUARD Jean Marie Ext IMT/OINISRENOUARD Jean Marie Ext IMT/OINIS
authored andcommitted
Version 1.7.1
1 parent e44c29b commit 596918c

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

mysqltuner.pl

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5049,15 +5049,15 @@ sub mariadb_galera {
50495049
);
50505050

50515051
if ( get_wsrep_option('wsrep_slave_threads') > `nproc` * 4
5052-
or get_wsrep_option('wsrep_slave_threads') < `nproc` * 3 )
5052+
or get_wsrep_option('wsrep_slave_threads') < `nproc` * 2 )
50535053
{
50545054
badprint
5055-
"wsrep_slave_threads is not equal to 3 or 4 times number of CPU(s)";
5055+
"wsrep_slave_threads is not equal to 2, 3 or 4 times number of CPU(s)";
50565056
push @adjvars, "wsrep_slave_threads= Nb of Core CPU * 4";
50575057
}
50585058
else {
50595059
goodprint
5060-
"wsrep_slave_threads is equal to 3 or 4 times number of CPU(s)";
5060+
"wsrep_slave_threads is equal to 2, 3 or 4 times number of CPU(s)";
50615061
}
50625062

50635063
if ( get_wsrep_option('gcs.limit') !=
@@ -5066,18 +5066,18 @@ sub mariadb_galera {
50665066
badprint "gcs.limit should be equal to 5 * wsrep_slave_threads";
50675067
push @adjvars, "gcs.limit= wsrep_slave_threads * 5";
50685068
} else {
5069-
goodprint "wsrep_slave_threads is equal to 3 or 4 times number of CPU(s)";
5069+
goodprint "gcs.limit should be equal to 5 * wsrep_slave_threads";
50705070
}
50715071

50725072
if (get_wsrep_option('wsrep_slave_threads') > 1) {
5073-
badprint "wsrep parallel slave can cause frequent inconsistency crash.";
5073+
infoprint "wsrep parallel slave can cause frequent inconsistency crash.";
50745074
push @adjvars, "Set wsrep_slave_threads to 1 in case of HA_ERR_FOUND_DUPP_KEY crash on slave";
50755075
# check options for parallel slave
50765076
if (get_wsrep_option('wsrep_slave_FK_checks') eq "OFF") {
50775077
badprint "wsrep_slave_FK_checks is off with parallel slave";
50785078
push @adjvars, "wsrep_slave_FK_checks should be ON when using parallel slave";
50795079
}
5080-
# wsrep_slave_UK_checks seems useless in MySQL source code
5080+
# wsrep_slave_UK_checks seems useless in MySQL source code
50815081
if ($myvar{'innodb_autoinc_lock_mode'} != 2) {
50825082
badprint "innodb_autoinc_lock_mode is incorrect with parallel slave";
50835083
push @adjvars, "innodb_autoinc_lock_mode should be 2 when using parallel slave";
@@ -5100,10 +5100,8 @@ sub mariadb_galera {
51005100
}
51015101
if ( get_wsrep_option('wsrep_flow_control_paused') > 0.02 ) {
51025102
badprint "Fraction of time node pause flow control > 0.02";
5103-
}
5104-
else {
5105-
goodprint
5106-
"Flow control fraction seems to be OK (wsrep_flow_control_paused<=0.02)";
5103+
} else {
5104+
goodprint "Flow control fraction seems to be OK (wsrep_flow_control_paused<=0.02)";
51075105
}
51085106

51095107
if ( scalar(@primaryKeysNbTables) > 0 ) {
@@ -5112,8 +5110,7 @@ sub mariadb_galera {
51125110
badprint "\t$badtable";
51135111
push @{ $result{'Tables without PK'} }, $badtable;
51145112
}
5115-
}
5116-
else {
5113+
} else {
51175114
goodprint "All tables get a primary key";
51185115
}
51195116
my @nonInnoDBTables = select_array(
@@ -5126,22 +5123,19 @@ sub mariadb_galera {
51265123
foreach my $badtable (@nonInnoDBTables) {
51275124
badprint "\t$badtable";
51285125
}
5129-
}
5130-
else {
5126+
} else {
51315127
goodprint "All tables are InnoDB tables";
51325128
}
51335129
if ( $myvar{'binlog_format'} ne 'ROW' ) {
51345130
badprint "Binlog format should be in ROW mode.";
51355131
push @adjvars, "binlog_format = ROW";
5136-
}
5137-
else {
5132+
} else {
51385133
goodprint "Binlog format is in ROW mode.";
51395134
}
51405135
if ( $myvar{'innodb_flush_log_at_trx_commit'} != 0 ) {
51415136
badprint "InnoDB flush log at each commit should be disabled.";
51425137
push @adjvars, "innodb_flush_log_at_trx_commit = 0";
5143-
}
5144-
else {
5138+
} else {
51455139
goodprint "InnoDB flush log at each commit is disabled for Galera.";
51465140
}
51475141

0 commit comments

Comments
 (0)