Native Docker Clustering with Swarm

Deploy, configure, and run clusters of Docker containers with Swarm

Native Docker Clustering with Swarm

This ebook is included in a Mapt subscription
Fabrizio Soppelsa, Chanwit Kaewkasi

3 customer reviews
Deploy, configure, and run clusters of Docker containers with Swarm
$10.00
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Code Files
Preview in Mapt

Book Details

ISBN 139781786469755
Paperback280 pages

Book Description

Docker Swarm serves as one of the crucial components of the Docker ecosystem and offers a native solution for you to orchestrate containers. It’s turning out to be one of the preferred choices for Docker clustering thanks to its recent improvements.

This book covers Swarm, Swarm Mode, and SwarmKit. It gives you a guided tour on how Swarm works and how to work with Swarm. It describes how to set up local test installations and then moves to huge distributed infrastructures. You will be shown how Swarm works internally, what’s new in Swarmkit, how to automate big Swarm deployments, and how to configure and operate a Swarm cluster on the public and private cloud.

This book will teach you how to meet the challenge of deploying massive production-ready applications and a huge number of containers on Swarm. You'll also cover advanced topics that include volumes, scheduling, a Libnetwork deep dive, security, and platform scalability.

Table of Contents

Chapter 1: Welcome to Docker Swarm
Clustering tools and container managers
Swarm goals
Why use Swarm
Real world use case examples
Swarm features
Similar projects
The Swarm v1 architecture
Getting started with Swarm
Swarm, yesterday
Test your Swarm cluster
Swarm, today
Summary
Chapter 2: Discover the Discovery Services
A discovery service
Token
Raft
Etcd
ZooKeeper
Consul
Towards a decentralized discovery service
Summary
Chapter 3: Meeting Docker Swarm Mode
Swarmkit
Swarm mode
Summary
Chapter 4: Creating a Production-Grade Swarm
Tools
An HA Topology for Swarm2k
Provisioning the infrastructure with belt
Securing Managers with Docker Machine
Understanding some Swarm internals
Monitoring Swarm2k
Swarm3k
Swarm2k and Swarm3k lessons learned
Summary
Chapter 5: Administer a Swarm Cluster
Docker Swarm standalone
Docker Swarm Mode
Cluster management
Swarm health
Backing up the cluster configuration
Disaster recovery
Graphical interfaces for Swarm
Summary
Chapter 6: Deploy Real Applications on Swarm
Microservices
Deploy a replicated nginx
Overlay networks
Connecting services: A WordPress example
Docker Compose and Swarm mode
Introducing Docker stacks
Another app: Apache Spark
Summary
Chapter 7: Scaling Up Your Platform
The Spark example, again
Docker plugins
The lab
Installing Flocker
Installing and configuring Swarm
Deploying Spark, again
Scaling Spark
Monitoring Swarm hosting apps
Summary
Chapter 8: Exploring Additional Features of Swarm
Libnetwork
Encryption and routing mesh
MacVLAN
Network Control Plane
Libkv
Summary
Chapter 9: Securing a Swarm Cluster and the Docker Software Supply Chain
Software Supply Chain
Securing Swarm cluster
Securing a Swarm: Best practices
Docker Notary
Introducing Docker secrets
Summary
Chapter 10: Swarm and the Cloud
Docker for AWS and Azure
Docker Datacenter
Swarm on OpenStack
Summary
Chapter 11: What is next?
The challenge of provisioning
Software defined infrastructure
Docker stacks and Compose
CaaS - Containers as a Service
Unikernels
Contribute to Docker
Summary

What You Will Learn

  • Create and manage Swarm Mode clusters of any size
  • Get a backstage view of the biggest Swarms ever built : Swarm2k and Swarm3k, with their 2,300 and 4,700 nodes
  • Discovery mechanisms and Raft
  • Deploy your containerized app on Swarm
  • Administer Swarm clusters on AWS, Azure, and DigitalOcean
  • Integrate Flocker volumes with Swarm
  • Create and manage Swarms on OpenStack Magnum

Authors

Table of Contents

Chapter 1: Welcome to Docker Swarm
Clustering tools and container managers
Swarm goals
Why use Swarm
Real world use case examples
Swarm features
Similar projects
The Swarm v1 architecture
Getting started with Swarm
Swarm, yesterday
Test your Swarm cluster
Swarm, today
Summary
Chapter 2: Discover the Discovery Services
A discovery service
Token
Raft
Etcd
ZooKeeper
Consul
Towards a decentralized discovery service
Summary
Chapter 3: Meeting Docker Swarm Mode
Swarmkit
Swarm mode
Summary
Chapter 4: Creating a Production-Grade Swarm
Tools
An HA Topology for Swarm2k
Provisioning the infrastructure with belt
Securing Managers with Docker Machine
Understanding some Swarm internals
Monitoring Swarm2k
Swarm3k
Swarm2k and Swarm3k lessons learned
Summary
Chapter 5: Administer a Swarm Cluster
Docker Swarm standalone
Docker Swarm Mode
Cluster management
Swarm health
Backing up the cluster configuration
Disaster recovery
Graphical interfaces for Swarm
Summary
Chapter 6: Deploy Real Applications on Swarm
Microservices
Deploy a replicated nginx
Overlay networks
Connecting services: A WordPress example
Docker Compose and Swarm mode
Introducing Docker stacks
Another app: Apache Spark
Summary
Chapter 7: Scaling Up Your Platform
The Spark example, again
Docker plugins
The lab
Installing Flocker
Installing and configuring Swarm
Deploying Spark, again
Scaling Spark
Monitoring Swarm hosting apps
Summary
Chapter 8: Exploring Additional Features of Swarm
Libnetwork
Encryption and routing mesh
MacVLAN
Network Control Plane
Libkv
Summary
Chapter 9: Securing a Swarm Cluster and the Docker Software Supply Chain
Software Supply Chain
Securing Swarm cluster
Securing a Swarm: Best practices
Docker Notary
Introducing Docker secrets
Summary
Chapter 10: Swarm and the Cloud
Docker for AWS and Azure
Docker Datacenter
Swarm on OpenStack
Summary
Chapter 11: What is next?
The challenge of provisioning
Software defined infrastructure
Docker stacks and Compose
CaaS - Containers as a Service
Unikernels
Contribute to Docker
Summary

Book Details

ISBN 139781786469755
Paperback280 pages
Read More
From 3 reviews

Read More Reviews