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

Why Bosh? I just learnt Chef!

Why Bosh? I just learnt Chef!

In this talk, we compare Chef and Bosh and why Bosh was created and now used within the Cloud Foundry community.

Dr Nic Williams

April 20, 2013
Tweet

More Decks by Dr Nic Williams

Other Decks in Technology

Transcript

  1. WHY BOSH?
    Dr Nic Williams
    CEO, Stark & Wayne
    @drnic, starkandwayne.com
    I JUST LEARNT CHEF!

    View Slide

  2. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    stark & wayne

    View Slide

  3. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    0-1 visa

    View Slide

  4. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    “alien of
    extraordinary
    ability”

    View Slide

  5. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    saving lives

    View Slide

  6. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    Everyone deserves nice things

    View Slide

  7. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    • Run apps as easy as Heroku
    • Let the person with the problem
    write & run the app
    • Especially in enterprises

    View Slide

  8. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    important
    to me
    • No secret sauce
    • Everything open source
    • Any infrastructure
    • But, oh but, ...

    View Slide

  9. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    but who runs ?

    View Slide

  10. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    users & developers
    IT & sysadmins

    View Slide

  11. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    Everyone deserves nice things

    View Slide

  12. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    kiss

    View Slide

  13. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    kiss
    keep it simple for Sysadmins

    View Slide

  14. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    kiss
    keep it simple for support

    View Slide

  15. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    Oh please God, I just learnt how to use it
    WHY NOT CHEF?

    View Slide

  16. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    the humBlE server

    View Slide

  17. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    chef

    View Slide

  18. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013

    View Slide

  19. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013

    View Slide

  20. THE RUBICON GROUP
    DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013

    View Slide

  21. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    bosh

    View Slide

  22. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    • System manifest (deployment)
    • Server images (stemcells)
    • Packaging system (packages)
    • Server config (jobs)
    complete
    running servers

    View Slide

  23. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    • System manifest (deployment)
    • Server images (stemcells)
    • Packaging system (packages)
    • Server config (jobs)
    complete
    server management

    View Slide

  24. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    • System manifest (deployment)
    • Server images (stemcells)
    • Packaging system (packages)
    • Server config (jobs)
    complete
    networking

    View Slide

  25. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    config mgmt
    config mgmt
    packaging
    server mgmt
    networking
    chef
    bosh

    View Slide

  26. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    “here’s how you run it”
    bosh

    View Slide

  27. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    “Here’s how to hide mysql configuration
    behind some ruby”
    chef

    View Slide

  28. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    deploying
    cloud foundry
    • Initial experimentation on AWS
    • Quiet launch on OpenStack
    • Scale out over multi-data centers

    View Slide

  29. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    how big is
    Cloud foundry?
    • minimum 10 running jobs
    • Up to 50 diff jobs
    • 80+ packages
    https://github/cloudfoundry/cf-release

    View Slide

  30. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    Owning
    cloud Foundry
    • Potentially daily releases
    • Enterprise customizations
    • Dev --> Staging --> Production
    • Small --> Medium --> Large
    • Lifespan is 5-10 years
    • Need simple UX for entire lifecycle

    View Slide

  31. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    USING BOSH
    5 min intro to deploy CF

    View Slide

  32. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    stemcell / image
    packages
    jobs
    deployment
    manifest
    common and public
    written by
    system authors
    edited by
    system operator

    View Slide

  33. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    gem  install  bosh-­‐bootstrap
    bosh-­‐bootstrap  deploy
    bosh-­‐bootstrap  ssh
    bosh  cf  prepare  system  demo
    bosh  cf  change  deas  3
    bosh  cf  add  service  postgresql  2
    bosh  cf  add  service  redis  1
    bosh  deploy
    Try this:

    View Slide

  34. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    redis
    redis_node
    pgsql
    postgresql_node
    pgsql
    postgresql_node
    dea
    dea
    dea
    router
    cloud controller (api)
    nats
    health manager
    uaa (sso)
    internal postgres
    internal redis
    postgres gateway
    redis gateway
    54.214.3.29
    drniccloud.com

    View Slide

  35. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    DIY BOSH
    Describe your stuff
    Let others deploy it

    View Slide

  36. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    Create own bosh releases:
    gem  install  bosh-­‐gen
    bosh-­‐gen  new  my-­‐system
    cd  my-­‐system
    git  submodule  add    src/myapp
    bosh-­‐gen  package  myapp  -­‐f  ‘src/**/*’
    bosh-­‐gen  job  webapp  -­‐p  myapp
    bosh-­‐gen  extract-­‐job  ../cf-­‐release/jobs/pg

    View Slide

  37. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    kiss
    $ bosh deploy

    View Slide

  38. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    • Upgrade system
    • Scale system
    • Upgrade machine images
    • Change properties/databag
    $ bosh deploy

    View Slide

  39. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    its really fun!
    $ bosh deploy

    View Slide

  40. DR NIC, STARK & WAYNE | WHY BOSH? I JUST LEARNT CHEF | CLOUDTECH4 APRIL 2013
    bosh
    https://github/cloudfoundry/bosh
    $  bosh  deploy
    $  cf  push
    https://github/cloudfoundry/cf-release

    View Slide