HEALTHCHECK --interval=15s --timeout=5s CMD curl --fail \
http://localhost:2368/ || exit 1
Docker Meetup Hamburg · September 13th, 2016
Thilo-Alexander Ginkel · TG Byte Software GmbH
thilo.ginkel@tgbyte.de · www.tgbyte.de
Founded in 1998, located in Hamburg
Service Range
Software Development & Consulting
DevOps
Training & Coaching
Looking for freelancers to support us with various projects
Passionate Software Engineer, IT Consultant & Trainer
Focus
Software Development & Architecture
DevOps
Troubleshooting
Software Development since 1994
Cluster management integrated with Docker Engine
Accessible via the regular Docker CLI
Built on top of SwarmKit (using Raft Consensus Algorithm)
Self-organizing (no dedicated cluster coordinator required)
New "service" concept as an abstraction on top of containers
Multi-host overlay networking
Service Discovery via DNS
Introduced in Docker 1.12
Not to be confused with the standalone Docker Swarm product
Services
New HEALTHCHECK
Directive
Enables Docker Engine to assess the health state of a container
Exit code indicates success (exit code 0) or failure (exit code 1)
Enables Docker Swarm Mode to direct inbound traffic only to healthy containers
Example
HEALTHCHECK --interval=15s --timeout=5s CMD curl --fail \
http://localhost:2368/ || exit 1
Setup
Stateful web application
"Ghost" blogging platform
MySQL database
Three nodes on Google Compute Engine
Running Docker 1.12.1 in Swarm Mode
Google Cloud load balancing for HTTPS termination and (pseudo-)HA
Thank you!
Docker Consulting & Training