drupal performance
TRANSCRIPT
![Page 1: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/1.jpg)
Optimize Drupal siteperformance
Kornel Lugosi (@Coornail)
Pronovix
October 18, 2011
![Page 2: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/2.jpg)
,,Amazon found that+100ms increase inresponse time equaled -1%sales”
1
1http://htmlcssjavascript.com/web/why-front-end-performance-matters-to-everyone/
![Page 3: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/3.jpg)
,,Google found that +500msresponse time meant a 20%reduction in searches”
2
2http://htmlcssjavascript.com/web/why-front-end-performance-matters-to-everyone/
![Page 4: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/4.jpg)
Performance / Scaling
Performance != Scaling
![Page 5: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/5.jpg)
Performance
![Page 6: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/6.jpg)
Scaling
![Page 7: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/7.jpg)
Measure
![Page 8: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/8.jpg)
Measure
I Apache Benchmark (ab)
I Jmeter
I Firebug
![Page 9: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/9.jpg)
Jmeter
![Page 10: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/10.jpg)
Monitor
![Page 11: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/11.jpg)
Monitor
I Munin
I Cacti
I Nagios
![Page 12: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/12.jpg)
Backend
![Page 13: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/13.jpg)
Know your parts
I Linux
I Apache (/nginx/Lighttpd)
I Mysql (/postgreSQL/sqlite)
I PHP
![Page 14: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/14.jpg)
Webserver
I Apache
I Nginx
I lighttpd
I . . .
![Page 15: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/15.jpg)
Nginx vs Apache
![Page 16: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/16.jpg)
Reverse proxy foranonymous users
I Varnish
I Nginx
![Page 17: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/17.jpg)
Varnish
![Page 18: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/18.jpg)
Hardware
RAM.
![Page 19: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/19.jpg)
PHP
Opcode caches:
I APC
I XCache
I Zend Optimizer
![Page 20: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/20.jpg)
Opcode caches
![Page 21: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/21.jpg)
Front-end
![Page 22: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/22.jpg)
HTTP requests
I JavaScript aggregation
I CSS aggregation
I mod expires
![Page 23: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/23.jpg)
Parralelize downloads
Use content delivery network:
I Parralel module
I CDN module
I SimpleCDN module
![Page 24: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/24.jpg)
Compress
mod deflate
![Page 25: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/25.jpg)
mod deflate
![Page 26: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/26.jpg)
Utilize cache
mod expires
![Page 27: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/27.jpg)
Keep it minimal
I Reduce DOM elements
I Reduce DNS lookups
![Page 28: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/28.jpg)
Images
I Letting them 404 is veryexpensive in Drupal 6!
I optipng
I jpegtrans
![Page 29: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/29.jpg)
Drupal-related
![Page 30: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/30.jpg)
Anonymous vs Logged in
![Page 31: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/31.jpg)
Database engines
![Page 32: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/32.jpg)
Pressflow
I Drupal fork
I Optimized for performance
I Only supports mysql
I Supports reverse proxies(!)
I Database replication
![Page 33: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/33.jpg)
Pressflow
![Page 34: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/34.jpg)
Pressflow and Varnish atCEU
![Page 35: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/35.jpg)
Drupal 6 vs Drupal 7
![Page 36: Drupal Performance](https://reader033.vdocuments.us/reader033/viewer/2022060107/554bcf15b4c9058f6c8b4a2f/html5/thumbnails/36.jpg)
Performance relatedmodules
I memcached
I cache router
I boost