meinheld

Szoftver screenshot:
meinheld
Szoftver adatai:
Változat: 0.5.4
Feltöltés dátuma: 14 Apr 15
Fejlesztő: Yutaka Matsubara
Engedély: Ingyenes
Népszerűség: 1

Rating: nan/5 (Total Votes: 0)

meinheld még egy aszinkron web szerver, mint fapws3, tornádó.
meinheld egy WSGI kompatibilis web szerver.
Telepítés
Telepítse a pypi:
& Nbsp; easy_install -ZU meinheld
Forrásból telepíteni:
& Nbsp; python setup.py telepíteni
meinheld támogatni gunicorn.
Telepíteni gunicorn:
& Nbsp; easy_install -ZU gunicorn
Basic Használat
egyszerű wsgi app:
a meinheld import szerveren
def hello_world (környezet, 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; return [res]
server.listen (("0.0.0.0", 8000))
server.run (hello_world)
A gunicorn. használati munkás osztály "meinheld.gmeinheld.MeinheldWorker":
$ Gunicorn --workers = 2 --worker-class = "meinheld.gmeinheld.MeinheldWorker" gunicorn_test: app
Performance
meinheld használják nagy teljesítményű http_parser.
(Lásd http://github.com/ry/http-parser)
és useing nagy teljesítményű esemény könyvtár picoev.
(Lásd http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
egyszerű benchmark
egyszerű hello_world padon:
def hello_world (környezet, 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; return [res]
használja Apach padon:
$ Ab -c 100 -n 10000 http://127.0.0.1:8000/
spec
& Nbsp; * CPU: Intel (R) Atom (TM) CPU N270 @ 1.60GHz
& Nbsp; * Memoy: 1G
& Nbsp; * OS: Ubuntu 10.04
A szerver kérések másodpercenként
meinheld 0,1 2927,62 [# / sec]
fapws3 0,6 1293,53 [# / sec]
sendfile
meinheld használja sendfile (2), több mint wgsi.file_wrapper.

követelmények :

  • Python

Más szoftver fejlesztő Yutaka Matsubara

Meinheld
Meinheld

1 Mar 15

Hozzászólások a meinheld

Hozzászólás nem található
Megjegyzés hozzáadása
Kapcsolja be a képeket!