Skip to content

[BUG] Resolve API flood and TUI tight loop#37

Merged
aeswibon merged 1 commit into
masterfrom
fix/api-flood-and-stability
May 11, 2026
Merged

[BUG] Resolve API flood and TUI tight loop#37
aeswibon merged 1 commit into
masterfrom
fix/api-flood-and-stability

Conversation

@aeswibon
Copy link
Copy Markdown
Owner

Description

This PR addresses the critical issue of massive API traffic and system instability observed during high-load or disconnection scenarios. It fixes a tight reconnection loop in the TUI dashboard and standardizes data models to prevent redundant reconciliation cycles.

Fixes #36

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

  • Verified that API logs are stable after starting the controller and dashboard.
  • Verified that apps.json and clusters.json are correctly marshaled/unmarshaled using the new tags.
  • Ran go test ./... and confirmed all tests pass.

- Standardize JSON tags to snake_case in core models to match API/TUI.
- Add 1s backoff to TUI reconnection loop.
- Add status code check to TUI event listener.
- Throttle TUI refetches on events.
@aeswibon aeswibon added the bug Something isn't working label May 11, 2026
@aeswibon aeswibon self-assigned this May 11, 2026
@aeswibon aeswibon added the bug Something isn't working label May 11, 2026
@aeswibon aeswibon enabled auto-merge (squash) May 11, 2026 00:24
@aeswibon aeswibon merged commit c962dc0 into master May 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Massive API traffic and TUI tight loop on SSE disconnection

1 participant