2. Agenda
● About Kite Systems and myself
● Performance
● Caching
● Scaling
● Optimizing
3.
4. 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.
8. 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)
9. 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
10. ● Each objective is different, but they can be
related
● Everyone wants them, but not willing to
PAY!
12. Why Drupal is slow?
● Drupal is not really slow at all
13. Why Drupal is slow?
● Drupal is not really slow at all
● Server (web server, SQL server)
14. Why Drupal is slow?
● Drupal is not really slow at all
● Server (web server, SQL server)
● Drupal (caching, aggregations, modules,
404)
15. 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
16. 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.
21. 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.
23. 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.
26. 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.
28. Boost
Boost provides static page caching for
Drupal enabling a very significant
performance and scalability boost for sites
that receive mostly anonymous traffic .