fix(delivery): enable I/O accounting for node observation

This commit is contained in:
2026-10-16 18:11:50 +08:00
parent 2cae75920d
commit 09266df638
2 changed files with 45 additions and 0 deletions
+5
View File
@@ -158,6 +158,11 @@ def run(
"RestrictAddressFamilies": "AF_UNIX AF_INET",
"WorkingDirectory": str(payload),
}
if name == "node-observation":
# The unified io controller may be disabled until a unit requests
# accounting. Enable it through systemd before reading io.stat for
# this slice and its services; keep missing counters a hard failure.
properties["IOAccounting"] = "yes"
for key, value in properties.items():
command.append("--property=" + key + "=" + value)
if name in {"import-health", "outbox-health"}: