high availability high performance
play

High Availability High Performance How to sleep without the - PowerPoint PPT Presentation

High Availability High Performance How to sleep without the server-crash-fear Michael Schmid michael@amazeelabs.com @schnitzel High Availability no Single Point of Failure Redundancy High Performance Response times


  1. High Availability High Performance How to sleep without the server-crash-fear Michael Schmid michael@amazeelabs.com @schnitzel

  2. High Availability •no „Single Point of Failure“ •Redundancy

  3. High Performance •Response times •Caching •HTML •Data (serialized) •Scalable • adding easy and fast more servers

  4. Scalable & Redundancy Server System

  5. starting position

  6. Goal

  7. starting position

  8. Two Webserver

  9. Apache • APC • precompiled • keeps files in memory

  10. nginx • lightweight Webserver • Reverse Proxy • Loadbalander • can be faster • more knowledge needed

  11. Two Webserver MySQL?

  12. starting position

  13. dedicated MySQL

  14. second Webserver

  15. How to Access? ?

  16. Loadbalancer

  17. Loadbalancer •passes through requests • „Man in the middle“

  18. Loadbalancer

  19. second Loadbalancer

  20. second Loadbalancer files?

  21. NFS NFS

  22. NFS NFS fallback?

  23. GlusterFS

  24. GlusterFS •Distributed Filesystem • multiple Server/Clients • auto-heal • split-brain • Not soo fast

  25. GlusterFS

  26. second GlusterFS

  27. MySQL fallback?

  28. MySQL Master/Slave •Master •WRITE •Slave •READ •Hot Spare •Slave become Master

  29. MySQL

  30. MySQL

  31. Memcache memcache?

  32. Memcache •Replaces “_chache“ tables •Key / Value Store •Fast •Memory only •own Server

  33. Memcache

  34. Memcache

  35. Varnish Varnish Varnish

  36. Varnish •Reverse Proxy •Caches full HTML Pages •Hates Cookies/Sessions •No SSL •Drupal 6 •Pressflow •Drupal 7 & 8 •in Core

  37. ESI (Edge Side Includes)

  38. ttl=1h pass

  39. ESI <esi:include src="http://www.osec.ch/userblock" /> •Cache whole page, load only small parts •Varnish / Squid / Nginx (SSI) •Drupal Module •blocks, panel panes, context module

  40. Questions? Michael Schmid michael@amazeelabs.com @schnitzel

Recommend


More recommend