meinheld

Screenshot Software:
meinheld
Szczegóły programowe:
Wersja: 0.5.4
Filmu: 14 Apr 15
Wywoływacz: Yutaka Matsubara
Licencja: Wolny
Popularność: 1

Rating: nan/5 (Total Votes: 0)

meinheld jest kolejnym asynchroniczny serwer WWW jak fapws3, tornado.
meinheld jest WSGI zgodny serwer WWW.
instalacji
Zainstaluj z PyPI:
& Nbsp; easy_install -ZU meinheld
Instaluj ze źródła:
& Nbsp; python setup.py install
meinheld obsługuje gunicorn.
Aby zainstalować gunicorn:
& Nbsp; easy_install -ZU gunicorn
Podstawy obsługi
prosta aplikacja WSGI:
z meinheld serwerze importu
hello_world def (environ, start_response):
& Nbsp; status = "200 OK"
& nbsp; res = "Hello World!"
& Nbsp; response_headers = [('Content-type "," text / plain "), (" Content-Length ", str (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; powrót [res]
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
z gunicorn. Klasa pracownika użytkownika "meinheld.gmeinheld.MeinheldWorker":
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: aplikacja
Wydajność
meinheld służy wysokiej wydajności http_parser.
(Patrz http://github.com/ry/http-parser)
wysokiej wydajności i useing biblioteki zdarzeń picoev.
(Patrz http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
proste odniesienia
proste hello_world ławki:
hello_world def (environ, start_response):
& Nbsp; status = "200 OK"
& nbsp; res = "Hello World!"
& Nbsp; response_headers = [('Content-type "," text / plain "), (" Content-Length ", str (len (res)))]
& Nbsp; start_response (status, response_headers)
& Nbsp; powrót [res]
używać Apach ławki:
$ Ab -c 100 -n 10000 http://127.0.0.1:8000/
Specyfikacja
& Nbsp; * Procesor: Intel (R) Atom (TM) CPU N270 @ 1.60GHz
& Nbsp; * Memoy: 1G
& Nbsp; * OS: Ubuntu 10.04
Wnioski serwera na sekundę
meinheld 0,1 2927,62 [# / s]
fapws3 0,6 1293,53 [# / s]
sendfile
. meinheld używać sendfile (2), na wgsi.file_wrapper

Wymagania :

  • Python

Inne programy z deweloperem Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

Komentarze do meinheld

Komentarze nie znaleziono
Dodaj komentarz
Włącz zdjęć!