Docker 云内置负载均衡
Docker cloud builtin load balancing
当我通过 docker 云部署一个包含 3 个容器的新服务时,我得到了 3 个容器端点和 1 个服务端点。
我想知道的是,服务端点上的流量如何转发到容器?是否有内置的负载平衡或者这只是一个 dns 循环?
服务端点与容器的 IP 不同,那么此转发服务在哪里 运行?
谢谢大家的帮助。
我可以在这里找到答案:https://docs.docker.com/docker-cloud/apps/ports/#/service-and-container-dns-endpoints
关于服务端点的说明:
This DNS endpoint (multiple A record) resolves to the IPs of the nodes where the containers are running, in a round-robin fashion.
当我通过 docker 云部署一个包含 3 个容器的新服务时,我得到了 3 个容器端点和 1 个服务端点。
我想知道的是,服务端点上的流量如何转发到容器?是否有内置的负载平衡或者这只是一个 dns 循环?
服务端点与容器的 IP 不同,那么此转发服务在哪里 运行?
谢谢大家的帮助。
我可以在这里找到答案:https://docs.docker.com/docker-cloud/apps/ports/#/service-and-container-dns-endpoints
关于服务端点的说明:
This DNS endpoint (multiple A record) resolves to the IPs of the nodes where the containers are running, in a round-robin fashion.