Conversation
Signed-off-by: fxiang1 <fxiang@redhat.com>
Author
|
/assign @Ginxo |
Author
|
Superseded by #78 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
Ticket Summary (Title):
Performance fixes
Ticket Link:
n/a
Type of Change:
✅ Checklist
General
ACM-12340 Fix bug with...)If Feature
If Bugfix
🗒️ Notes for Reviewers
Fix 0: Ignore missing watched CRDs (ie. AnsibleJob, AnsibleWorkflow)
Fix 1: Merge /events/rbac back into /events (saves 1 connection per tab)
Backend (backend/internal/informers/specs.go):
the original Node.js behavior.
Frontend (frontend/src/components/LoadEventsData.tsx):
Frontend (frontend/src/components/LoadData.tsx):
The /events/rbac endpoint and LoadRbacData component are kept for backward compatibility but are no longer used in the main data flow.
Fix 2: SSAR client caching (backend/internal/aggregate/rbac.go)
Cached K8s clients per token instead of creating a new one for every SSAR call. Prevents hundreds of TCP+TLS connection spikes per request.
Fix 3: Read-only lock for aggregate requests (backend/internal/aggregate/engine.go)
Changed applications() from exclusive Lock() to shared RLock(), so concurrent aggregate requests no longer serialize behind each other and the background search loop.
Fix 4: backend/internal/events/rbac/access.go — Added cache cleanup
Fix 5: backend/cmd/console/main.go — Wire up the cleanup
Fix 6: backend/internal/aggregate/argo.go — Prune stale AppSet status