利用paddleHub serving进行多进程部署时,如何修改默认的gunicorn的配置
Created by: AugusXing
现在gunicorn中的work_class为sync模式,想更换为gevent模式,修改gunicorn对应的配置文件,但一直不生效,用的还是sync模式 import multiprocessing from gevent import monkey monkey.patch_all() bind = '0.0.0.0:8888' backlog = 2048 workers = multiprocessing.cpu_count() * 2 + 1 threads = 1 worker_class = 'gevent' worker_connections = 1000 timeout = 500 keepalive = 40 daemon = True loglevel = 'info' errorlog = '-' accesslog = '-'