回到顶部

CONTENTS

uwsgi 之 threads, processes, workers 含义

怎么得知这些配置参数的含义,当然从 help 下手:

[root@VM_2_29_centos ~]# uwsgi --help | grep thread    
-p|--processes                          spawn the specified number of workers/processes
-p|--workers                            spawn the specified number of workers/processes
--threads                               run each worker in prethreaded mode with the specified number of threads

* processes 和 workers 参数的含义是一样的,理解为 进程, threads 就在 每个 processes 或 workers 下 运行的线程数了。

  --py-auto-reload                        monitor python modules mtime to trigger reload (use only in development)
    --py-autoreload                         monitor python modules mtime to trigger reload (use only in development)
    --python-auto-reload                    monitor python modules mtime to trigger reload (use only in development)
    --python-autoreload                     monitor python modules mtime to trigger reload (use only in development)

* --py-auto-reload 、--py-autoreload、--python-auto-reload、--python-autoreload 这四个参数配置的含义都是一样的,python 文件修改后重启 uwsgi

^_^
请喝咖啡 ×

前一篇: django admin 给 字段 设置 widget
下一篇: django admin 修改 app name 的名称为中文