high performance for small sites
play

High Performance for Small Sites John Bickar, Stanford - PowerPoint PPT Presentation

High Performance for Small Sites John Bickar, Stanford Web Services 1 What is a small site? Shared hos=ng Limited/no access to Linux/Apache layer


  1. High ¡Performance ¡for ¡Small ¡Sites ¡ ¡ John ¡Bickar, ¡Stanford ¡Web ¡Services ¡ 1

  2. What ¡is ¡a ¡“small ¡site?” ¡ Shared ¡hos=ng ¡ Limited/no ¡access ¡to ¡Linux/Apache ¡layer ¡ Small ¡VPS ¡ Cannot ¡install ¡Varnish, ¡memcache, ¡etc. ¡

  3. What ¡is ¡a ¡“small ¡site?” ¡ If ¡you ¡run: ¡ ¡ $ sudo apt-get install varnish ¡ And ¡it ¡returns, ¡“ user ¡not ¡sufficiently ¡super ,” ¡you ¡ might ¡have ¡a ¡small ¡site. ¡

  4. YOUR ¡SLOW ¡DRUPAL ¡SITE ¡

  5. What you want.

  6. What you can make your users think you have.

  7. What you’re still not going to get.

  8. The ¡Crea=on ¡of ¡a ¡Slow ¡Drupal ¡Site ¡ A ¡play ¡in ¡four ¡acts ¡

  9. ACT ¡I: ¡INCEPTION ¡

  10. “We ¡need ¡a ¡Drupal!” ¡

  11. ACT ¡II: ¡CREATION ¡

  12. Work, ¡work, ¡work ¡

  13. ACT ¡III: ¡EXPANSION ¡

  14. “That’s ¡great!” ¡ George ¡Foreman ¡grill ¡ Discussion ¡forums ¡ “Can ¡we ¡add…” ¡ Custom ¡web ¡app ¡ Events ¡ Custom ¡breadcrumbs ¡ Mobile ¡device ¡detec=on ¡ Contact ¡form ¡ Custom ¡.tpl.php ¡ Restricted ¡content ¡ Field-­‑level ¡permissions ¡ Slap ¡Chop ¡ GI ¡Joe ¡with ¡the ¡kung-­‑fu ¡grip ¡ Room ¡reserva=ons ¡ Seventeen ¡more ¡roles ¡ Publishing ¡workflow ¡ Ten ¡more ¡content ¡types ¡

  15. ACT ¡IV: ¡DECELERATION ¡

  16. Ini=al ¡Assessment ¡ Priori=es ¡ Resources ¡ Traffic ¡ Hos=ng ¡Op=ons ¡ May ¡5th, ¡2012 ¡ 21

  17. Assessing ¡Performance ¡ Bo^lenecks ¡ Who? ¡ What? ¡ Where? ¡ When? ¡ Why? ¡ May ¡5th, ¡2012 ¡ 22

  18. General ¡Tips ¡ Disable ¡unnecessary ¡modules ¡ Delete ¡unnecessary ¡modules ¡ May ¡5th, ¡2012 ¡ 23

  19. General ¡Tips ¡ Drupal ¡core ¡performance ¡se`ngs ¡ Use ¡them ¡ admin/se`ngs/performance ¡(D6) ¡ admin/config/development/performance ¡(D7) ¡ May ¡5th, ¡2012 ¡ 27

  20. Tes=ng ¡Tools ¡ YSlow ¡ Inspector ¡in ¡Chrome, ¡Safari ¡ ApacheBench ¡ May ¡5th, ¡2012 ¡ 28

  21. Advanced ¡Performance ¡-­‑ ¡Caching ¡ Cache ¡Rules ¡Everything ¡Around ¡Me ¡ Cache ¡gets ¡stale ¡ May ¡5th, ¡2012 ¡ 29

  22. Advanced ¡Performance ¡-­‑ ¡Caching ¡ cron ¡ 32 * * * * curl -sS http://www.example.com/foo > \ /dev/null May ¡5th, ¡2012 ¡ 30

  23. Advanced ¡Performance ¡-­‑ ¡Caching ¡ Views ¡caching ¡ Panels ¡caching ¡ Boost ¡ AuthCache ¡ May ¡5th, ¡2012 ¡ 31

  24. Prove ¡it ¡ techcommons.stanford.edu ¡ Homepage ¡load ¡=me ¡with ¡uncached ¡ View: ¡ 9.7 ¡seconds ¡

  25. Prove ¡it ¡ techcommons.stanford.edu ¡ Homepage ¡load ¡=me ¡ager ¡enabling ¡ Views ¡caching: ¡ 2.8 ¡seconds ¡

  26. Prove ¡it ¡ techcommons.stanford.edu ¡ Homepage ¡load ¡=me ¡ager ¡enabling ¡ Boost ¡caching: ¡ 117 ¡milliseconds ¡

  27. Advanced ¡Performance ¡-­‑ ¡ Debugging ¡ Devel ¡ May ¡5th, ¡2012 ¡ 35

  28. Summary ¡ ¡ ¡ Keep ¡Calm ¡ Know ¡thy ¡users ¡ And ¡ Know ¡thy ¡content ¡ DRUPAL ¡ON ¡ Know ¡thy ¡traffic ¡ May ¡5th, ¡2012 ¡ 39

  29. Appendix ¡ Linkies: ¡ • h^p://techcommons.stanford.edu/topics/web-­‑development/benchmarking-­‑site-­‑performance-­‑apachebench ¡ • h^p://techcommons.stanford.edu/topics/drupal/boost ¡ ¡ • h^p://techcommons.stanford.edu/topics/drupal/improving-­‑drupal-­‑performance-­‑and-­‑speed-­‑leland-­‑servers ¡ ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend