mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: Switch back to random scheduler to improve resilience to watch starvation
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
This commit is contained in:
parent
3f96014d2d
commit
55bfad950c
@ -209,6 +209,8 @@ func configureHttpServer(srv *http.Server, cfg config.ServerConfig) error {
|
|||||||
// todo (ahrtr): should we support configuring other parameters in the future as well?
|
// todo (ahrtr): should we support configuring other parameters in the future as well?
|
||||||
return http2.ConfigureServer(srv, &http2.Server{
|
return http2.ConfigureServer(srv, &http2.Server{
|
||||||
MaxConcurrentStreams: cfg.MaxConcurrentStreams,
|
MaxConcurrentStreams: cfg.MaxConcurrentStreams,
|
||||||
|
// Override to avoid using priority scheduler which is affected by https://github.com/golang/go/issues/58804.
|
||||||
|
NewWriteScheduler: http2.NewRandomWriteScheduler,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user