<p>Hy
I use kubernetes on a nodeJs project
the garbage collector take occasionnaly too much time,(we are trying to fix that)
But in the meantime we have another issue : if the liveness/readiness  is probed during the garbage collecting, then my project don't respond and the container is restarted.</p>
<p>Is there a way to make the liveness/readiness try multiple time before restarting the container?</p>

sab
<p>You can set the <code>failureThreshold</code> parameter to configure how often a probe is retried before it is actually considered as a failure. Note that it will take <code>periodSeconds</code> before the retry is executed, so that can lead to longer delays until your app is restarted. Ideally in your case you could try to make the periodSeconds slightly longer then the longest expected gc pause.</p>
<p>See the Kubernetes documentation for more details on <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes" rel="nofollow noreferrer">probe configuration</a>.</p>
