Score:0

API requests delayed among docker swarm cluster's nodes & containers

cn flag

In the process of migrating our docker infrastructure to a docker swarm cluster we are experiencing performance issues when containerized APIs are calling outside ressources (e.g. elasticsearch queries to elastic cloud, or other API's on MS Azure, etc.)

Our first investigations have shown that 1) queries from the hosts are not affected, only traffic from containers is delayed, and 2) the first query in an http session suffers a ~4 seconds delay but subsequent queries are much faster.

So IMO we perhaps suffer an issue with name solving and/or load balancing, to route the traffic to the correct container on the correct cluster node, and there is maybe a cache inolved or another thing making kept-alive sessions unaffected.

How could we precisely identify what is causing this 4s delay in establishing new http requests/sessions from containers allowing us to eventually identify potential changes to docker swarm configuration in order to remedy to this ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.