title: Docker containers freezing
body: <p>I'm currently trying to deploy a node.js app on docker containers. I need to deploy 30 of them but they begin to have a weird behavior at some point, some of them freeze.</p>
  
  <p>I am currently running <strong>Docker version for windows 18.03.0-ce, build 0520e24302</strong>, my computer specs (cpu and memory): </p>
  
  <blockquote>
    <ul>
    <li>I5 4670 K</li>
    <li>24 GB of ram</li>
    </ul>
  </blockquote>
  
  <p><strong>My docker default machine resource allocation is the following :</strong></p>
  
  <blockquote>
    <ul>
    <li>Allocated RAM : 10 Gb</li>
    <li>Allocated vCPUs : 4</li>
    </ul>
  </blockquote>
  
  <p>My node application is running on <strong>apline3.8</strong> and <strong>node.js 11.4</strong> and mostly do http requests every 2-3 seconds.</p>
  
  <p>When i try to deploy 20 containers everything is running like a charm, my application do the job and i can see that there is an activity on every on my containers through the logs, activity stats.</p>
  
  <p>The problem comes when i try to deploy more containers, more than 20, i can notice that some of the previously deployed containers start to stop their activities (0% cpu using, logs freezing). When everything is deployed (30 containers), Docker start to block the activity of some of them and unblock them at some point to block some others (blocking/unblocking is random). It seems to be sequential. I tried to wait and see what happened and the result is that some of the containers are able to poursue their activities and some others are stuck forever (still running but no more activity).</p>
  
  <p>It's important to <strong>notice that i used the following resources restrictions on each of my containers :</strong></p>
  
  <blockquote>
    <ul>
    <li>MemoryReservation : 160mb</li>
    <li>Memory soft limit : 160mb</li>
    <li>NanoCPUs : 250000000 (0.25 cpus)</li>
    </ul>
  </blockquote>
  
  <p>I had to increase my docker default machine resource allocation and decrease container's ressource allocation because it was using almost 100% of my cpu, maybe i did a mistake in my configuration. I tried to tweak those values, but no success i still have some containers freezing.</p>
  
  <p>I'm kind of lost right know.</p>
  
  <p>Any help would be appreciated even a little one, thank you in advance !</p>