Unverified Commit a2df2f24 authored by Lemon-miaow's avatar Lemon-miaow
Browse files

fix(operator): re-probe RCON every 2s while Starting

The readiness gate is status-driven; at a 5s re-probe cadence the observed
'container Ready but API still 409 not_running' window was 6~10s. Halving the
cadence halves the worst case; probes still only run while unreachable.
parent 2a8f897e
Loading
Loading
Loading
Loading
+6 −1
Changes for internal/operator/reconciler.go: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -27,7 +27,12 @@ import (

// Requeue cadences for the transient phases.
const (
	requeueStarting            = 5 * time.Second
	// requeueStarting is the cadence of the RCON readiness re-probe while a server
	// is Starting. It bounds the window where the container is Ready but the API
	// still answers 409 not_running: at 5s the observed lag after container-ready
	// was 6~10s; 2s keeps wake-to-usable snappy without hammering a booting Java
	// process (the probe only runs on this cadence while the server is unreachable).
	requeueStarting            = 2 * time.Second
	requeueStopping            = 5 * time.Second
	requeueSecret              = 10 * time.Second
	defaultTimeoutSeconds      = 300