홍민희 블로그가 이전됐습니다.
내용은 위치만 다음 URL로 이동했을 뿐, 여전히 보존되어 있습니다.
http://blog.hongminhee.org/2012/02/27/18355002657/

seen from Malaysia
seen from Türkiye
seen from United States

seen from Singapore
seen from United Kingdom

seen from United States
seen from China

seen from United Kingdom
seen from China
seen from United States
seen from Saudi Arabia
seen from China
seen from Pakistan

seen from United Kingdom
seen from China
seen from Indonesia
seen from Kazakhstan
seen from United States
seen from China
seen from Netherlands
홍민희 블로그가 이전됐습니다.
내용은 위치만 다음 URL로 이동했을 뿐, 여전히 보존되어 있습니다.
http://blog.hongminhee.org/2012/02/27/18355002657/
비동기 I/O 라이브러리 아이디어
홍민희 블로그가 이전됐습니다.
내용은 위치만 다음 URL로 이동했을 뿐, 여전히 보존되어 있습니다.
http://blog.hongminhee.org/2012/01/03/15224896667/
Instalar lighttpd 1.5 con soporte async IO
Instalar libreria libaio
apt-get install libaio-dev
Bajamos la última versión de la versión 1.5 de lighttpd (no vale 1.4)
Podemos consultar las versiones en: http://blog.lighttpd.net/articles/tag/1.5.0
wget http://www.lighttpd.net/download/lighttpd-1.5.0-r1992.tar.gz
Instalamos herramientas para descomprimir (si fuera necesario)
apt-get install zip unzip tar
apt-get install libpcre3 libpcre3-dev
Descomprimimos
tar -zxvf lighttpd-1.5.0-r1992.tar.gz
Instalamos libreria glib
apt-get install libglib2.0
Configuramos, activando el soporte para el async I/O
./configure --with-linux-aio
make
make install
Preparamos el fichero de configuración y arranque por defecto al inicio.
sed -e 's/FOO/lighttpd/g' doc/rc.lighttpd > /etc/init.d/lighttpd
chmod a+rx /etc/init.d/lighttpd
update-rc.d lighttpd defaults
Copiamos el fichero de configuración a /etc/lighttpd/lighttpd.conf
Además de todos los parámetros necesarios, es importante activar la directiva de escritura asíncrona.
server.network-backend = "linux-aio-sendfile"
No está de más editar y revisar el fichero /etc/init.d/lighttpd creado, para asegurar que las rutas a los ejecutables/configuraciones son correctas.
Fuentes/Más info:
http://www.cyberciti.biz/tips/rhel-lighttpd-15-installation-configuration-howto.html
http://www.cyberciti.biz/tips/howto-increase-lighttpd-performance-with-linux-aio.html
http://redmine.lighttpd.net/wiki/lighttpd/InstallFromSource
Each Goliath request is executed in its own Ruby fiber and all asynchronous I/O operations can transparently suspend and later resume the processing without requiring the developer to write any additional code. Both request processing and response processing can be done in fully asynchronous fashion: streaming uploads, firehose API's, request/response, and so on.
A non-blocking async web-server written in Ruby, with quite good performance numbers.
Looks extra cool, can't wait to play with it on the new FS! API.