title: Docker contianer limiting CPU resources
body: <p>I have some upstream flask containers and the CPU usage hit 100% percent when i entertain some requests.
  the system shows that the containers are using your CPU 100%.</p>
  <p>My questions are:</p>
  <ol>
  <li><p>If i limit the CPU usage on these containers, will they exit with zero error if they hit there allocated resources OR what are the disadvantages of limiting resources against docker containers?</p>
  </li>
  <li><p>which one is the better approach in terms of resource allocation to docker containers? (For 6 cpu cores)</p>
  <p>a)  Two containers running with default settings. (Use as much resources as the kernel can provide may be)</p>
  <p>b) 4 containers can only use 1 CPU (--limit cpus ='1')</p>
  </li>
  </ol>
  <p>Please let me know if you want me elaborate more.</p>
  <p>Thanks in Advance</p>