| meinado Servidor web asincrónico de alto rendimiento de Python WSGI |
Descargar ahora |
meinado Clasificación y resumen
- Nombre del editor:
- Yutaka Matsubara
- Sitio web del editor:
- http://github.com/mopemope/
meinado Etiquetas
meinado Descripción
Servidor web asincrónico de alta rendimiento WSGI WSGI Meinheld es otro servidor web asíncrono como FAPWS3, Tornado.Meinheld es un servidor web compatible con WSGI.InstallationInstall desde PyPI: Easy_Install -Zu MeinheldInstall desde Fuente: Python Setup.py InstallMeinheld Support Gunicorn .Para instalar Gunicorn: Easy_Install -ZU Gunicornbasic USAsimple WSGI Aplicación de WSGI : Desde Meinheld Import ServerDef Hello_World (Envirivo, Start_Response): Estado = '200 ok' res = "Hello World!" Response_Headers = START_RESPONSE (estado, respuesta_hears) devuelva servidor.listen ("(" 0.0 .0.0 ", 8000)) Server.Run (Hello_World) con Gunicorn. Clase de trabajador de usuario "meinheld.gmeinheld.meinheldworker": $ gunicorn - trabajadores = 2 -worker-class = "meinheld.gmeinheld.meinheldworker" gunicorn_test: AppperformanceMeinheld se usa de alto rendimiento http_parser. (ver http://github.com/ RY / HTTP-PSER) y usando la biblioteca de eventos de alto rendimiento Picoev. (ver http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)simple Benchmarksimple Hello_World Banco: Def hello_world (entorno, start_response): estado = '200 ok' res = "Hola mundo!" Response_Headers = START_RESPONSE (Estado, Responsable_Headers) Devolución Use Banco APACH: $ AB - C 100 -N 10000 http://127.0.0.1:8000/spec * CPU: Intel (R) Átomo (TM) CPU N270 @ 1.60GHz * MEMOY: 1G * OS: Ubuntu 10.04Server Solicitudes por SecondMeinHeld 0.12927.62 FAPWS30.61293.53 SendfileMeinheld Use Sendfile (2), sobre wgsi.file_wrapper. Requisitos: · Python
meinado Software relacionado