Skip to content

Commit 08e4ca1

Browse files
committed
Add code comment explaining why watchdog uses cron over systemd timer
1 parent bf2f9e2 commit 08e4ca1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/NetworkOptimizer.Web/Services/SqmDeploymentService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,10 @@ private string GenerateSqmMonitorScript(string wan1Interface, string wan1Name, s
13491349
sb.AppendLine();
13501350
sb.AppendLine("chmod +x \"$SQM_MONITOR_DIR/sqm-watchdog.sh\"");
13511351
sb.AppendLine();
1352+
// Watchdog uses cron instead of a systemd timer. The oneshot timer logged 3 journal
1353+
// lines per invocation (Starting/Succeeded/Finished) from PID 1 - 6 eMMC writes/min
1354+
// with persistent journald. eMMC write pressure causes micro packet drops on the
1355+
// gateway during garbage collection. Cron runs silently; only failures get logged.
13521356
sb.AppendLine("# Clean up legacy systemd watchdog timer/service (replaced by cron)");
13531357
sb.AppendLine("if systemctl is-active sqm-monitor-watchdog.timer >/dev/null 2>&1; then");
13541358
sb.AppendLine(" systemctl stop sqm-monitor-watchdog.timer 2>/dev/null");

0 commit comments

Comments
 (0)