-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steve should only send back metadata for counts that have changed #36681
Comments
@nwmac punting to 2.7 |
Internal reference: SURE-5394 |
Hi @nwmac I have a few questions about the specifics on this issue.
|
@git-ival This hasn't been fully merged yet. I'll get you a validation template which aims to give you more information to reproduce the issue once it's ready for testing. |
Validation TemplateRoot CauseSteve maintains a map of the current counts for various resource types in memory. Each time that this map was changed, it would send over the full map of counts, which caused a large object to be delivered through the websocket each time that a resource was added or deleted. What was fixed, or what change have occurred
Areas or cases that should be tested
What areas could experience regressions
Are the repro steps accurate/minimal?Yes, they are included here for convenience.
Q/A
If you would like more specific guidance, please let me know. |
Ran through the validation template and observed the correct behavior. |
Release NoteRancher maintains a Previously, each message from this socket would include all counts for every resource type in the cluster, even if the counts only changed for one specific resource type. This would cause the UI to need to re-update resource counts for every resource type at a high frequency, causing significant performance impact. Now, Rancher will only send back a count for a resource type if the count has changed from the previously known number, improving UI performance. |
/backport 2023-Q2-v2.6.x |
Currently, the Steve API sends count metadata over the web socket every time resource count metadata changes. This results in 24K (typical minimum) of data being send over the socket that the UI has to process.
This is always the full payload of count metadata.
It would be more efficient if Steve only sent metadata for the resources whose counts have changed, rather than the entire document.
The text was updated successfully, but these errors were encountered: