Skip to content

feat(lb): add adaptive polling for load balancer detail views#136

Merged
larkly merged 1 commit intomainfrom
adaptive-lb-polling-20260406
Apr 6, 2026
Merged

feat(lb): add adaptive polling for load balancer detail views#136
larkly merged 1 commit intomainfrom
adaptive-lb-polling-20260406

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Apr 6, 2026

Implement adaptive polling for LB detail views based on provisioning/operating status:

  • PENDING_CREATE/PENDING_UPDATE: poll every 2s (fast)
  • ERROR/DEGRADED operating status: poll every 5s (medium)
  • ONLINE: poll every 15s (slow, rate-limit friendly)
  • OFFLINE/NO_MONITOR: poll every 10s (medium)
  • Max cap: 30s

Added shouldRefreshDetail() helper that calculates the appropriate interval based on the selected LB's status. The detail fetch is now rate-limited — the TickMsg handler still fetches the LB list on every tick (for selector consistency), but the expensive detail API calls (listeners, pools, members) only fire when the adaptive interval has elapsed.

Added Fields: detailRefreshInterval, lastDetailFetch, pollMode.

@larkly larkly merged commit 35aa43c into main Apr 6, 2026
3 checks passed
@larkly larkly deleted the adaptive-lb-polling-20260406 branch April 6, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant