Startup and probes

  • Startup completion, readiness changes and the conditions that justify a restart.
Diagram phase
100%
Current source · readiness and liveness loopsQualitative timing · positions do not represent measured secondsStartup probeNot configured in the selected Current templatesReadiness looprepeat · update Ready/UnreadyLiveness looprepeat · threshold may restartRestart impactLiveness threshold reachedReadiness withdrawal and restart have different capacity costs.

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

  • Current templates omit startupProbe.
  • Readiness and liveness use their own delay, period, timeout and threshold.
  • Choose the failure-exposure window the domain can tolerate; withdrawal and restart have different capacity costs.
Local readiness

Local readiness

  • Local readiness calls the OBRH DB/Camel health API with a mocked provider; liveness uses a separate Actuator endpoint.
  • Inspected templates use separate fixed probe delays and contain no startupProbe; no custom fatal-state publisher is established.
  • Each Direct pod calls its own localhost:/route/dispatch through the readiness script. The default application port is 8080.
  • The configured consumer is OBRH_HEALTH_CHECK; the service is obrh-healthcheck-lb-v1. Only HTTP 200 passes the script.
  • The health operation checks the site's DB/Camel route-version state and uses a mocked provider leg. It does not test real provider availability.
  • This local check does not traverse Cisco, the gateway Service or another application pod. It warms only the paths it actually executes.
Existing probe schedule

Existing probe schedule

Probe contracts

Choose the failure exposure you are willing to bear

If a Pod fails immediately after a successful readiness check, a five-second check interval can leave traffic exposed until the next observation. That is an explicit SRE risk decision: choose the window from the failed or slow requests the service can tolerate and the capacity available elsewhere. A false failure can instead withdraw useful capacity and overload the remaining replicas.

Make the tolerated window and threshold agree

Start with the next-check exposure window, then include failureThreshold, probe duration/timeout and endpoint propagation. For an illustrative five-second period and threshold of three failures, detection can span roughly 10–15 seconds from failure onset before those additional effects. This scheduling estimate is not a hard bound. If that exposure is unacceptable, change the contract or detection design rather than describing the configured interval as sufficient.

Relate the window to useful throughput

If illustrative failed attempts average 100 requests/second for a 10-second exposure window, about 1,000 attempts are exposed to that failure mode. That is not automatically 1,000 lost business transactions: retries, idempotency, rerouting and unknown outcomes change the result. Measure offered, successful, rejected, timed-out and retried requests together. If peers have enough capacity, readiness withdrawal can improve useful throughput despite reducing the ready replica count.

Liveness can create a longer capacity hole

After its failure threshold, liveness can restart the container. Termination, process startup, artifact work, configuration warmup and startup/readiness checks add to the period without useful capacity. Aggressive restart thresholds can turn transient CPU/GC/dependency pressure into repeated warmups; readiness should normally handle recoverable traffic ineligibility.

Tune by failure impact within each domain

Choose periods, thresholds and timeouts from the failure to detect, the acceptable exposure window and remaining domain capacity. Balance fast withdrawal against flapping, probe overhead and restart cost. Check recovery thresholds and endpoint convergence as well as detection. Domain/cluster isolation contains application failure only while shared storage, identity, network and other dependencies remain within their stated failure boundaries.

  • The inspected Direct and IL templates contain readiness and liveness exec probes, with separate fixed initial delays. Neither contains startupProbe.
  • Readiness begins after its own delay; liveness begins after its own delay. Readiness success does not enable liveness.
  • Readiness failure makes the pod unready after its failure threshold. It does not itself restart the container; liveness can restart from either Ready or Unready.
  • The scripts use a 3s curl budget, while the inspected templates also use timeoutSeconds: 3. The proposal adds enclosing budget margin.
  • These are source contracts; effective deployed values and current runtime state are not established here.
Restart-recoverable local failure

Restart-recoverable local failure

  • The liveness script checks the same application's localhost /actuator/health/liveness endpoint and accepts HTTP 200.
  • The SQL configuration enables management.health.livenessState.enabled and management.endpoint.health.probes.enabled.
  • This establishes endpoint enablement. A custom publisher of a restart-worthy BROKEN state has not been established by the inspected evidence.
  • The SQL's Actuator readiness-group setting does not define the custom OBRH dispatch script's success contract.