<p>I have a pod in kubernetes with the request CPU 100m and Limit cpu with 4000m.</p>
<p>The application spins up 500+ threads and it works fine. The application becomes unresponsive during heavy load and could be because of the thread limit issue.</p>
<p><strong>Question:-</strong></p>
<p>The number of threads are related to CPU's.</p>
<p>Since, the request CPU is 100m, Will there be any problem in the thread limitation, or, pod can still spin up more threads as the Limit is 4000m.</p>

user1578872
<blockquote>
<p>Since, the request CPU is 100m, Will there be any problem in the thread limitation, or, pod can still spin up more threads as the Limit is 4000m.</p>
</blockquote>
<p>The CPU limitation is 4000m (4 cores), so it can use as many threads as it wants and use CPU utilization up to 4 cores.</p>
<p>The CPU request of 100m is almost only used for Pod scheduling, so your pod might end up on a node with few resources compared to your limitation, and might be evicted if there are few available CPU resources on the node.</p>
