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 full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  6. What is "AWS"

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

  15. 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 full-size slide

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

    View full-size slide

  17. 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 full-size slide