简体   繁体   English

如何在集群集群中检索Docker服务通信

[英]how to retrieve docker service communication within a swarm cluster

docker swarm for windows containers provides any command/option to show communications between containers running on the overlay network? Windows容器的docker swarm是否提供任何命令/选项来显示在覆盖网络上运行的容器之间的通信? I'd like to to see the calls sent/handled by specific service instances spread across the nodes on my cluster. 我希望看到由特定服务实例发送/处理的呼叫分布在群集的各个节点上。 I'm able to push a service on a specific node, see the scaling across nodes, but I'm not able to retrieve information about how often these service instances have been engaged by the docker overlay network. 我能够在特定节点上推送服务,查看跨节点的扩展,但是我无法检索有关docker覆盖网络使用这些服务实例的频率的信息。 I do have a service that acts as reverse-proxy to engage all other services within the cluster: I'd like to see how often and which service instances have been called by the reverse proxy. 我确实有一个服务可以充当反向代理以参与集群中的所有其他服务:我想查看反向代理调用的频率和调用哪个服务实例。 I wonder if docker swarm provides such logs or I do have to use the IIS logging of each services instead. 我想知道docker swarm是否提供了此类日志,还是我不得不使用每个服务的IIS日志。

Overlay networking is just a form of network encapsulation, and won't provide you that higher level information like HTTP calls. 重叠网络只是网络封装的一种形式,不会为您提供更高级别的信息,例如HTTP调用。 For a reverse proxy, the proxies logs are the way to do that (usually turned off by default because they can fill up disks quickly and put more work on the proxy for every request). 对于反向代理,代理日志是执行此操作的方法(通常默认情况下处于关闭状态,因为它们可以快速填充磁盘并为每个请求对代理进行更多工作)。

If you'd like to see what Swarm and the Nodes are doing in the background in terms of creating containers, networks, running healthchecks, etc. use the docker events command on managers and nodes. 如果您想了解Swarm和节点在后台执行的工作,如创建容器,网络,运行状况检查等,请在管理器和节点上使用docker events命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM