Skip to content

Commit

Permalink
[OTE-178] Increase maximum number of connections (#1080)
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 authored Feb 22, 2024
1 parent c703be0 commit dde5e67
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 dde5e67

Please sign in to comment.