Drupal Performance

1,951 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,951
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Drupal Performance

  1. 1. Drupal and Performance Kornel Lugosi (@Coornail) Pronovix November 5, 2010
  2. 2. Performance / Scaling Performance != Scaling
  3. 3. Backend
  4. 4. Know your parts Linux Apache (/nginx/Lighttpd) Mysql (/postgreSQL/sqlite) PHP
  5. 5. Webserver Apache Nginx lighttpd ...
  6. 6. Nginx vs Apache
  7. 7. Reverse proxy for anonymous users Varnish Nginx
  8. 8. Varnish
  9. 9. Hardware RAM.
  10. 10. PHP Opcode caches: APC XCache Zend Optimizer
  11. 11. Opcode caches
  12. 12. Cutting-edge mod performance
  13. 13. Measure
  14. 14. Measure Apache Benchmark (ab) Jmeter Firebug
  15. 15. Jmeter
  16. 16. Monitor
  17. 17. Monitor Munin Cacti Nagios
  18. 18. Front-end
  19. 19. HTTP requests JavaScript aggregation CSS aggregation mod expires
  20. 20. Parralelize downloads Use content delivery network: Parralel module CDN module SimpleCDN module
  21. 21. Compress mod deflate
  22. 22. mod deflate
  23. 23. Utilize cache mod expires
  24. 24. Keep it minimal Reduce DOM elements Reduce DNS lookups
  25. 25. Images Letting them 404 is very expensive in Drupal 6! optipng jpegtrans
  26. 26. Drupal-related
  27. 27. Anonymous vs Logged in
  28. 28. Database engines
  29. 29. Pressflow Drupal fork Optimized for performance Only supports mysql Supports reverse proxies(!) Database replication
  30. 30. Pressflow
  31. 31. Pressflow and Varnish at CEU
  32. 32. Performance related modules memcached cache router boost

×