Adopt production-safe runtime defaults and forwarder retry limits.

Lower CLI/WebCRT/audit caps, log startup capacity warnings, and bound oclaw requeues so reconnect storms cannot thrash memory.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 18:08:28 +08:00
parent d56020d84c
commit fa577aa3bd
22 changed files with 238 additions and 69 deletions

View file

@ -83,6 +83,9 @@ def _prom_lines(metrics: dict[str, Any]) -> str:
("queue_size", "netx_oclaw_forwarder_queue_size"),
("published_ok", "netx_oclaw_forwarder_published_ok"),
("published_fail", "netx_oclaw_forwarder_published_fail"),
("dropped", "netx_oclaw_forwarder_dropped"),
("requeued", "netx_oclaw_forwarder_requeued"),
("retry_exhausted", "netx_oclaw_forwarder_retry_exhausted"),
):
if key in fwd:
lines.append(f"{prom} {int(fwd.get(key) or 0)}")