1
virusdefender 2019-03-10 20:23:40 +08:00
-w 参数是进程,-t 是线程
可以的 |
2
Ehco1996 2019-03-11 09:22:28 +08:00
有个 worker class 默认的是 sync 也就是多进程的
当然也有 gthread 多线程 gevent 协程这种 |
3
strict 2019-03-13 18:47:56 +08:00
>-w WORKERS, --workers=WORKERS
>The number of worker processes. This number should generally be between 2-4 workers per core in the server. >Check the FAQ for ideas on tuning this parameter. >-k WORKERCLASS, --worker-class=WORKERCLASS >The type of worker process to run. You ’ ll definitely want to read the production page for the implications of this >parameter. You can set this to $(NAME) where $(NAME) is one of sync, eventlet, gevent, tornado, gthread, gaiohttp >(deprecated). sync is the default. See the worker_class documentation for more information. |