mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-28 02:35:50 -05:00
perf: set default blocking threads to lower value
This commit is contained in:
parent
7a3899d852
commit
b24d2f9aaa
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user