The previous lecture explained how to install the Docker and how to get and start the container under Docker. Here's how to create a cluster using Docker. Docker as a new container technology, compared to traditional virtual machines, the biggest advantage is lightweight. The main purpose of using a virtual machine was
Docker service is a declarative, scalable, load-balanced application. Docker service is a user-oriented application, while Docker swarm is an IT-oriented node cluster.
Docker service is often run on the basis of
do not need to install and manage these sections. Again, our service does not need to know the service registrar and the load balancer will help us. All requests through the complex equalizer will make him a bottleneck.
When we use Docker swarm services, the server-side real service (producer services) registration is completely transparent to the developer
# # Visualizer Very visually shows the container load on each Docker host in the Swarm cluster,
# # Shipyard and Visualizer will take 8080, 5000 ports# # should be planned, avoid the use of these two ports, I in the code should be 8088 ports# # The following code has been tested properly
# # The Access address in this example: http://IP:8088
# # Run the follow
port on the host machine, and assign the port to the specified service address according to the rules. This completes load balancing.
Procedure
1. Prepare the host machine. The host machine is Ubuntu 14.04.2 LTS and is installed in Vmware. The installation method is not described in detail.
2. Install Nginx on the host machine by running the following command.
Sudo apt-get install nginx
After the installat
This article describes the configuration of simple load balancing on the Docker, host for the Ubuntu 14.04.2 LTS, two CentOS containers, host installation Nginx, two containers installed TOMCAT7. The structure is as follows:
The rationale for this scenario is to map the port of the host and the port of the Docker cont
name.In this tutorial, we will use Nginx to assign load balancing to a collection of containers running Apache. The simplest and easiest way is to use Weave to configure Nginx in a Docker container running on Ubuntu as a load balancer server.1. Building an AWS instanceFirst, we need to build a Amzaon Web Service insta
Nginx ~ Add Server Load balancer for docker containers, nginxdocker
As the most popular Server Load balancer and reverse proxy server, Nginx runs on linux. to achieve traffic distribution and load balancing, You need to deploy on IIS of multiple application servers, use some
Docker + nginx + Tomcat 7 Simple Server Load balancer ConfigurationThis article describes how to configure Simple Server Load balancer on Docker. The host machine is Ubuntu 14.04.2 LTS, two CentOS containers, Nginx installed on the host machine, and tomcat 7 installed on the two containers. The architecture is as follo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.