mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-16 01:22:00 +00:00
bc1dd3413e
Three gaps found while verifying idle reclaim on live hardware. The reclaim log line passed a time.Duration, which slog renders as an int64 nanosecond count in JSON: the line read idleFor:135000000000 rather than 2m15s, in journalctl and in the metrics sink alike. It now logs an integer second count under a unit-suffixed field, which is both readable and still aggregatable — a string would have cost the latter. The same shape appears at around ten other sites across the fleet and is tracked separately. The endpoint command's help still told operators the gateway could not request endpoints itself, which stopped being true when dynamic resolution landed. It now describes the lifecycle that actually runs, and says what the manual commands are still for. describe showed nothing the idle sweep observed, so an operator asking why an endpoint was or was not reclaimed had to read the KV. It now reports in-flight count, last activity, idle duration, pinned status and consecutive scrape failures for a READY endpoint, and nothing for any other state, since no other state is swept. LastActive moves onto EndpointRecord so the idle clock, the LRU eviction order and this output all read one definition rather than three.