Tag: docker urllib3

将应用程序从主机移动到docker会使HTTP滞后时间增加5秒

我有一个应用程序,我注意到做出传出的HTTP请求时(5秒的额外延迟)performance不好。 通过大量的试验/testing,我意识到,将Docker外部的应用程序移动到主机中消除了奇怪的HTTP延迟。 我正在使用高山linux作为docker镜像,而ubuntu正在托pipe父机器。 Docker信息: Docker版本1.11.2,build b9f10c9 "NetworkSettings": { "Bridge": "", "SandboxID": "3ab81b8a66a99c6e9b1a1f49c5410d8260db37eee96c9231c0d83c1b40f84fa5", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "8084/tcp": null }, "SandboxKey": "/var/run/docker/netns/3ab81b8a66a9", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "464acfb299941bbd301051ea05451823a7e527161185570c00f8569ce2afde88", "Gateway": "172.17.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.3", "IPPrefixLen": 16, "IPv6Gateway": "", "MacAddress": "02:42:ac:11:00:03", "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, […]