How to use an Internet sized computer

How to use an Internet sized computer

011ce2693e5feec652d9ff2cc1b90d15?s=128

Ben Firshman

June 08, 2015
Tweet

Transcript

  1. None
  2. None
  3. None
  4. None
  5. No More Servers

  6. Big Computer

  7. Containers

  8. None
  9. Cloud Computing

  10. Containers + Cloud Computing

  11. = Internet Sized Computer

  12. How to use an Internet Sized Computer

  13. Internet Sized Computers Suck

  14. • Big chunks of your computer might disappear for no

    reason • Your data might disappear • Your processes sometimes might not be able to communicate with each other
  15. • Some bits of your computer might be on the

    other side of the world • Some people might be man-in-the-middling bits of your computer
  16. How to run a process

  17. $ echo hello world

  18. fork-exec

  19. $ docker run ubuntu echo hello world

  20. POST /containers/create HTTP/1.1 { "Image": “ubuntu", "Cmd": ["echo", "hello", “world"]

    }
  21. $ docker -H anotherhost.oscorp.com \ run ubuntu echo hello world

  22. docker client | swarm / \ node1 node2 | |

    docker engine docker engine
  23. $ docker -H myswarm.oscorp.com \ run ubuntu echo hello world

  24. Docker in the Cloud • IBM Bluemix Containers • Joyent

    SmartDataCenter
  25. What can you do with it?

  26. Find things that assume computers are slow to start and

    can’t be thrown away
  27. $ docker run myapp ./test.sh

  28. $ ls tests/**/*_test.py | \ parallel docker run myapp ./test.sh

  29. $ ls *.mp4 | parallel “cat {} | docker run

    jrottenberg/ffmpeg ... > out/{}”
  30. >>> import dockerrun >>> client = dockerrun.from_env() >>> client.run("ubuntu", "echo

    hello world") 'hello world\n'
  31. >>> client.run(“myapp", "tasks/reticulate-splines", wait=False) Infinite task queues

  32. How to run an application • Tooling is still in

    its infancy • Look into Compose, Kubernetes, Mesos
  33. The future • Networking and storage • Scaling down

  34. What if it’s only a second to spin a machine

    up or down? We can start to have machine per web request, or machine per social interaction (IM, tweet or hug). – Timothy Fitz, 2009 http://timothyfitz.com/2009/02/14/cloud-elasticity/
  35. Credits: https://www.flickr.com/photos/taylar/4616771574/ Thanks! @bfirsh bfirsh@docker.com