Probe timing

  • The proposed startup gate and independent readiness and liveness schedules.
100%

Proposed local probe contract · startup and readiness use the same local health operation

Proposed local OBRH probe timingProposed local OBRH probe timingRelative phases · probe periods and initial delays come from the selected Pod configurationStartup checksInitial delayGated by startupChecks enabledContainer startsStartup succeedsIndependent loopsStartup probeStartup probeStartup checksStartup checks stopReadiness probeReadinessGatedOwn delay elapsed · readiness loopLiveness probeLivenessGatedOwn delay elapsed · liveness loopRestart conditionsRestart conditionsStartup budget exhausted OR liveness threshold reachedReadiness failure alone changes traffic eligibility.

Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.

  • The proposed startup and readiness probes call the same local health operation. Startup keeps sampling until success enables readiness and liveness to run independently.
  • A persistent database problem during startup can exhaust the startup budget and trigger a restart. Once running, failed readiness samples instead withdraw the Pod from new traffic.
Local readiness

Local readiness

  • Startup and readiness call the same local health API through the shared nonblocking SemaphoreValve; startup gates both readiness and liveness.
  • Consecutive readiness failures withdraw traffic and successful samples restore it. Stock SemaphoreValve supplies no hysteresis state machine or warm-admission ramp.
  • After startup succeeds, the same local health API continues as readiness. Admission rejection, timeout or required DB/route failure can fail that sample.
  • Consecutive failed readiness samples make the pod unready without restarting it. Existing requests continue; localhost probes keep running.
  • Successful readiness samples restore eligibility after the configured recovery threshold. Endpoint and Istio routing changes then propagate.
  • Immediate admission rejection protects the pod during sampling and propagation delay. An unrelated business 503 does not directly change readiness.
  • If all pods are unready, normal application routing becomes unavailable once that state propagates. The Valve supplies no recovery timer, admission ramp or equal-load guarantee.
Startup completion

Startup completion

Current versus proposed startup checking

The inspected Current Direct/IL Pod templates omit startupProbe. Their readiness and liveness schedules therefore rely on their own initial delays. The Proposed profile adds a dedicated repeated startup check, gates readiness/liveness until success, and stops startup checks after that first success. Exhausting the startup failure allowance is a restart condition. See the separate startup row in the lifecycle view.

  • Add startupProbe using exactly the same localhost OBRH API and HTTP 200 success contract as readiness: DB/Camel route-version check plus mocked provider leg.
  • While startup has not succeeded, Kubernetes suppresses both readiness and liveness probes. Startup success enables both independent probe loops.
  • Reaching the startup failure budget restarts the container. A required DB outage during boot can therefore cause startup-driven restart even if the JVM process exists.
  • Size this budget from measured initialization and dependency-recovery behavior. Repeated restart cannot repair a continuing DB outage; recovery and alerting must account for that boot-time failure mode.
  • Broader business-route warmup remains explicit initialization work. One health call does not warm every business route.
Restart-recoverable local failure

Restart-recoverable local failure

  • Keep liveness inside the same application JVM and outside the business admission gate. A separate endpoint is not a separate health microservice.
  • Define an explicit local fatal predicate for which container restart is expected to recover the application. DB outage and ordinary overload are excluded from that predicate.
  • Publish that state through the selected liveness mechanism. The predicate, state publisher and endpoint wiring are adoption work; the current endpoint alone does not prove custom fatal-state detection.
  • Once startup succeeds, liveness runs while the pod is Ready or Unready. Its failed-sample threshold can restart the container in either state.
  • Gate bypass reserves no connector threads or CPU. Verify liveness responsiveness under saturation before adopting the design.
Probe execution budget

Probe execution budget

  • Startup and readiness use the same script and application bind port. Liveness uses the separate local endpoint on that application.
  • Keep the endpoint/DB budget below the curl budget, and curl plus script overhead below the enclosing Kubernetes probe timeout.
  • The values below illustrate the shape of the proposal. Replace them with measured startup, failure-detection and recovery budgets before rollout.
Illustrative Proposed startup, readiness and liveness budgetyaml
# Container fragment only; not a deployed configuration.
# Existing application environment supplies port/context and health headers.
# The current scripts use localhost and a 3-second curl budget.
# 5 seconds is an illustrative outer timeout with script/exec margin.
startupProbe:
  exec:
    command: [bash, -c, /scratch/scripts/readiness-check.sh]
  periodSeconds: 10       # Illustrative; measure probe cost and boot behavior.
  timeoutSeconds: 5
  failureThreshold: 30    # Approx. 300-second nominal budget, not an exact deadline.
  successThreshold: 1
readinessProbe:
  exec:
    command: [bash, -c, /scratch/scripts/readiness-check.sh]
  periodSeconds: 10       # Illustrative withdrawal/recovery sampling interval.
  timeoutSeconds: 5
  failureThreshold: 3     # Illustrative consecutive failures before withdrawal.
  successThreshold: 2    # Illustrative consecutive successes before restoration.
livenessProbe:
  exec:
    command: [bash, -c, /scratch/scripts/liveness-check.sh]
  periodSeconds: 20       # Illustrative; choose with the local fatal predicate.
  timeoutSeconds: 5
  failureThreshold: 3
  successThreshold: 1