Skip to content

Commit

Permalink
fix: increase max concurrent resolvers (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech authored Jan 29, 2025
1 parent 247d025 commit 00e2ee8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion router/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ type EngineExecutionConfiguration struct {
EnableSingleFlight bool `envDefault:"true" env:"ENGINE_ENABLE_SINGLE_FLIGHT" yaml:"enable_single_flight"`
EnableRequestTracing bool `envDefault:"true" env:"ENGINE_ENABLE_REQUEST_TRACING" yaml:"enable_request_tracing"`
EnableExecutionPlanCacheResponseHeader bool `envDefault:"false" env:"ENGINE_ENABLE_EXECUTION_PLAN_CACHE_RESPONSE_HEADER" yaml:"enable_execution_plan_cache_response_header"`
MaxConcurrentResolvers int `envDefault:"32" env:"ENGINE_MAX_CONCURRENT_RESOLVERS" yaml:"max_concurrent_resolvers,omitempty"`
MaxConcurrentResolvers int `envDefault:"1024" env:"ENGINE_MAX_CONCURRENT_RESOLVERS" yaml:"max_concurrent_resolvers,omitempty"`
EnableNetPoll bool `envDefault:"true" env:"ENGINE_ENABLE_NET_POLL" yaml:"enable_net_poll"`
WebSocketClientPollTimeout time.Duration `envDefault:"1s" env:"ENGINE_WEBSOCKET_CLIENT_POLL_TIMEOUT" yaml:"websocket_client_poll_timeout,omitempty"`
WebSocketClientConnBufferSize int `envDefault:"128" env:"ENGINE_WEBSOCKET_CLIENT_CONN_BUFFER_SIZE" yaml:"websocket_client_conn_buffer_size,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions router/pkg/config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2182,8 +2182,8 @@
},
"max_concurrent_resolvers": {
"type": "integer",
"description": "The maximum number of concurrent resolvers.",
"default": 32
"description": "The maximum number of concurrent resolvers. The higher the number, the more requests can be processed in parallel but at the cost of more memory usage.",
"default": 1024
},
"enable_net_poll": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion router/pkg/config/testdata/config_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"EnableSingleFlight": true,
"EnableRequestTracing": true,
"EnableExecutionPlanCacheResponseHeader": false,
"MaxConcurrentResolvers": 32,
"MaxConcurrentResolvers": 1024,
"EnableNetPoll": true,
"WebSocketClientPollTimeout": 1000000000,
"WebSocketClientConnBufferSize": 128,
Expand Down

0 comments on commit 00e2ee8

Please sign in to comment.