uwsgi config tuning.

This commit is contained in:
SergeantPanda 2025-05-01 13:10:49 -05:00
parent 78fc7d9f2b
commit 90c1c3d2ed

View file

@ -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