You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
egress-proxy status understates remaining idle time by up to 10m (throttled activity tag) #1528
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".
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.
Activity
test(egressproxy): plainer traffic model in the publisher property te…
test(egressproxy): fixed-seed LCG instead of math/rand in the propert…
fix(egress-proxy): publish activity after quiet at once; status state…
test(egressproxy): plainer traffic model in the publisher property te…
test(egressproxy): fixed-seed LCG instead of math/rand in the propert…
fix(egress-proxy): publish activity after quiet at once; status state…