-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Separate grpc server 3.5 #15589
Separate grpc server 3.5 #15589
Conversation
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
6722cb7
to
93784f6
Compare
…er separate from http server Difference in load configuration for watch delay tests show how huge the impact is. Even with random write scheduler grpc under http server can only handle 500 KB with 2 seconds delay. On the other hand, separate grpc server easily hits 10, 100 or even 1000 MB within 100 miliseconds. Priority write scheduler that was used in most previous releases is far worse than random one. Tests configured to only 5 MB to avoid flakes and taking too long to fill etcd. Signed-off-by: Marek Siarkowicz <[email protected]>
93784f6
to
dfdf3db
Compare
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
dfdf3db
to
073c530
Compare
addr := sctx.addr | ||
if network := sctx.network; network == "unix" { | ||
// explicitly define unix network for gRPC socket support | ||
addr = fmt.Sprintf("%s://%s", network, addr) |
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.
Is it because 3.5 is depending on an old gRPC version?
addr = fmt.Sprintf("%s://%s", network, addr) | |
addr = fmt.Sprintf("%s:%s", network, addr) |
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.
Good question, I left the code as it was as I'm just refactoring this code.
I don't expect this code path is well tested as etcd doesn't support unix sockets officially, we just implement them for testing.
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
Separate grpc server 3.5
Backport #15446 and #15588