tuning drupal for scale and performance
Post on 22-Nov-2014
8.981 Views
Preview:
DESCRIPTION
TRANSCRIPT
Tuning Drupal for Scale and Performance
What is scaling?
It’snotaboutHowFast
• How Much
• How Much
It’sallaboutCapacity
What can scale...
What can scale...
Drupal
What can scale...
DrupalYour Code
What can scale...
DrupalYour Code
Server
What can scale...
DrupalYour Code
ServerArchitecture
Scaling Drupal
• Module bloat• Index optimization• MySQL Engine Selection• Cache
Caching
Built-in caching
Caching
Built-in caching
Caching
73%
Built-in caching
CSS Aggregation
Caching
Built-in caching
CSS Aggregation
Block Cache
Caching
Built-in caching
CSS Aggregation
Block Cache
Advanced Cache
Caching
Built-in caching
CSS Aggregation
Block Cache
Advanced Cache
Boost
Caching
Scaling your install
• Load testing• Code performance• Query optimization
Drupal Infrastructure
• Memcached • Caching proxy• Scale Databases out• Offload static content– Content Delivery Network– Second lightweight web server– S3
Opcode Caches
GraphfromDriesBuytaert
Server Tuning
• RAM• Apache Processes• Replace Apache with Nginx and FastCGI• Replace PHP with Resin• Monitoring
Resin
Hardware scaling
UP OUT
Scaling High Points
• Cache as much as possible• Tune your queries• Tune your code• Don’t install stuff you don’t need• Serve Drupal from one server, static from
another• Run an opcode cache
Adam KalseyVP of Productsadam@workhabit.com
866-WorkHabithttp://workhabit.com/
top related