1 Star 0 Fork 1

kkevvst/adminset

forked from zb0928/adminset 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gunicorn_conf.py 728 Bytes
一键复制 编辑 原始数据 按行查看 历史
guohongze 提交于 2017-07-31 23:12 . update gunicorn timeout
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import multiprocessing
path_of_current_file = os.path.abspath(__file__)
path_of_current_dir = os.path.split(path_of_current_file)[0]
_file_name = os.path.basename(__file__)
sys.path.insert(0, path_of_current_dir)
worker_class = 'sync'
workers = multiprocessing.cpu_count() * 2 + 1
chdir = path_of_current_dir
worker_connections = 1000
timeout = 300
max_requests = 2000
graceful_timeout = 300
loglevel = 'info'
reload = True
debug = False
bind = "%s:%s" % ("0.0.0.0", 8000)
pidfile = '/var/opt/adminset/pid/gunicorn.pid'
#errorlog = '%s/logs/adminset_error.log' % (path_of_current_dir)
#accesslog = '%s/logs/adminset_access.log' % (path_of_current_dir)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/kkevvst/adminset.git
git@gitee.com:kkevvst/adminset.git
kkevvst
adminset
adminset
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385