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.

Highly available Drupal on a Raspberry Pi cluster

3,802 views

Published on

Question: Can you run a Fortune 500 Drupal 8 website from your basement, on a cluster of Raspberry Pi computers?

Answer: See this presentation to find out! Jeff Geerling is the author of Ansible for DevOps and a Technical Architect at Acquia, who has worked on many large and small scale Drupal websites.

Published in: Software
  • Could you use an extra $1750 a week? I'm guessing you could right? If you would like to see how you could make this type of money, right from the comfort of your own home, you absolutely need to check out this short free video. ♥♥♥ http://scamcb.com/ezpayjobs/pdf
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ❶❶❶ http://bit.ly/39pMlLF ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ❤❤❤ http://bit.ly/39pMlLF ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • MADE $30 ON MY FIRST DAY! Being a fresh graduate and having lots of free time, I stumbled upon your site when I was searching for work at home opportunities, good thing I did! Just on my first day of joining I already made $30! Now I'm averaging close to $80 a day just for filling out surveys! ▲▲▲ http://ishbv.com/goldops777/pdf
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Wow! That's really cool!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Highly available Drupal on a Raspberry Pi cluster

  1. 1. Highly Available Drupal on a Raspberry Pi Cluster Jeff Geerling, php[tek] 2016 (geerlingguy) http://www.shockinglydelicious.com/dorothys-fresh-raspberry-pie-recipe/
  2. 2. http://www.shockinglydelicious.com/dorothys-fresh-raspberry-pie-recipe/
  3. 3. The Big Question Can you run a Fortune 500 website in your basement?
  4. 4. Another Question Why would you?
  5. 5. Gateway 2000 486 PC, RedHat Linux 6 1999
  6. 6. Whistle Interjet, running FreeBSD 4
  7. 7. Raspberry Pi 1 model B
  8. 8. Problems with one Pi
  9. 9. Problems with one Pi • No redundancy
  10. 10. Problems with one Pi • No redundancy • microSD card reliability
  11. 11. Problems with one Pi • No redundancy • microSD card reliability • No database backup
  12. 12. Problems with one Pi • No redundancy • microSD card reliability • No database backup • Limited resources
  13. 13. • No redundancy • microSD card reliability • No database backup • Limited resources High Availability Single Pi Multi Pi
  14. 14. • Easy redundancy• No redundancy • microSD card reliability • No database backup • Limited resources High Availability Single Pi Multi Pi
  15. 15. • Easy redundancy • Can hot-swap a Pi • No redundancy • microSD card reliability • No database backup • Limited resources High Availability Single Pi Multi Pi
  16. 16. • Easy redundancy • Can hot-swap a Pi • Hot database backup • No redundancy • microSD card reliability • No database backup • Limited resources High Availability Single Pi Multi Pi
  17. 17. • Easy redundancy • Can hot-swap a Pi • Hot database backup • Each server optimized • No redundancy • microSD card reliability • No database backup • Limited resources High Availability Single Pi Multi Pi
  18. 18. 2014
  19. 19. CPU 20 cores / 6 GHz RAM 5 GB Storage 80 GB microSD Network 10/100 over Gig www.pidramble.com Raspberry Pi Cluster
  20. 20. Problem How do you wrangle all these Pis?
  21. 21. “Configuration management for humans.”
  22. 22. “Configuration management for humans.” ___________ < And cows! > ----------- ^__^ (oo)_______ (__) )/ ||----w | || ||
  23. 23. Source: https://flic.kr/p/nkcFoU
  24. 24. Demo
  25. 25. How did it do?
  26. 26. Benchmarks Benchmark Standard Uptime 99.95% Max page loads/sec 1000 Power Consumption 0.5 Gflops/watt
  27. 27. Benchmarks - Uptime (as measured by Server Check.in)
  28. 28. Benchmarks - Performance Nginx, Cached Page 3160 req/s Drupal, Cached Page 34 req/s Drupal, Uncached Page 12 req/s For comparison: • My MacBook Air: 6x faster • DigitalOcean droplets: 10x faster
  29. 29. Benchmarks - Power Raspberry Pi 3 260 mA Raspberry Pi 2 220 mA Raspberry Pi Zero 80 mA (power draw at idle)
  30. 30. Benchmarks - Power Raspberry Pi 2 0.15 Gflops/watt For comparison: • Core i7: 0.5 Gflops/watt Source: http://www.phoronix.com/scan.php?page=article&item=raspberry-pi-burst&num=3
  31. 31. *
  32. 32. Go Small or Go Home
  33. 33. Lessons Learned
  34. 34. Lessons Learned Test one change at a time.
 Rinse and repeat.
  35. 35. Lessons Learned Networks are always reliable.
  36. 36. Lessons Learned Networks are always reliable. NEVER!
  37. 37. The Big Question Can you run a Fortune 500 website in your basement?
  38. 38. Resources • www.pidramble.com • Jeff Geerling's Blog • Win the Pi Zero! Subscribe on
 www.ansiblefordevops.com

×