
Save and close the file when you are finished. You can update the /etc/hosts file on each node as shown below: nano /etc/hosts Once you are logged into your CentOS 7 instance, run the following command to update your base system with the latest available packages.īefore starting, you will need to configure /etc/hosts file on each node, so each node can communicate with each other by hostname. Connect to your ECS instance and log in as the root user. Create a new ECS instance, choosing CentOS 7 as the operating system with at least 2GB RAM. Here, we will use IP address 192.168.0.102 for Manager node, 192.168.0.103 for Worker node1 and 192.168.0.104 for Worker node2.įirst, Login to your ">Alibaba Cloud ECS Console. A static IP address is configured on all the instances.Out of which once server will act as a Manager node and two servers will act as Worker node. Three Alibaba cloud instances with CentOS 7 installed.In this tutorial, we will go through the step by step instruction on configuring three node Docker Swarm cluster on CentOS 7. You can deploy manager and worker nodes at runtime in Docker engine's Swarm mode. The Swarm manager allows you to create a primary manager instance and multiple replica instances in case the primary instance fails. Worker node is a instance of Docker engine that can be used to execute container. Manager node used for handling cluster management tasks such as, maintaining cluster state, scheduling services and serving swarm mode HTTP API endpoints. Docker Swarm consists of two main components Manager node and Worker node. Docker Swarm allows you to add or subtract container iterations as computing demands change. By Hitesh Jethva, Alibaba Cloud Tech Share Authorĭocker Swarm is a native clustering tool for Docker containers that can be used to manage a cluster of Docker nodes as a single virtual system.
