mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
two workers, lots of threads. reduces ram usage
This commit is contained in:
parent
3b0332e9ec
commit
6281f3b80a
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
import multiprocessing
|
||||
|
||||
workers = 1
|
||||
threads = multiprocessing.cpu_count() * 4 + 1
|
||||
workers = 2
|
||||
threads = multiprocessing.cpu_count() * 3 + 1
|
||||
|
||||
worker_tmp_dir = '/dev/shm'
|
||||
|
||||
|
@ -15,5 +15,5 @@ worker_class = 'gthread'
|
|||
accesslog = '-'
|
||||
errorlog = '-'
|
||||
|
||||
max_requests = 500
|
||||
max_requests = 2000
|
||||
max_requests_jitter = 50
|
||||
|
|
Loading…
Add table
Reference in a new issue