From 6f5e8c87b168eec2847732317ee53afce1b254f4 Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Wed, 8 Mar 2023 15:07:25 +0100 Subject: [PATCH] server: Switch back to random scheduler to improve resilience to watch starvation Signed-off-by: Marek Siarkowicz --- server/embed/serve.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/embed/serve.go b/server/embed/serve.go index 579e22a369f..5dd3c917fa9 100644 --- a/server/embed/serve.go +++ b/server/embed/serve.go @@ -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? return http2.ConfigureServer(srv, &http2.Server{ MaxConcurrentStreams: cfg.MaxConcurrentStreams, + // Override to avoid using priority scheduler which is affected by https://github.com/golang/go/issues/58804. + NewWriteScheduler: http2.NewRandomWriteScheduler, }) }