update backend/gunicorn.py.

Signed-off-by: zhouhhesheng <8824644+zhouhhesheng@user.noreply.gitee.com>
pull/88/head
zhouhhesheng 2023-02-09 09:06:23 +00:00 committed by Gitee
parent a9d6612e9d
commit 9341ad48b4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import multiprocessing
# 并行工作进程数, intcpu数量*2+1 推荐进程数 # 并行工作进程数, intcpu数量*2+1 推荐进程数
workers = multiprocessing.cpu_count() * 2 + 1 workers = multiprocessing.cpu_count() * 2 + 1
# 指定每个进程开启的线程数 # 指定每个进程开启的线程数
threads = 3 threads = 4
# 绑定的ip与端口 # 绑定的ip与端口
bind = '0.0.0.0:8000' bind = '0.0.0.0:8000'
# 设置守护进程,将进程交给第三方管理 # 设置守护进程,将进程交给第三方管理