Can long waiting threads throttle cpu in kubernetes?

12/31/2020

Can multiple long waiting threads (blocked on remote rest call response, non cpu-bound) throttle CPU ? This cpu throttle causes leads to pod restart as health check response takes time to respond.

-- pranav prashant
java
kubernetes
spring-boot

1 Answer

12/31/2020

Something blocked in a waiting syscall (select and friends, sleep(), blocking read or write) does not count as using any CPU time, the task (how Linux thinks about threads internally) won't be marked as runnable until something interrupts the wait.

-- coderanger
Source: StackOverflow