fix: update HealthMonitor to evict instances without associated pods
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
2026-05-08 14:10:33 +02:00
parent ae6d235e1d
commit 0f41f13ce6
@@ -111,9 +111,8 @@ class HealthMonitor:
log.warnf("Pod %s not ready, marking instance %s dead", pod.getMetadata.getName, inst.instanceId) log.warnf("Pod %s not ready, marking instance %s dead", pod.getMetadata.getName, inst.instanceId)
instanceRegistry.markInstanceDead(inst.instanceId) instanceRegistry.markInstanceDead(inst.instanceId)
case None => case None =>
if inst.state == "HEALTHY" then log.warnf("No pod found for instance %s, evicting from registry", inst.instanceId)
log.warnf("No pod found for instance %s, marking dead", inst.instanceId) instanceRegistry.removeInstance(inst.instanceId)
instanceRegistry.markInstanceDead(inst.instanceId)
} }
catch catch
case ex: Exception => case ex: Exception =>