-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[stats]: Subgroup cluster stats() into lb-stats, endpoint-stats, config-update-stats and "the rest"(will be renamed to upstream-stats) #23907
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
Merged
jmarantz
merged 18 commits into
envoyproxy:main
from
stevenzzzz:subgroup-cluster-lb-endpoint-stats
Nov 15, 2022
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
230b570
subgroup cluster config update stats so that later we can lazy init o…
stevenzzzz 4c1a076
add missing init
stevenzzzz aba2717
Merge branch 'main' into subgroup-cluster-stats
stevenzzzz 9b51c85
Merge branch 'main' into subgroup-cluster-stats
stevenzzzz e370c84
add more comments
stevenzzzz 2a45ccf
Subgroup cluster stats() into lb-stats, endpoint-stats, config-update…
stevenzzzz ee6d346
merge with main
stevenzzzz da5ee03
address Joshua comments
stevenzzzz 821b934
revert the renaming for lb_stats_ in lb tests
stevenzzzz 848ecbb
revert the renaming for lb_stats_ in lb source code : source/common/u…
stevenzzzz 2c6dfa4
even more reverting of renaming lb_stats --> stats in source/common/u…
stevenzzzz c81ee6b
reformat
stevenzzzz 64c6088
more renaming, cluster::stats() --> cluster::trafficStats()
stevenzzzz b5c7f4f
rename clusterStatnames
stevenzzzz 2d4bea5
format
stevenzzzz 5d95c14
Merge branch 'main' into subgroup-cluster-lb-endpoint-stats
stevenzzzz 111fcf6
merge with upstream-main
stevenzzzz 26d1e17
fixes for Yan comments.
stevenzzzz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these should be further sub-divided by functionality. lb_subset, zone_aware, and then all the rest. Both of those features are unused in many configs so they could all be omitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, the zone_aware stats are the "base" for subset_lb loadbalancers, due to the following:
so the lb-related stats (subset, and zone-aware) will be created/required at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I think the zone-awareness isn't used in many cases, and those stats will remain zero'd (at least I think that's how it works). So if they are separate and lazy-created, I think they won't get created in many configs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
our of the 5 lb-impls used in subset_lb, only RingHashLoadBalancer and MagLevLoadBalancer are NOT inherited from zoneawareLoadBalancer. But I see your point there tho. It requires some refactoring work: we'd better instantiate those stats objs from within each lb-object, which triggers even more delta.
do you mind if I do it incrementally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incrementally sounds good. Do you want to land this as-is and do it in a subsequent PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. it'd be much cleaner.