Skip to content

Commit

Permalink
server: Switch back to random scheduler to improve resilience to watc…
Browse files Browse the repository at this point in the history
…h starvation

Signed-off-by: Marek Siarkowicz <[email protected]>
  • Loading branch information
serathius committed Mar 9, 2023
1 parent 5adec5f commit 781de33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/embed/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ 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,
NewWriteScheduler: http2.NewRandomWriteScheduler,
})
}

Expand Down

0 comments on commit 781de33

Please sign in to comment.