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

AWS & SilverStripe 4

AWS & SilverStripe 4

How to setup and use AWS Autoscaling with SilverStripe 4

Derk Gortemaker

September 21, 2018
Tweet

Other Decks in Technology

Transcript

  1. AWS & SilverStripe 4
    Twisted Bytes

    View Slide

  2. About Twisted Bytes
    ● Hosting Service Company
    ● Helping companies with Hosting
    ● Setup, Maintain and Monitor
    ● Based in Enschede,
    The Netherlands
    ● Twitter: @twistedbytes_nl
    ● http://www.twistedbytes.nl

    View Slide

  3. About me
    ● Developer → sysadmin
    ● Linux, setup & maintain
    servers and infrastructure
    ● Know software dev & sys admin
    ● Twitter: @DerkGortemaker

    View Slide

  4. This Talk
    ● AWS
    ● SilverStripe on AWS
    ● Deployment
    ● Demo & Costs
    ● Pros and Cons

    View Slide

  5. What is "AWS"
    ● Services
    ○ "easy" scaling
    ● Regions and AZ's

    View Slide

  6. What is "AWS"

    View Slide

  7. Why AWS
    ● "Easy" Scaling and HA
    ● Add and remove servers
    ● Shared resources
    ● Scaling on servers only is hard
    ● Many features and tools

    View Slide

  8. Scaling SilverStripe
    ● Servers / VM's
    ● Database
    ● Load Balancer
    ● Shared File System for assets

    View Slide

  9. What to create
    ● Network
    ● Servers
    ● Database
    ● Load Balancer
    ● NFS

    View Slide

  10. What to create (2)
    ● Auto scaling setup
    ● Defined servers
    ● Puppet
    ● Create a server fast

    View Slide

  11. Deployment
    ● Where are the servers….
    ● CodeDeploy
    ● Scripts to run on hooks
    ● Buddy

    View Slide

  12. How to create it all???
    ● About 70 things to configure
    ● Use Terraform
    ● All-in-one Git repo
    ○ SS4, vagrant, buddy
    ○ terraform, CodeDeploy scripts

    View Slide

  13. Costs
    ● ~ $3 / per day = $90 / Month
    ● Database has 2 servers running
    + managed MySQL
    ● Load Balancer is more than
    expected

    View Slide

  14. Costs

    View Slide

  15. Pros
    ● Scales up and down
    automatically
    ● EFS and RDS
    ● Easy access to other AWS
    options

    View Slide

  16. Cons
    ● It's not easy to get started
    ● Costs a lot more
    ● Choices … Choices
    ● Workflow changes
    ● Not much IO by default
    ● Pricing is a puzzle...

    View Slide

  17. SilverStripe on AWS?
    ● Well…. That depends
    ● "Zero Downtime" -> probably
    ● Need IO -> Upcloud
    ● Same setup on Upcloud
    ○ $20 - $60
    ● Only when you need it

    View Slide

  18. Questions?

    View Slide

  19. I'd like to hear from you.
    Want to learn about a better way to have your
    hosting managed? Or have some ideas about what
    you are missing? Please contact us to exchange
    ideas.
    Vagrantbox -> twistedbytes/webserver
    www.twistedbytes.nl
    [email protected]

    View Slide