Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Drupal High Availability High Performance 2012

21,776 views

Published on

Published in: Technology

Drupal High Availability High Performance 2012

  1. 1. DrupalHigh AvailabilityHigh Performance
  2. 2. DrupalHigh AvailabilityHigh PerformanceHow to sleep without the server-crash-fear
  3. 3. High Availability
  4. 4. High Availability• no „Single Point of Failure“
  5. 5. High Availability• no „Single Point of Failure“• Redundancy
  6. 6. High Performance
  7. 7. High Performance• Response times
  8. 8. High Performance• Response times• Caching
  9. 9. High Performance• Response times• Caching • HTML
  10. 10. High Performance• Response times• Caching • HTML • Data (serialized)
  11. 11. High Performance• Response times• Caching • HTML • Data (serialized)• Scalable
  12. 12. High Performance• Response times• Caching • HTML • Data (serialized)• Scalable • adding easy and fast more servers
  13. 13. Scalable & Redundancy Server System
  14. 14. starting position
  15. 15. GoalVarnish Varnish
  16. 16. starting position
  17. 17. Two Webserver
  18. 18. Apache/PHP
  19. 19. Apache/PHP• APC
  20. 20. Apache/PHP• APC • precompiled
  21. 21. Apache/PHP• APC • precompiled • keeps files in memory
  22. 22. nginx?
  23. 23. nginx?• lightweight Webserver
  24. 24. nginx?• lightweight Webserver• Reverse Proxy
  25. 25. nginx?• lightweight Webserver• Reverse Proxy• Loadbalander
  26. 26. nginx?• lightweight Webserver• Reverse Proxy• Loadbalander• can be faster
  27. 27. nginx?• lightweight Webserver• Reverse Proxy• Loadbalander• can be faster• more knowledge needed
  28. 28. Two Webserver MySQL?
  29. 29. starting position
  30. 30. dedicated MySQL
  31. 31. second Webserver
  32. 32. How to Access? ?
  33. 33. Loadbalancer
  34. 34. Loadbalancer
  35. 35. Loadbalancer• passes through request
  36. 36. Loadbalancer• passes through request • „Man in the middle“
  37. 37. Loadbalancer
  38. 38. second Loadbalancer
  39. 39. second Loadbalancer files?
  40. 40. NFS NFS
  41. 41. NFS NFSfallback?
  42. 42. GlusterFS
  43. 43. GlusterFS
  44. 44. GlusterFS• Distributed Filesystem
  45. 45. GlusterFS• Distributed Filesystem • multiple Server/Clients
  46. 46. GlusterFS• Distributed Filesystem • multiple Server/Clients• auto-heal
  47. 47. GlusterFS• Distributed Filesystem • multiple Server/Clients• auto-heal• split-brain
  48. 48. GlusterFS• Distributed Filesystem • multiple Server/Clients• auto-heal• split-brain• Not so fast
  49. 49. GlusterFS
  50. 50. second GlusterFS
  51. 51. MySQLfallback?
  52. 52. MySQL Master/Slave
  53. 53. MySQL Master/Slave• Master
  54. 54. MySQL Master/Slave• Master • WRITE
  55. 55. MySQL Master/Slave• Master • WRITE• Slave
  56. 56. MySQL Master/Slave• Master • WRITE• Slave • READ
  57. 57. MySQL Master/Slave• Master • WRITE• Slave • READ• Hot Spare
  58. 58. MySQL Master/Slave• Master • WRITE• Slave • READ• Hot Spare • Slave becomes Master
  59. 59. MySQL
  60. 60. MySQL
  61. 61. Memcache memcache?
  62. 62. memcache
  63. 63. memcache• Replaces “_cache“ tables
  64. 64. memcache• Replaces “_cache“ tables• Key / Value Store
  65. 65. memcache• Replaces “_cache“ tables• Key / Value Store• Fast
  66. 66. memcache• Replaces “_cache“ tables• Key / Value Store• Fast• Memory only
  67. 67. memcache• Replaces “_cache“ tables• Key / Value Store• Fast• Memory only• own Server
  68. 68. Memcache
  69. 69. VarnishVarnish Varnish
  70. 70. Varnish
  71. 71. Varnish• Reverse Proxy
  72. 72. Varnish• Reverse Proxy• Hates Cookies/Sessions
  73. 73. Varnish• Reverse Proxy• Hates Cookies/Sessions• No SSL
  74. 74. Varnish• Reverse Proxy• Hates Cookies/Sessions• No SSL• Drupal 6
  75. 75. Varnish• Reverse Proxy• Hates Cookies/Sessions• No SSL• Drupal 6 • Pressflow
  76. 76. Varnish• Reverse Proxy• Hates Cookies/Sessions• No SSL• Drupal 6 • Pressflow• Drupal 7/8
  77. 77. Varnish• Reverse Proxy• Hates Cookies/Sessions• No SSL• Drupal 6 • Pressflow• Drupal 7/8 • in Core
  78. 78. tadaa!Varnish Varnish
  79. 79. Questions! Michael Schmidmichael@amazeelabs.com @schnitzel

×