-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Deterministic Subsetting LB policy #6488
Conversation
Co-authored-by: Antoine Tollenaere <[email protected]>
@@ -82,7 +82,7 @@ not git grep -l 'x/net/context' -- "*.go" | |||
|
|||
# - Do not import math/rand for real library code. Use internal/grpcrand for | |||
# thread safety. | |||
git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test' | |||
git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^stress\|grpcrand\|^benchmark\|wrr_test\|deterministicsubsetting' |
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.
We need to use math/rand directly because the algorithm uses round index as seed, so that shuffle results are deterministic.
@s-matyukevich : Thank you for this PR and the associated gRFC. One of our TLs is away for a couple of weeks. We will start reviewing the gRFC once they are back. Please expect some delays here. Thanks. |
Blocked on the gRFC: grpc/proposal#383 |
@s-matyukevich thank you for the PR. I'm going to close this for now, pending the gRFC |
A POC for grpc/proposal#383