tuning drupal for scale and performance

Post on 22-Nov-2014

8.981 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

"Drupal can't scale" has almost reached urban legend status. Talk to anyone not familiar with Drupal and you're certain to hear this criticism of Drupal. WorkHabit has scaled sites to handle the traffic from millions of active users and we'll explain strategies for scaling Drupal. This session will show you how to make Drupal scale on everything from shared hosting to large-scale clusters. You'll learn things you can do immediately to improve performance, reduce your server load, and increase the number of users your site can support. Whether you're a new site administrators or an old Drupal hack, you're sure to pick up some useful tips from this session. We'll talk about caching, tuning your code and database, and how to make Drupal handle billions of pageviews per month. This is an interactive session and asking questions during the presentation is encouraged.

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