4 ms·
What about healthchecks?
by m1keil 6y ago
What about healthchecks?
- jacques_chester 6y agoI don't think it would work to report an OOMkill. The process that would answer the healthcheck probe would be gone.
- m1keil 6y agoIt's not clear to me what happens after the OOM. Does the init process restarts the daemon? I would argue that it shouldn't. If the process stops responding to a healthcheck, it's the scheduler's responsibility (k8s in this case) to handle it. Crashes in this case should be handled in a similar way, whether it's due to OOM or a bug. Maybe I'm missing another scenario here?
- dharmab 6y ago> Does the init process restarts the daemon? In systemd, this depends on what the Restart option in the service unit is set to. The default is to not restart. https://www.freedesktop.org/software/systemd/man/systemd.service.html https://www.freedesktop.org/software/systemd/man/systemd.ser...
- zimbatm 6y agoThey are complementary. If a sub-process gets OOMKilled and the container doesn't die, then it's most likely that the parent process didn't handle that scenario. In which case the health-check wouldn't cover that issue.