GunicornPython 的 WSGI 服务器
Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。
结构图:
与 uWSGI 的性能比较:
特点:
本身支持WSGI、Django、Paster
自动辅助进程管理
简单的 Python配置
允许配置多个工作环境
各种服务器的可扩展钩子
与 Python 2.x > = 2.5,3.x >= 3.2 兼容
安装:
$ pip install gunicorn $ cat myapp.py def app(environ, start_response): data = b"Hello, World!\n" start_response("200 OK", [ ("Content-Type", "text/plain"), ("Content-Length", str(len(data))) ]) return iter([data]) $ gunicorn -w 4 myapp:app [2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869) [2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync [2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874 [2014-09-10 10:22:28 +0000] [30875] [INFO] Booting worker with pid: 30875 [2014-09-10 10:22:28 +0000] [30876] [INFO] Booting worker with pid: 30876 [2014-09-10 10:22:28 +0000] [30877] [INFO] Booting worker with pid: 30877
评论
bjoernHTTP/1.1 WSGI 服务器
bjoern是个快速、超轻量级的HTTP/1.1WSGI服务器软件,为CPython编写。使用C语言开发,基于Libev事件库和http-parser开发,这是一个单线程的服务,占用内存非常低。示例代
bjoernHTTP/1.1 WSGI 服务器
0
FAPWS兼容 WSGI 的 Web 服务器
FAPWS(FastAsynchronousPythonWSGIServer)是一个完全兼容WSGI的Web服务器,用于Python环境。设计的目标是小型快速,可处理大并发连接。
FAPWS兼容 WSGI 的 Web 服务器
0
Meinheld异步 WSGI Web 服务器
Meinheld是一个高性能的异步WSGIWeb服务器。是一个兼容WSGI的服务器,支持 PEP333和 PEP3333规范。Meinheld利用greenlet和Picoev实现异步I/O。Mein
Meinheld异步 WSGI Web 服务器
0
FastWSGI适用于 Python 3 的超快速 WSGI 服务器
FastWSGI 是一个用于 Python 3 的超快速 WSGI 服务器;号称是目前最快的通用 W
FastWSGI适用于 Python 3 的超快速 WSGI 服务器
0
FastWSGI适用于 Python 3 的超快速 WSGI 服务器
FastWSGI是一个用于Python3的超快速WSGI服务器;号称是目前最快的通用WSGI服务器之一。它用C语言编写,在引擎盖下使用libuv和llhttp以获得极快的性能。安装pipinstall
FastWSGI适用于 Python 3 的超快速 WSGI 服务器
0