Optimización Servidor Web
David Muñoz @dperilla
¿Quién soy?• David Muñoz - CEO Quaip Solutions SL
• @dperilla en twitter
• VoipEngineer con Asterisk / Kamailio desde 2003
• SysAdmin Linux desde 1999
• Formador online de Asterisk, Virtualización y Linux desde 2007
Características clave
Balanceo de Carga
Failover
Cache en memoria
Replicación de datos
Evitar POFs (Point of failure)
Características clave
BalanceadoresBalanceadores software
Haproxy
LVS
Balanceadores hardware
Productos F5
Netscaler
Servidores Web
Apache
Nginx
Cherokee
Lighthttpd
Almacenamiento
Nfs
ISCSI
GlusterFS
DRBD + OCFS2
GlusterFs
Cluster
listen http_proxy 0.0.0.0:80! mode http balance leastconn # Load Balancing algorithm option httpchk GET / HTTP/1.0! server tub02 10.0.0.15:80 weight 60 cookie srv02 check backup server tub01 10.0.0.17:80 weight 40 cookie srv01 check!listen rtmp :1935 mode tcp balance roundrobin server tubfms02.voipystream.com 10.0.0.11:1935 check server tubfms01.voipystream.com 10.0.0.8:1935 check
Ejemplo básico Haproxy
Trucos
Scripts con Rsync
Cloudflare DNS en tiempo real
+ Simple - Fallos
Crecimiento siempre horizontal
Stats Haproxy
Gracias!@dperilla