1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-26 19:24:23 +01:00

improvement: increase default max concurrent requests

This commit is contained in:
Timo Kösters 2021-05-24 17:59:06 +02:00
parent 57ecd81534
commit aacf6289db
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 4 additions and 4 deletions

View file

@ -99,7 +99,7 @@ allow_federation = true
trusted_servers = ["matrix.org"] trusted_servers = ["matrix.org"]
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 4 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2
address = "127.0.0.1" # This makes sure Conduit can only be reached using the reverse proxy address = "127.0.0.1" # This makes sure Conduit can only be reached using the reverse proxy

View file

@ -36,7 +36,7 @@ max_request_size = 20_000_000 # in bytes
trusted_servers = ["matrix.org"] trusted_servers = ["matrix.org"]
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 4 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#log = "info,state_res=warn,rocket=off,_=off,sled=off" #log = "info,state_res=warn,rocket=off,_=off,sled=off"
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2

2
debian/postinst vendored
View file

@ -74,7 +74,7 @@ max_request_size = 20_000_000 # in bytes
#allow_jaeger = false #allow_jaeger = false
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 4 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#log = "info,state_res=warn,rocket=off,_=off,sled=off" #log = "info,state_res=warn,rocket=off,_=off,sled=off"
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2
EOF EOF

View file

@ -67,7 +67,7 @@ fn default_max_request_size() -> u32 {
} }
fn default_max_concurrent_requests() -> u16 { fn default_max_concurrent_requests() -> u16 {
4 100
} }
fn default_log() -> String { fn default_log() -> String {