Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Swarm docker bangalore_meetup

3,643 views

Published on

Swarm 1.0

Published in: Technology
  • Be the first to comment

Swarm docker bangalore_meetup

  1. 1. Docker Swarm v1.0 and beyond @arunan
  2. 2. Arunan Rabindran @arunan Special Thanks to @abronan
  3. 3. Introduction v1.0 Upcoming features UCP and Tutum Q&A
  4. 4. Docker Engine Docker CLI Docker CLI Docker CLI
  5. 5. With Docker Swarm Docker CLI Docker CLI Swarm
  6. 6. Timeline Oct Nov Dec Jan Feb Jun Proof of Concept DockerCon EU Open Repository First Release Candidate Swarm Beta Release Global Hack Day Open Proposal 0.2.0 Release 0.3.0 Release Apr Oct 0.4.0 Release 1.0.0 Release Aug 2015
  7. 7. Swarm 1.0.0 • Docker REST API (99%) • Resource management (CPU, Mem, Networking) • Advanced scheduling with constraints and affinities • Multiple Discovery Backends (hub, etcd, consul, zookeeper) • TLS: Encryption & Authentication • Leader Election • Works great with Docker 1.9 Networking, Volume Plugins • Focus on stability & stress tested on a 1000 EC2 nodes
  8. 8. managers scheduler followers key value store CLI discovery • k/v store • file/node • gossip (not supported yet) node-1 node-2 node-3 node-4 overlay network
  9. 9. Swarm Scheduler 2 steps: • 1- Apply filters to exclude nodes - ports - constraints - affinity - health - dependency • 2- Use a strategy to pick the best node - binpack - spread - random
  10. 10. Resource Management • Memory $ docker run -m 1g … • CPU $ docker run -c 1 … • Ports $ docker run -p 80:80 … • More to come, ex: network interfaces
  11. 11. Constraints • Standard constraints induced from docker info docker run -e “constraint:operatingsystem==*fedora*” … docker run -e “constraint:storagedriver==*aufs*” … • Custom constraints with host labels docker -d --label “region==us-east” docker run -e “constraint:region==us-east” … • Pin a container to a specific host docker run –e “constraint:node==ubuntu-2” …
  12. 12. Affinities • Containers affinities docker run --name web nginx docker run -e “affinity:container==web” logger • Containers Anti-affinities docker run --name redis-master redis docker run --name redis-slave -e “affinity:container!=redis*” … • Images affinities docker run -e “affinity:image==redis” redis
  13. 13. Brief overview of Tutum and UCP • Tutum -Docker Services for the Cloud • DUCP (Docker Universal Control Plane) -Docker’s on-premises clustering solution -based on Swarm
  14. 14. Demo Multihost networking/Failover in Swarm & Tutum stack deployment
  15. 15. http://github.com/docker/swarm #docker-swarm on freenode @aluzzardi - @vieux - @abronan Thank You. Questions?

×