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

BOA Drupal camp Serbia 2014

BOA Drupal camp Serbia 2014

Barracuda on Aegir is a Drupal hosting solution. This talk was given for Drupal Camp Serbia held in Novi Sad on October 31, 2014.

Mladen Đurić

October 31, 2014
Tweet

More Decks by Mladen Đurić

Other Decks in Programming

Transcript

  1. 2

  2. MLADEN ĐURIĆ a.k.a MacMladen • in IT since the time

    of mainframes, 8th year in UNIX epoch. • started with Z80 assembly, went over 6502 to 8086 (1978-1990) • somewhere in between, there was an episode with BASIC but really enjoyed hard core C • was knee deep in DTP 1990-2000 • gone to Mac in 1995 and never looked back • 2005 started playing with web technologies • 2007 landed on Drupal :D 3
  3. 5

  4. NOT ALL HOSTINGS ARE THE SAME Requirements: • some Linux

    • Apache • PHP • MySQL • FTP • SSH access • Unlimited everything • Disk • Transfer • Domains • Databases • Users 7
  5. HITTING THE WALL The limits • CPU • Memory •

    Database • Caching (APC, opcache) • Extra PHP stuff (uploadprogress, xdebug) • Tweaks 8
  6. DREAMHOST: LOVE & HATE Tuned: • Users: unlimited! • Memory:

    .htaccess raised! • Database: horor, hell. • Caching (APC, opcache) — added! • Extra PHP stuff added! (uploadprogress, xdebug) • Tweaks — totally customized :D 9
  7. IMPORTANT QUESTIONS Who you are? • Service or VPS? Who

    your clients are? • Service or VPS? System skill level • Will you be able to cope with system maintaining Resources needed • Service or VPS? • Sites • Memory • CPU • Disk • Transfer • SSL • IP Budget Client expectations, sensitivity • Security, maintenance, performance World region • Proximity to client market 12
  8. AMAZON WEB SERVICES EC2 t2.micro: • 1 CPU • 1

    GB • 30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 13
  9. ACQUIA CLOUD EC2 t2.micro: • 1 CPU • 1 GB

    • 30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 14
  10. GET PANTHEON EC2 t2.micro: • 1 CPU • 1 GB

    • 30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 15
  11. OMEGA8.CC EC2 t2.micro: • 1 CPU • 1 GB •

    30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 16
  12. PLATFORM.SH EC2 t2.micro: • 1 CPU • 1 GB •

    30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 17
  13. SOME OTHER? EC2 t2.micro: • 1 CPU • 1 GB

    • 30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 18
  14. SUMMARY EC2 t2.micro: • 1 CPU • 1 GB •

    30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 19
  15. AWS FREE TIER MICRO INSTANCE EC2 t2.micro: • 1 CPU

    • 1 GB • 30 GB of EBS • World region • Spot vs Reserved • Load balancing http://aws.amazon.com/ec2/pricing/ 21
  16. $10 = 1 CPU, 1GB, 30GB • Cheaper plan is

    just too small. • 1GB is enough for moderate use but will not allow Solr and memory use will be ~700-800MB active • 2GB would raise MySQL cache, allow for Solr (~200MB) and leave some room for more performance. • 4GB is expensive -> Dedicated 23
  17. INSTANCE BUILD: DEBIAN 7 32BIT • Debian: 6 or 7

    • Ubuntu • CentOS • FreeBSD • Darwin/Mac? • some exotic? • 32 bit
 No need for less than 4GB • 64 bit
 Imperative if you have more than 4GB 24
  18. SUPPORTED LTS OS 32/64BIT MINIMAL ON SERVER OR DESKTOP ON

    LOCALHOST • Debian 7 Wheezy (recommended) • Debian 6 Squeeze (fully supported with automatic upgrade to Wheezy available) • Ubuntu Trusty 14.04 (limited support) • Ubuntu Precise 12.04 (limited support) • Ubuntu Lucid 10.04 (limited support) 25
  19. 27

  20. AEGIR • Debian: 6 or 7 • Ubuntu • CentOS

    • FreeBSD • Darwin/Mac? • some exotic? • 32 bit
 No need for less than 4GB • 64 bit
 Imperative if you have more than 4GB 28
  21. REQUIREMENTS FOR BOA • wget must be installed. • The

    git standard port 9418 must be open. • SMTP standard port 25 (or SMTP relay) must be open for outgoing connections. • Minimum 1 GB of RAM • Locales with UTF-8 support, otherwise en_US.UTF-8 (default) is forced. • Basic sysadmin skills and experience. • Willingness to accept BOA PI (paranoid idiosyncrasies). 30
  22. BOA INSTALLATION IMPORTANT! • Don't run any installer via sudo.

    • You must be logged in as root or `sudo -i` first. • Don't run any system updates before running Barracuda installer. • You should use vanilla system. # cd # wget -q -U iCab http://files.aegir.cc/BOA.sh.txt # bash BOA.sh.txt 31 You are prepared now. But before starting installation, you have to configure it first.
  23. Q & A BARRACUDA ON AEGIR ~ MY FIRST YEAR

    ~ Mladen Đurić @macmladen 34