You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As wsrep_slave_threads is not set to anything on new MySQL versions it seems to guess on a value, maybe wsrep_applier_threads should be used instead when wsrep_slave_threads is not found.
Deprecated as of MySQL-wsrep 8.0.26-26.8 in favor of [wsrep_applier_threads]
This commit refactors the mariadb_galera subroutine to handle both wsrep_slave_threads and wsrep_applier_threads variables. This ensures the script provides accurate recommendations for different MySQL versions.
The get_wsrep_options subroutine has also been refactored to remove the logic that adds wsrep_slave_threads to the @galera_options array, as it is a server variable, not a Galera provider option.
goodprint "Your innodb_redo_log_capacity is sized to handle more than 1 hour of writes.";
6627
+
if ( hr_raw( $myvar{'innodb_redo_log_capacity'} ) < $hourly_rate ) {
6628
+
badprint
6629
+
"Your innodb_redo_log_capacity is not large enough to hold at least 1 hour of writes.";
6630
+
push( @adjvars,
6631
+
"innodb_redo_log_capacity (>= "
6632
+
. $suggested_redo_log_capacity_str
6633
+
. ")" );
6634
+
}
6635
+
else {
6636
+
goodprint
6637
+
"Your innodb_redo_log_capacity is sized to handle more than 1 hour of writes.";
6620
6638
}
6621
6639
6622
6640
# Sanity check against total InnoDB data size
6623
-
if ( defined$enginestats{'InnoDB'} and$enginestats{'InnoDB'} > 0 ) {
6641
+
if ( defined$enginestats{'InnoDB'} and$enginestats{'InnoDB'} > 0 )
6642
+
{
6624
6643
my$total_innodb_size = $enginestats{'InnoDB'};
6625
-
if ( $suggested_redo_log_capacity_bytes > $total_innodb_size * 0.25 ) {
6626
-
infoprint "The suggested innodb_redo_log_capacity (" . $suggested_redo_log_capacity_str . ") is more than 25% of your total InnoDB data size. This might be unnecessarily large.";
6644
+
if ( $suggested_redo_log_capacity_bytes >
6645
+
$total_innodb_size * 0.25 )
6646
+
{
6647
+
infoprint "The suggested innodb_redo_log_capacity ("
6648
+
. $suggested_redo_log_capacity_str
6649
+
. ") is more than 25% of your total InnoDB data size. This might be unnecessarily large.";
6627
6650
}
6628
6651
}
6629
-
} else {
6630
-
infoprint "Server uptime is less than 1 hour. Cannot make a reliable recommendation for innodb_redo_log_capacity.";
6652
+
}
6653
+
else {
6654
+
infoprint
6655
+
"Server uptime is less than 1 hour. Cannot make a reliable recommendation for innodb_redo_log_capacity.";
6631
6656
}
6632
6657
}
6633
6658
else {
@@ -6648,11 +6673,12 @@ sub mysql_innodb {
6648
6673
. ") if possible, so InnoDB Redo log Capacity equals 25% of buffer pool size."
6649
6674
);
6650
6675
push( @generalrec,
6651
-
"Be careful, increasing innodb_redo_log_capacity means higher crash recovery mean time"
6676
+
"Be careful, increasing innodb_redo_log_capacity means higher crash recovery mean time"
0 commit comments