From e71932b01dc2ce9e712ce6b508cf4bca7f309f6e Mon Sep 17 00:00:00 2001 From: starptech Date: Wed, 29 Jan 2025 14:16:58 +0100 Subject: [PATCH] fix: increase max concurrent resolvers --- router/pkg/config/config.go | 2 +- router/pkg/config/config.schema.json | 4 ++-- router/pkg/config/testdata/config_defaults.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/router/pkg/config/config.go b/router/pkg/config/config.go index fac97f09d8..45457e36eb 100644 --- a/router/pkg/config/config.go +++ b/router/pkg/config/config.go @@ -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"` diff --git a/router/pkg/config/config.schema.json b/router/pkg/config/config.schema.json index 1c3136aeb3..9685de8e75 100644 --- a/router/pkg/config/config.schema.json +++ b/router/pkg/config/config.schema.json @@ -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 more requests can be processed in parallel but at the cost of more memory usage.", + "default": 1024 }, "enable_net_poll": { "type": "boolean", diff --git a/router/pkg/config/testdata/config_defaults.json b/router/pkg/config/testdata/config_defaults.json index cc2a9afecd..b58010dca5 100644 --- a/router/pkg/config/testdata/config_defaults.json +++ b/router/pkg/config/testdata/config_defaults.json @@ -276,7 +276,7 @@ "EnableSingleFlight": true, "EnableRequestTracing": true, "EnableExecutionPlanCacheResponseHeader": false, - "MaxConcurrentResolvers": 32, + "MaxConcurrentResolvers": 1024, "EnableNetPoll": true, "WebSocketClientPollTimeout": 1000000000, "WebSocketClientConnBufferSize": 128,