[{"data":1,"prerenderedAt":218},["ShallowReactive",2],{"term-h\u002Fhealth-check":3,"related-h\u002Fhealth-check":199},{"id":4,"title":5,"acronym":6,"body":7,"category":180,"description":181,"difficulty":182,"extension":183,"letter":184,"meta":185,"navigation":124,"path":186,"related":187,"seo":193,"sitemap":194,"stem":197,"subcategory":6,"__hash__":198},"terms\u002Fterms\u002Fh\u002Fhealth-check.md","Health Check",null,{"type":8,"value":9,"toc":174},"minimark",[10,15,19,23,31,35,160,164,170],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A Health Check is an automatic 'are you alive?' ping your infrastructure sends to your app regularly. If the app responds with 'yes I'm fine,' everything's good. If it doesn't respond or says 'something's wrong,' the system stops sending traffic to it and tries to restart it. Like checking someone's pulse.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30],{},"A health check is a periodic automated probe that verifies a service is running correctly. HTTP health checks typically hit an endpoint like ",[27,28,29],"code",{},"\u002Fhealth"," and expect a 200 response. Kubernetes uses liveness probes (is the container alive?) and readiness probes (is it ready to accept traffic?) to manage pod lifecycle.",[11,32,34],{"id":33},"show-me-the-code","Show Me The Code",[36,37,42],"pre",{"className":38,"code":39,"language":40,"meta":41,"style":41},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Kubernetes health probes\nlivenessProbe:\n  httpGet:\n    path: \u002Fhealth\n    port: 3000\n  initialDelaySeconds: 5\n  periodSeconds: 10\n\nreadinessProbe:\n  httpGet:\n    path: \u002Fready\n    port: 3000\n","yaml","",[27,43,44,53,64,72,85,97,108,119,126,134,141,151],{"__ignoreMap":41},[45,46,49],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"sHwdD","# Kubernetes health probes\n",[45,54,56,60],{"class":47,"line":55},2,[45,57,59],{"class":58},"swJcz","livenessProbe",[45,61,63],{"class":62},"sMK4o",":\n",[45,65,67,70],{"class":47,"line":66},3,[45,68,69],{"class":58},"  httpGet",[45,71,63],{"class":62},[45,73,75,78,81],{"class":47,"line":74},4,[45,76,77],{"class":58},"    path",[45,79,80],{"class":62},":",[45,82,84],{"class":83},"sfazB"," \u002Fhealth\n",[45,86,88,91,93],{"class":47,"line":87},5,[45,89,90],{"class":58},"    port",[45,92,80],{"class":62},[45,94,96],{"class":95},"sbssI"," 3000\n",[45,98,100,103,105],{"class":47,"line":99},6,[45,101,102],{"class":58},"  initialDelaySeconds",[45,104,80],{"class":62},[45,106,107],{"class":95}," 5\n",[45,109,111,114,116],{"class":47,"line":110},7,[45,112,113],{"class":58},"  periodSeconds",[45,115,80],{"class":62},[45,117,118],{"class":95}," 10\n",[45,120,122],{"class":47,"line":121},8,[45,123,125],{"emptyLinePlaceholder":124},true,"\n",[45,127,129,132],{"class":47,"line":128},9,[45,130,131],{"class":58},"readinessProbe",[45,133,63],{"class":62},[45,135,137,139],{"class":47,"line":136},10,[45,138,69],{"class":58},[45,140,63],{"class":62},[45,142,144,146,148],{"class":47,"line":143},11,[45,145,77],{"class":58},[45,147,80],{"class":62},[45,149,150],{"class":83}," \u002Fready\n",[45,152,154,156,158],{"class":47,"line":153},12,[45,155,90],{"class":58},[45,157,80],{"class":62},[45,159,96],{"class":95},[11,161,163],{"id":162},"when-youll-hear-this","When You'll Hear This",[16,165,166,167,169],{},"\"The health check is failing — the database connection is down.\" \u002F \"Add a ",[27,168,29],{}," endpoint that checks the database before the load balancer routes traffic.\"",[171,172,173],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":41,"searchDepth":55,"depth":55,"links":175},[176,177,178,179],{"id":13,"depth":55,"text":14},{"id":21,"depth":55,"text":22},{"id":33,"depth":55,"text":34},{"id":162,"depth":55,"text":163},"cicd","A Health Check is an automatic 'are you alive?' ping your infrastructure sends to your app regularly.","beginner","md","h",{},"\u002Fterms\u002Fh\u002Fhealth-check",[188,189,190,191,192],"Load Balancer","Kubernetes","Uptime","Monitoring","Alerting",{"title":5,"description":181},{"changefreq":195,"priority":196},"weekly",0.7,"terms\u002Fh\u002Fhealth-check","j7TNINFmzt_xwpSckn1_zcTpQPvJu06cwQcJ8BlWrFY",[200,203,207,212,215],{"title":192,"path":201,"acronym":6,"category":180,"difficulty":182,"description":202},"\u002Fterms\u002Fa\u002Falerting","Alerting is the part of monitoring that actually wakes people up when something goes wrong.",{"title":189,"path":204,"acronym":6,"category":180,"difficulty":205,"description":206},"\u002Fterms\u002Fk\u002Fkubernetes","advanced","Kubernetes is a robot manager for your containers.",{"title":188,"path":208,"acronym":6,"category":209,"difficulty":210,"description":211},"\u002Fterms\u002Fl\u002Fload-balancer","networking","intermediate","A load balancer is like a traffic cop for servers.",{"title":191,"path":213,"acronym":6,"category":180,"difficulty":182,"description":214},"\u002Fterms\u002Fm\u002Fmonitoring","Monitoring is keeping a constant eye on your app while it runs — tracking whether it's up, how fast it responds, how many errors it throws, and how much me...",{"title":190,"path":216,"acronym":6,"category":180,"difficulty":182,"description":217},"\u002Fterms\u002Fu\u002Fuptime","Uptime is how long your service has been up and working without going down. It's usually expressed as a percentage like 99.9%. 'Three nines' (99.",1776518286688]