* Fix to the database resync logic. The previous change to only resync if 10+ lines differed broke striker-manage-peers as the difference in host counts is what triggered the pairing of strikers.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 4 years ago
parent 41d528418d
commit a846f9ecbc
  1. 6
      Anvil/Tools/Database.pm
  2. 3
      tools/anvil-daemon

@ -16112,8 +16112,10 @@ ORDER BY
# To avoid resyncs triggered by the differences that might occur if the row
# count changed slightly between counting both/all DBs, we won't resync
# until there's at least 10 rows different.
if ($difference > 10)
# until there's at least 10 rows different. The exception is the hosts file,
# as it needs to resync on a single line difference when adding peer Striker
# dashboards.
if (($table eq "hosts") or ($difference > 10))
{
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, priority => "alert", key => "log_0219", variables => {
missing => $difference,

@ -17,6 +17,9 @@
# - Write a script that runs in crontab at UTC 17:00 that sends an email if Scancore or anvil-daemon are disabled.
# - Examine limites in: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#LimitCPU=
# - Write a background program to scan the BCN and uses OUI data to try and find / auto-configure PDUs and UPSes
# -
# - Increase DRBD's default timeout
# - Check for and enable persistent journald logging
#
# NOTE:
# - For later; 'reboot --force --force' immediately kills the OS, like disabling ACPI on EL6 and hitting the

Loading…
Cancel
Save