Skip to content

egress-proxy status understates remaining idle time by up to 10m (throttled activity tag) #1528

Closed

Description

@scttfrdmn

Bug (UX): spawn egress-proxy status can understate a proxy's remaining idle time by up to 10 minutes

status computes "idle for X, expires in Y" from the spawn:egress-proxy-last-activity tag. spored writes that tag through egressproxy.ActivityPublisher, which limits writes to once every 10 minutes (#1525). So the tag can be up to about 10 minutes older than the proxy's real last activity. spored's in-memory clock, which actually enforces expiry, is always current.

Expiry itself is correct: the proxy never ends early. Only the countdown is wrong, and it errs toward "sooner".

Evidence (live, 2026-11-04, v0.158.0, --egress-proxy-idle 15m)

Time (UTC) Event
23:36:25 proxy launched; first tag written = launch time
23:39:58 last real traffic: the members' EFA downloads (from the proxy's spored log)
~23:42 status: idle for 6m (last 23:36:25Z), expires in 8m, which predicts about 23:51
23:49:46 tag updated to 23:39:58Z
23:55:24 spored terminated the proxy, about 15m after 23:39:58 (CloudTrail: assumed-role/spored-instance-role/<proxy>)

Suggested fix

Either of these:

  • Change the wording. Have status say "last activity at or after …" and "expires no earlier than …", and show the tag's age.
  • Change the publish rule. After a quiet period, write the first new activity immediately, and throttle only the writes that follow it. That keeps the tag within seconds of the edge that matters for expiry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:networkingbugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions