A health check ngandhani Docker (utawa orchestrator) carane nemtokake apa aplikasi container tenan gumana, ora mung mlaku. Proses container bisa aktif nalika app rusak (hang, ora bisa menyang database) — health checks ngedeteksi iki supaya platform bisa ngréspon.
Nemtokake health check
# in a Dockerfile
HEALTHCHECK --interval=30s --timeout=3s --retries=3 \
CMD curl -f http://localhost:3000/health || exit 1
# → Docker runs this command periodically; exit 0 = healthy, non-zero = unhealthy
[, , , ]
