Score:1

What factors can affect different containers processing on one machine at the same time?

in flag

For example, I have a 4vCPU, 8GB mem VM. At first, I ran a Nginx container on it and then used a stress test tool to continuously send requests to it and got some information like QPS, average latency. Then I ran three same Nginx containers on the VM and parallelly send the same requests above to these containers.I found that the respective QPS all decreased, and average latency all increased.

So what factors can affect different containers processing on one machine at the same time? I think the CPU and memory are enough to provide resources to these containers. What factors below the docker can affect these?

Michael Hampton avatar
cz flag
Sending three times as much traffic would seem to be the biggest factor.
djdomi avatar
za flag
I mean, you also share the resources of a VM with the host, if this is a public Hoster, it can restrict the resources to any hardware limit if they like.
in flag
But I just sent the same traffic to respective nginx containers like the only one nginx containers are running on that host, there were no three times as much traffic.I think most factors are these containers shared cpu time slice, so they are running serially in general and didn't monopolize a cpu core each. Of course there are more complicated than I said, just for example.
in flag
How does base linux scheduler schedule each thread to cpu?
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.