-
Notifications
You must be signed in to change notification settings - Fork 4.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
make total weight optional #21892
make total weight optional #21892
Conversation
Signed-off-by: hejianpeng <[email protected]>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
/retest |
Retrying Azure Pipelines: |
/assign-from envoyproxy/envoy-maintainers |
envoyproxy/envoy-maintainers assignee is @mattklein123 |
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.
LGTM with small comment, thanks.
/wait
/wait on release notes requested |
Signed-off-by: hejianpeng <[email protected]>
Signed-off-by: hejianpeng <[email protected]>
Signed-off-by: hejianpeng <[email protected]>
Signed-off-by: hejianpeng <[email protected]>
Is there actually any reason why the total_weight field is useful? It seems like it just pushes a sanity check down to the client that could just as easily be done on the server. Maybe we should just deprecate that field? |
It's been a long time, but historically I think the reason this field existed is due to the common mistake of not adjusting weights in tandem and then users not understand why things were not adding up correctly. One could argue this could be checked by something higher layer. I don't fully strongly about it at this point. |
Signed-off-by: hejianpeng <[email protected]>
Signed-off-by: hejianpeng <[email protected]>
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.
Thanks!
Signed-off-by: hejianpeng [email protected]
Commit Message: make WeightedCluster.TotalWeight optional
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] #21845
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]