From c501ee3c624e0a79658e1dd03e5c98bd4fedd8bc Mon Sep 17 00:00:00 2001 From: Michael Zaikin Date: Thu, 26 Feb 2026 18:04:48 +0000 Subject: [PATCH] chore(discovery-service): adjust default config --- crates/discovery-service/specs/18-configuration.md | 4 ++-- crates/discovery-service/src/config.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/discovery-service/specs/18-configuration.md b/crates/discovery-service/specs/18-configuration.md index 841f56356..bff216573 100644 --- a/crates/discovery-service/specs/18-configuration.md +++ b/crates/discovery-service/specs/18-configuration.md @@ -51,7 +51,7 @@ level = "info" max_cursor_channels = 256 max_cursor_subchannels_per_channel = 64 max_outgoing_recipients = 64 -server_budget = 100 +server_budget = 10000 max_request_body_bytes = 102400 batch_budget = 16 ``` @@ -68,7 +68,7 @@ These env vars override the corresponding config file values at runtime: | `WS_URL` | `indexer.ws_url` | `ws://127.0.0.1:5050/ws` | | `API_HOST` | `api.host` | `127.0.0.1:8080` | | `RUST_LOG` | `logging.level` | `info` | -| `SERVER_BUDGET` | `limits.server_budget` | `100` | +| `SERVER_BUDGET` | `limits.server_budget` | `10000` | | `BATCH_BUDGET` | `limits.batch_budget` | `16` | RPC pool settings, indexer timeouts, and validation limits (except server/batch budget) have no env var — configurable only via file. diff --git a/crates/discovery-service/src/config.rs b/crates/discovery-service/src/config.rs index 10181ae49..637eb9d39 100644 --- a/crates/discovery-service/src/config.rs +++ b/crates/discovery-service/src/config.rs @@ -51,7 +51,7 @@ impl Default for RpcConfig { connect_timeout: Duration::from_secs(30), request_timeout: Duration::from_secs(60), max_idle_per_host: 10, - max_batch_size: 50, + max_batch_size: 100, } } } @@ -131,7 +131,7 @@ impl Default for ValidationLimits { Self { cursor_limits: CursorLimits::default(), max_outgoing_recipients: 64, - server_budget: 200, + server_budget: 10_000, max_request_body_bytes: 102_400, public_key_cache_capacity: 10_000, }