title: Overlay network performance issues with docker swarm
body: <p>At present, we use docker network create of docker swarm to create a group of overlay networks, and then use docker service create to create a service cluster and join the network provided above. Nginx also joins the network above. The configuration of nginx is as follows:</p>
  
  <pre><code>location / {
      resolver 127.0.0.11 ipv6=off;
      proxy_pass http://docker_service_name:8080;
  }
  </code></pre>
  
  <p>Realize load balancing and dynamic capacity expansion through docker swarm. However, there is a problem here. For individual interfaces, the back-end processing time is 20ms from the log view, but the log view of nginx layer is 1.003s. Is there any way to optimize it?</p>