[uwsgi] strict = true single-interpreter = true http = :8080 chdir = /var/app wsgi-file = application.py module = application:app master = true uid = uwsgi gid = uwsgi harakiri = 90 http-keepalive = 1 add-header = Connection:Keep-Alive buffer-size = 12288 disable-logging = true log-4xx = true log-5xx = true log-ioerror = true log-x-forwarded-for = true cache2 = name=uwsgi_cache,items=10 enable-threads = 1 lazy-apps = 1 harakiri-verbose = true ## https://uwsgi-docs.readthedocs.io/en/latest/Cheaper.html # maximum number of workers that can be spawned workers = 50 # minimum number of workers to keep at all times cheaper = 15 # number of workers to spawn at startup cheaper-initial = 30 # how many workers should be spawned at a time cheaper-step = 5 # track busyness window in seconds cheaper-overload = 15 # percent busy worker triggers scale up cheaper-busyness-max = 50 # # set cheaper algorithm to use cheaper-algo = spare