meinheld

Tela Software:
meinheld
Detalhes de Software:
Versão: 0.5.4
Data de upload: 14 Apr 15
Revelador: Yutaka Matsubara
Licença: Livre
Popularidade: 1

Rating: nan/5 (Total Votes: 0)

meinheld é mais um servidor web assíncrona como fapws3, tornado.
meinheld é um servidor compatível com WSGI web.
Instalação
Instalar a partir de pypi:
& Nbsp; easy_install -zu meinheld
Instalar a partir de fonte:
& Nbsp; python setup.py instalar
meinheld apoiar gunicorn.
Para instalar gunicorn:
& Nbsp; easy_install -zu gunicorn
Uso Básico
simples app wsgi:
do servidor de importação meinheld
hello_world def (Environ, start_response):
& Nbsp; status = '200 OK'
& nbsp; res = "Olá, mundo!"
& Nbsp; response_headers = [('Content-type', 'text / plain'), ('Content-Length', str (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; retornar [res]
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
com gunicorn. classe trabalhadora usuário "meinheld.gmeinheld.MeinheldWorker":
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: app
Desempenho
meinheld é utilizada alta http_parser desempenho.
(Veja http://github.com/ry/http-parser)
e useing alto desempenho picoev biblioteca evento.
(Veja http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
referência simples
simples banco hello_world:
hello_world def (Environ, start_response):
& Nbsp; status = '200 OK'
& nbsp; res = "Olá, mundo!"
& Nbsp; response_headers = [('Content-type', 'text / plain'), ('Content-Length', str (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; retornar [res]
usar apach banco:
$ Ab -c 100 -n 10000 http://127.0.0.1:8000/
especulação
& Nbsp; * CPU: Intel (R) Atom (TM) CPU N270 @ 1.60GHz
& Nbsp; * Memoy: 1G
& Nbsp; * OS: Ubuntu 10.04
Pedidos de servidor por segundo
meinheld 0,1 2.927,62 [# / seg]
fapws3 0,6 1.293,53 [# / seg]
sendfile
. meinheld usar sendfile (2), sobre wgsi.file_wrapper

Requisitos :

  • Python

Outro software de desenvolvedor Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

Comentário para meinheld

Comentários não encontrado
Adicionar comentário
Ligue imagens!