• How to deploy docker Swarm cluster

    Introduction to Docker Swarm

    Docker swarm is clustering solution for the docker. a cluster is a pool of docker hosts that acts as bit like a single large docker host. Docker Swarm provides standard Docker API, and Docker daemon can use Swarm to transparently scale to hosts. You can also run swarm services and standalone containers on the same docker instances.

    Major component of docker swarm

    Manager Node: manages the application deployment of the request. Manager node elect a single leader to tackle orchestration tasks.

    Worker Node: receive and execute jobs from manager nodes. but you can configure them to run manager tasks exclusively and be manager-only nodes.

    Service: is the definition of the jobs to execute on the worker nodes. Service is central structure of the swarm system and the primary root of user interaction with swarm.

    Tasks: Command to run inside the container. it is the atomic scheduling unit of swarm. Manager nodes assign tasks to worker nodes according to the number of replicas set in the service scale.

    Load Balancing: Swarm Manager uses ingress load balancing to expose the services you want to make available externally to the swarm.

    DNS Component: DNS entries will be assigned automatically to each service via internal load balancing within the cluster.

    Infrastructure Setup

    Please setup static IP on manager and worker nodes, ensure network connection between all nodes.

    Manager   Node:                docker-master 
    Worker     Node1: node1
    Worker     Node2: node2
    Please make sure docker engine (community engine) 1.12 or later installed. 

    <p># yum makecache</p>
    <p># yum-config-manager --enable docker-ce-edge</p>
    <p># yum install -y docker-ce</p>
    <p># systemctl restart docker ; systemctl enable docker</p>
    <p># systemctl stop firewalld ; systemctl disable firewalld</p>
    <p># setenforce 0</p>

Most Liked Posts

Post A Comment

Your email address will not be published. Required fields are marked*



No Record found
demo content

The Total Economic Impactâ„¢ of ServiceNow

United States Tue Jun 06 2017

Join us for a webinar where we will reveal the quantified value of the Lightspeed Enterprise for customers that are modernizing IT, eliminating service outages, and optimizing performance with real-time analytics.

Guest speakers Liz Witherspoon of Forrester, and study participant Brad Paubel, VP of Internal Technologies at Maritz, will discuss

  • The value drivers for IT and key quantified economic benefits
  • Key challenges that study customers faced and overcame
  • Focus areas and best practices you can use to drive business impact with ServiceNow


Webinar Registration

Enter the characters visible in the box below



Share using

Advertise With Us