1 Star 0 Fork 187

马秋平/django-idcops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gunicorn.py 751 Bytes
一键复制 编辑 原始数据 按行查看 历史
decbe 提交于 2021-01-06 17:42 +08:00 . update gunicorn.py and idcops.service
# The IP address (typically localhost) and port that the idcops WSGI process should listen on
bind = '127.0.0.1:8000'
# The number of worker processes for handling requests.
# A positive integer generally in the 2-4 x $(NUM_CORES) range.
# You’ll want to vary this a bit to find the best for your particular application’s work load.
# $(NUM_CORES) is the number of CPU cores present.
workers = 3
# The number of worker threads for handling requests.
# Run each worker with the specified number of threads.
# Number of threads per worker process
threads = 2
# Timeout (in seconds) for a request to complete
timeout = 120
# The maximum number of requests a worker can handle before being respawned
max_requests = 4096
max_requests_jitter = 300
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qiupingma/django-idcops.git
git@gitee.com:qiupingma/django-idcops.git
qiupingma
django-idcops
django-idcops
master

搜索帮助