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
Copy file name to clipboardExpand all lines: lib/utility.php
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1362,6 +1362,20 @@ function utilities_get_mysql_recommendations() : int {
1362
1362
];
1363
1363
}
1364
1364
1365
+
if ($database == 'MariaDB' && version_compare($version, '11.8', '>=')) {
1366
+
// MariaDB 11.8 enabled innodb_snapshot_isolation=ON by default (MDEV-39628).
1367
+
// Under this mode, concurrent UPDATE statements on any InnoDB table can block
1368
+
// for tens of thousands of seconds even when the table has only a handful of
1369
+
// rows. Cacti's poller cycle issues many rapid UPDATEs; this setting makes
1370
+
// those updates contend in ways that can freeze the entire poller.
1371
+
$recommendations['innodb_snapshot_isolation'] = [
1372
+
'value' => 'OFF',
1373
+
'measure' => 'equalint',
1374
+
'class' => 'error',
1375
+
'comment' => __('MariaDB 11.8 enabled innodb_snapshot_isolation=ON by default. This causes severe lock contention: UPDATE statements can block for tens of thousands of seconds on small tables under concurrent load, which stalls the Cacti poller. Set innodb_snapshot_isolation=OFF in your [mysqld] configuration. See MDEV-39628.')
0 commit comments