-
Notifications
You must be signed in to change notification settings - Fork 5k
router: support random value for cluster specifier plugin #39979
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: wangbaiping(wbpcode) <[email protected]>
Signed-off-by: wangbaiping(wbpcode) <[email protected]>
Signed-off-by: wangbaiping(wbpcode) <[email protected]>
Signed-off-by: wangbaiping(wbpcode) <[email protected]>
/retest |
Hi, @agrawroh, could you take a quick look at this when you get free time. I think you have reviewed lots of related changes. So, nag you again here. 🙏 |
Curious, where is this random value used now and what is the use case? I just seeing the interface change but none of the implementations use it |
I will wrap the weighted cluster as an cluster specifier plugin at next PR and the random value will be used there. It will also be helpful for any custom specifier plugin where need a consitant random value as reference of cluster selection. |
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, Thank You @wbpcode!
Should we add a test for the new behavior or would it be part of the follow-up?
Sorry for the delay, didn't get enough time on Friday. |
I should be covered by the weighted cluster PR. |
/assign-from @envoyproxy/senior-maintainers ping for an approval from senior maintainer for the core code change. |
@envoyproxy/senior-maintainers assignee is @yanavlasov |
Commit Message: router: support random value for cluster specifier plugin
Additional Description:
Now, the cluster specifier plugin could also use the random value to select cluster.
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]