mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
uwsgi config tuning.
This commit is contained in:
parent
78fc7d9f2b
commit
90c1c3d2ed
1 changed files with 4 additions and 6 deletions
|
|
@ -24,11 +24,8 @@ vacuum = true
|
|||
die-on-term = true
|
||||
static-map = /static=/app/static
|
||||
|
||||
# Worker management (Optimize for I/O bound tasks)
|
||||
# Worker management
|
||||
workers = 4
|
||||
threads = 4
|
||||
enable-threads = true
|
||||
thread-stacksize=512
|
||||
|
||||
# Optimize for streaming
|
||||
http = 0.0.0.0:5656
|
||||
|
|
@ -39,8 +36,9 @@ http-timeout = 600 # Prevent disconnects from long streams
|
|||
lazy-apps = true # Improve memory efficiency
|
||||
|
||||
# Async mode (use gevent for high concurrency)
|
||||
gevent = 100
|
||||
async = 100
|
||||
gevent = 400 # Each unused greenlet costs ~2-4KB of memory
|
||||
# Higher values have minimal performance impact when idle, but provide capacity for traffic spikes
|
||||
# If memory usage becomes an issue, reduce this value
|
||||
|
||||
# Performance tuning
|
||||
thunder-lock = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue