Agenda●   About Kite Systems and myself●   Performance●   Caching●   Scaling●   Optimizing
Kite Systems is an Agile development house which means the client is actively involved    all the way through the developm...
Join Us
About myself, Gerald Villorente●   Web Developer/themer at Kite Systems Inc.●   Drupal developer since 2010●   Drupal PH k...
Why Drupal is Slow?
Performance●   Short response time (milliseconds per page)●   High throughput (rate of processing work,    e.g. page per s...
Our Objectives●   Improving system performance from what it    is at present●   Faster response to the end user per page● ...
●   Each objective is different, but they can be    related●   Everyone wants them, but not willing to    PAY!
Why Drupal is slow?
Why Drupal is slow?●   Drupal is not really slow at all
Why Drupal is slow?●   Drupal is not really slow at all●   Server (web server, SQL server)
Why Drupal is slow?●   Drupal is not really slow at all●   Server (web server, SQL server)●   Drupal (caching, aggregation...
Why Drupal is slow?●   Drupal is not really slow at all●   Server (web server, SQL server)●   Drupal (caching, aggregation...
Server: Optimization●   Benchmarking Apache with ab    ab -n 500 -c 50 http://mydomain.com/index.php    Rule of Thumb:    ...
Load Average
Demo of Drupal Modules
Caching●   Varnish●   Memcache●   Boost●   Drupal Internal Caching
Cache Storage
Varnish Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerator...
Varnish
APC The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robu...
APC
APC
Memcache Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended f...
Memcache
Boost Boost provides static page caching for Drupal enabling a very significant performance and scalability boost for site...
Boost
Scaling●   Load balancer●   Database Cluster
Drupal Performance and Scaling
Drupal Performance and Scaling
Drupal Performance and Scaling
Upcoming SlideShare
Loading in...5
×

Drupal Performance and Scaling

2,468

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,468
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
17
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Drupal Performance and Scaling

  1. 1. Agenda● About Kite Systems and myself● Performance● Caching● Scaling● Optimizing
  2. 2. Kite Systems is an Agile development house which means the client is actively involved all the way through the development process. We build high quality, secure platforms using Java J2EE, Microsoft .NET, Ruby on Rails, PHP and Python.
  3. 3. Join Us
  4. 4. About myself, Gerald Villorente● Web Developer/themer at Kite Systems Inc.● Drupal developer since 2010● Drupal PH kids mentor
  5. 5. Why Drupal is Slow?
  6. 6. Performance● Short response time (milliseconds per page)● High throughput (rate of processing work, e.g. page per second)● Low utilization of computing resources (CPU, memory, disk, network)
  7. 7. Our Objectives● Improving system performance from what it is at present● Faster response to the end user per page● Handle more page views● Minimize downtime
  8. 8. ● Each objective is different, but they can be related● Everyone wants them, but not willing to PAY!
  9. 9. Why Drupal is slow?
  10. 10. Why Drupal is slow?● Drupal is not really slow at all
  11. 11. Why Drupal is slow?● Drupal is not really slow at all● Server (web server, SQL server)
  12. 12. Why Drupal is slow?● Drupal is not really slow at all● Server (web server, SQL server)● Drupal (caching, aggregations, modules, 404)
  13. 13. Why Drupal is slow?● Drupal is not really slow at all● Server (web server, SQL server)● Drupal (caching, aggregations, modules, 404)● Hardware (memory, CPU) - Shared hosting - Dedicated/VPS - Local Development Environment
  14. 14. Server: Optimization● Benchmarking Apache with ab ab -n 500 -c 50 http://mydomain.com/index.php Rule of Thumb: Allocate 50% of the available physical memory to Apache. So, 250M / 20M per process = 12 httpd processes maximum.
  15. 15. Load Average
  16. 16. Demo of Drupal Modules
  17. 17. Caching● Varnish● Memcache● Boost● Drupal Internal Caching
  18. 18. Cache Storage
  19. 19. Varnish Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, such as Squid, which began life as a client-side cache, or Apache and nginx, which are primarily origin servers, Varnish was designed as an HTTP accelerator.
  20. 20. Varnish
  21. 21. APC The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
  22. 22. APC
  23. 23. APC
  24. 24. Memcache Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
  25. 25. Memcache
  26. 26. Boost Boost provides static page caching for Drupal enabling a very significant performance and scalability boost for sites that receive mostly anonymous traffic .
  27. 27. Boost
  28. 28. Scaling● Load balancer● Database Cluster
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×