Skip to content

Commit

Permalink
[OTE-178] Increase maximum number of connections
Browse files Browse the repository at this point in the history
Allowed load tester to scale even higher removing one of the bottlenecks.
  • Loading branch information
lcwik committed Feb 16, 2024
1 parent 71ce2c6 commit 4de3f6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol/cmd/dydxprotocold/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ func initTendermintConfig() *tmcfg.Config {
// Expose the Tendermint RPC.
cfg.RPC.ListenAddress = "tcp://0.0.0.0:26657"
cfg.RPC.CORSAllowedOrigins = []string{"*"}
// goroutine profiling showed that we were using exactly 900 threads (the default) which was throttling
// the maximum amount of load that the process could take. As of the last load test, at max QPS we were
// seeing ~1700 threads being used.
cfg.RPC.MaxOpenConnections = 4000
cfg.RPC.GRPCMaxOpenConnections = 4000

// Mempool config.
// We specifically are using a number greater than max QPS (currently set at 5000) * ShortBlockWindow to prevent
Expand Down

0 comments on commit 4de3f6d

Please sign in to comment.