100 Drupal performance and scalability best practices Gord - - PowerPoint PPT Presentation

100 drupal performance and scalability best practices
SMART_READER_LITE
LIVE PREVIEW

100 Drupal performance and scalability best practices Gord - - PowerPoint PPT Presentation

100 Drupal performance and scalability best practices Gord Christmas gord.christmas@acquia.com Saturday, April 6, 13 1 Long tail of performance tuning 20% of the performance tuning will give 50% of the improvements Potentially a hundred


slide-1
SLIDE 1

100 Drupal performance and scalability best practices

Gord Christmas gord.christmas@acquia.com

1 Saturday, April 6, 13

slide-2
SLIDE 2

20% of the performance tuning will give 50% of the improvements Potentially a hundred improvements will add up to 50% more possible performance improvements. This can be very expensive and involve a lot of R&D, which can distract from creating business value. Advanced performance can not be fixed immediately

Long tail of performance tuning

2 Saturday, April 6, 13

slide-3
SLIDE 3

Performance and Scalability Options

Infrastructure set-up and

  • perations

Infrastructure Monitoring and tuning Developer tuning: Front and back-end Additional Hardware and Systems Customization

Different audiences have different skill sets

3 Saturday, April 6, 13

slide-4
SLIDE 4

Drupal scalable infrastructure

Content Delivery Network Load Balancer Web Servers Application Database Servers

4 Saturday, April 6, 13

slide-5
SLIDE 5

Systems by Service

CDN Proxy Cache Networked Object Cache Database

Database Caches Default Application Caches

Content Delivery Network Load Balancer Web Servers Database Servers Web Server Application Server

Opcode Cache

Application

Application

5 Saturday, April 6, 13

slide-6
SLIDE 6

Systems by Service

Cloudfront/Akamai Varnish/nginx Memcache Apache Database o PHP

APC

Drupal

Query Cache Drupal data

Content Delivery Network Load Balancer Web Servers Database Servers

Drupal’s Page, Block, Menu, Views, Panels, Entity caches

Drupal

6 Saturday, April 6, 13

slide-7
SLIDE 7

Profiling tools for systems

Akamai Varnish/nginx Memcache Apache Database PHP

APC

Drupal

Query Cache Drupal’s Page, Block, Menu, Views, Panels, Entity caches

Chrome developer tools, Yottaa, YSlow, Google PageSpeed Varnishhist, Varnishstat, varnishlog XHProf for PHP New Relic/Tracelytics for functions + DB + web trans + memcache Memslap & Mcstat & eviction stats Perf_stats mod for Memache and APC PKTools - very large Devel module Coder module Cache audit Percona Tool Kit (Maatkit) pk_query_digest NewRelic, Devel Module, Innotop Show process list Explain slow queries micro sec cache stampedes for Query caches

7 Saturday, April 6, 13

slide-8
SLIDE 8

Drupal layers for tuning and optimization

Presentation layer files Caches Application tuning features

8 Saturday, April 6, 13

slide-9
SLIDE 9

Drupal layers for tuning and

  • ptimization with recommendations

Varnish and/or CDN module Yottaa/YSlow Purge w/ Expire module for invalidation CSS & Javascript aggregation w/ module Gzip non-mobile pages (header specific) Advagg module

Presentation layer files Caches Application tuning features

Block cache (D7 has key) View_content_cache Optimize views API Panels_hash_cache Authcache(or Varnish) Entity cache (?) Cache_warmer for large data sets Cache feeds ESI module Drush core check (Hacked!) Use non-db logging backend (syslog) Disable core statistics, use ga_stats Disable theme rebuild Fast 404 module Use Acquia cloud cron-wrapper.sh Use Solr for search Views_lite_pager Disable unused modules in production: Devel, Coder, Simpletest, Views UI Cache busting modules/code

9 Saturday, April 6, 13

slide-10
SLIDE 10

Resources

http://msonnabaum.github.com/xhprof-presentation

http://www.acquia.com/files/Acquia-Hosting-Checklist.pdf

10 Saturday, April 6, 13