Integración de Drupal con SugarCRM - Jornada Drupal en Workbox 2010
Rendimiento Drupal
-
Upload
pedro-gonzalez-serrano -
Category
Technology
-
view
1.469 -
download
1
description
Transcript of Rendimiento Drupal
![Page 1: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/1.jpg)
Desde la perspectiva de un administrador de sistemas
RENDIMIENTO DRUPAL
http://creativecommons.org/licenses/by-sa/3.0/es/
![Page 2: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/2.jpg)
Fundador de SceneBeta.com +5 años con Drupal Administrador de sistemas Asesor de rendimiento
Pedro González Serrano @NITEMAN_es
![Page 3: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/3.jpg)
¿Por qué?
![Page 4: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/4.jpg)
El problema
Velocidad
Capacidad
Recursos
Condenados a escalar o morir de éxito
![Page 5: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/5.jpg)
¿Qué persigues?
Minimizar el tiempo de carga
Estabilidad
Maximizar la capacidad
Escalabilidad
cc imagen: http://www.flickr.com/photos/nostri-imago/
![Page 6: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/6.jpg)
ANALIZA TÚ PROBLEMA Conócete a ti mismo Mídelo Busca la parte del león
![Page 7: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/7.jpg)
¿Qué está pasando?
No todas las páginas cuestan lo mismo
Registrados / Anónimos: Perros y gatos
mid
e, m
ide,
mid
e, m
ide,
mid
e, m
ide,
mid
e, m
ide,
mid
e, m
ide,
mid
e, m
ide,
mid
e,
cc imagen: http://www.flickr.com/photos/helloturkeytoe/
![Page 8: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/8.jpg)
Herramientas
Tabla accesslog
Munin / Cacti
Servicios externos
Live Off-line Staging
Apache Benchmark
Jmeter
Maatkit
Devel
XHProf
Monit
![Page 9: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/9.jpg)
Ajusta y vuelve a empezar
![Page 10: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/10.jpg)
Las partes
![Page 11: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/11.jpg)
Arquitecturas I
Estrategia: escalar verticalmente
Estrategia: escalar horizontalmente
![Page 12: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/12.jpg)
Arquitecturas II
Estrategia: servir todo lo posible desde el extremo más próximo al usuario
Estrategia: Off-load de servicios (Solr)
PROXY DB
Memcached
HTTP
Solr
U
S
U
A
R
I
O
![Page 13: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/13.jpg)
Arquitecturas III
La complejidad tiene un coste
CD
NF
ire
wa
ll(s
)
Ba
lan
cea
do
res
Pro
xys
We
b H
ea
ds
Me
mca
che
d
So
lrD
BA
rch
ivo
s
![Page 14: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/14.jpg)
Un mundo de alternativas
![Page 15: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/15.jpg)
Proxy Cachés
![Page 16: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/16.jpg)
Formas de ejecutar PHP en un servidor HTTP
mod_php
• Aparentemente el más rápido
• Comparte APC entre instancias
FPM
• Apuesta de futuro
• Un daemon para PHP
mod_fcgi
• Compromiso velocidad / consumo recursos
FastCGI
• El método tradicional
¿alguna más?
![Page 17: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/17.jpg)
Servidores HTTP
![Page 18: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/18.jpg)
Servidores SQL (MySQL compatibles)
Un motor para cada necesidad
![Page 19: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/19.jpg)
cc imagen: http://www.flickr.com/photos/ephotography29/
elige tu veneno
![Page 20: Rendimiento Drupal](https://reader034.fdocuments.es/reader034/viewer/2022042500/547c2e81b4af9f9b158b513e/html5/thumbnails/20.jpg)
Hasta luego, y gracias por el pescado
píldoras:
Cuidado con cron: Blog de Metal Toad Media http://drpl.it/ZM4
Evita combinar NFS con .htaccess, lleva esas reglas al vhost
Aumenta la ventana inicial para la negociación TCP/IP: http://drpl.it/ZMJ