From b24d2f9aaa6dd90fc86592c41e69796c91e45b71 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 18 Dec 2022 12:20:57 -0600 Subject: [PATCH] perf: set default blocking threads to lower value --- config.toml | 4 ++-- src/config.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index cda3199..87dd880 100644 --- a/config.toml +++ b/config.toml @@ -78,8 +78,8 @@ reject_future_seconds = 1800 # defaults to unlimited (subject to subscription limits). #db_conns_per_client = 0 -# Limit blocking threads used for database connections. Defaults to 64. -#max_blocking_threads = 64 +# Limit blocking threads used for database connections. Defaults to 16. +#max_blocking_threads = 16 # Limit the maximum size of an EVENT message. Defaults to 128 KB. # Set to 0 for unlimited. diff --git a/src/config.rs b/src/config.rs index a4388d4..79ad94d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -219,7 +219,7 @@ impl Default for Settings { messages_per_sec: None, subscriptions_per_min: None, db_conns_per_client: None, - max_blocking_threads: 64, + max_blocking_threads: 16, max_event_bytes: Some(2 << 17), // 128K max_ws_message_bytes: Some(2 << 17), // 128K max_ws_frame_bytes: Some(2 << 17), // 128K