Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/discovery-service/specs/18-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions crates/discovery-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down Expand Up @@ -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,
}
Expand Down