Keep systemd-journal-upload retrying instead of failing a deploy
The uploader exits when VictoriaLogs is unreachable. Upstream already sets Restart=always/RestartSec=3sec, but the default start-rate limit lets the unit give up permanently and trip switch-to-configuration when the sink is briefly down. Disable the limit (startLimitIntervalSec=0) so logging stays best-effort and never wedges a host or a deploy.
This commit is contained in:
@@ -103,6 +103,13 @@ in
|
|||||||
"http://${dest}/insert/journald";
|
"http://${dest}/insert/journald";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# systemd-journal-upload exits if the sink is unreachable. The upstream module
|
||||||
|
# already sets Restart=always/RestartSec=3sec, but the default start-rate limit
|
||||||
|
# (5 tries / 10s) still lets the unit give up permanently and fail a deploy when
|
||||||
|
# VictoriaLogs is briefly down. Logging is best-effort: disable the limit so it
|
||||||
|
# retries forever instead of wedging the host (or switch-to-configuration).
|
||||||
|
systemd.services.systemd-journal-upload.startLimitIntervalSec = 0;
|
||||||
|
|
||||||
# Scrape ports reachable only from the ZeroTier mesh.
|
# Scrape ports reachable only from the ZeroTier mesh.
|
||||||
networking.firewall.extraInputRules = ''
|
networking.firewall.extraInputRules = ''
|
||||||
ip6 saddr ${mesh.subnet} tcp dport { ${lib.concatMapStringsSep ", " toString ports} } accept
|
ip6 saddr ${mesh.subnet} tcp dport { ${lib.concatMapStringsSep ", " toString ports} } accept
|
||||||
|
|||||||
Reference in New Issue
Block a user