Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Supercharging Drupal

Supercharging Drupal

My talk at DrupalCamp Cork about building a high-performance system stack.

3abfc9128fe1aeae3058edc36936f360?s=128

Jochen Lillich
PRO

November 08, 2013
Tweet

Transcript

  1. freistil.it Supercharging Drupal Jochen Lillich

  2. Jochen Lillich @geewiz Sysadmin since 1993 Managing director of freistil

    IT IT architect for freistilbox
  3. Tuning strategies 10 Optimise capacity 20 Minimise cost 30 Measure

    40 GOTO 10
  4. None
  5. “They stink?”

  6. “They make you cry?”

  7. Layers

  8. Browser Apache File System Static files

  9. Tuning Linux Fast disks File system cache File system layout

  10. Tuning Apache MaxClients & Co. KeepAlive CPU with AES support

  11. Browser Apache File System Drupal MySQL PHP

  12. Tuning MySQL Disk drives InnoDB Buffers tmpdir

  13. Optimise your f%#§ing
 SQL queries!

  14. Tuning PHP Get many CPU cores Use an opcode cache

  15. Browser Apache File System Opcode Cache MySQL PHP APC

  16. Tuning APC 64-128 MB Check apc.php

  17. Tuning Drupal Compression Aggregation Caches Choose modules wisely

  18. Browser Apache Object Cache MySQL PHP memcached memcached

  19. Configuration $conf['cache_default_class'] = 'MemCacheDrupal'; ! $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

  20. Browser Apache HTTP Cache Varnish

  21. Drupal configuration

  22. Cache headers HTTP/1.1 200 OK Date: Wed, 06 Nov 2013

    17:30:00 GMT X-Drupal-Cache: MISS Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Wed, 06 Nov 2013 17:29:45 +0000 Cache-Control: public, max-age=3600 X-Generator: Drupal 7 (http://drupal.org) Vary: Cookie,Accept-Encoding Age: 14 X-Varnish-Cache: HIT X-Varnish-Cache-Hits: 2
  23. Tuning Varnish Modules: Purge, Varnish Optimise VCL logic IsVarnishWorking.com

  24. http://www.flickr.com/photos/seriousbri/4020277369

  25. Browser Apache Search Engine MySQL PHP Solr

  26. Tuning Solr Caching # of indexed/stored fields mergeFactor Sharding

  27. Other approaches CDN Load balancing

  28. Daily practice Management Updates Monitoring Metrics … Know-how

  29. We’re hiring!

  30. Thanks! Questions? ! jochen@freistil.it