¸ÞÀÎ ·»µå ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Yutaka Matsubara
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/mopemope/
¸ÞÀÎ ·»µå ű×
¸ÞÀÎ ·»µå ¼³¸í
°í¼º´É ºñµ¿±â ÆÄÀ̽ã WSGI À¥ ¼¹ö Meinheld´Â FAPWS3, Tornado.Meinheld¿Í °°Àº ¶Ç ´Ù¸¥ ºñµ¿±â À¥ ¼¹öÀÔ´Ï´Ù. Pypi : Easy_install -zu Meinheldinstall ¼Ò½º : Python Setup.py installmeinheld Áö¿ø Gunicorn. Gunicorn : Easy_install -zu GunicornBasic UsageSimple WSGI ¾Û : MeInheld Import ServerDef Hello_World (Environ, Start_Response) : status = '200 OK'Res = "Hello World!" ´äº¯ _Headers = start_response (status, reswinder_headers) Server.Listen ( "0.0 .0.0 ", 8000)) ±º´ë°¡ÀÖ´Â server.run (hello_world). »ç¿ëÀÚ ±Ù·ÎÀÚ Å¬·¡½º "meinheld.gmeinheld.meinheldworker": $ gunicorn-workers = 2 - worker-class = "meinheld.gmeinheld.meinheldworker"gunicorn_test : appperformancemeinheld´Â °í¼º´É http_parser¸¦ »ç¿ëÇÕ´Ï´Ù. (http://github.com/ RY / HTTP-Parser) ¹× °í¼º´É À̺¥Æ® ¶óÀ̺귯¸® Picoev »ç¿ë (http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html) º¥Ä¡ ¸¶Å© °£´ÜÇÑ Hello_World º¥Ä¡ : Def Hello_World (environ, start_response) : status = '200 OK'Res = "Hello World!" ÀÀ´ä _ Çì´õ = start_response (status, resoces_headers) ¹Ýȯ Apach º¥Ä¡ »ç¿ë : $ ab - C 100-N 10000 http://127.0.0.1:8000/SPEC * CPU : ÀÎÅÚ (R) ¿øÀÚ (TM) CPU N270 @ 1.60GHz * emoy : 1g * OS : Ubuntu 10.04 ¼¹ö ´ç 0.04Server ¿äû 2927.62 FAPWS30.61293.53 SendFileMeInheld´Â wgsi.file_wrapper¸¦ ÅëÇØ SendFile (2)À» »ç¿ëÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã
¸ÞÀÎ ·»µå °ü·Ã ¼ÒÇÁÆ®¿þ¾î