ADR-3558: Opt-in node sidecar feedback client, HTTP /readyz readiness probe, and soft per-node affinity¶
- Status: Accepted
- Date: 2026-11-17
- Deciders: lusoris
- Tags:
helm,kubernetes,deploy,ai,observability,sycl
Context¶
Two operational gaps surfaced on live cluster deployments of vmafx-node:
- Unconditional sidecar dialing with blind TCP readiness.
cmd/vmafx-nodealways startedFeedbackClient.Start()(providers.go), dialing/tmp/vmafx-sidecar.sock(VMAFX_SIDECAR_SOCKET) in the background with exponential backoff up to two minutes (ADR-1049). Because ADR-0781 remains Proposed and neither a sidecar image nor a chart container exists, everyvmafx-nodepod loggedWARN sidecar not reachable — retrying(connect: no such file or directory) forever while reporting Ready. Conversely, an operator who does co-locate a sidecar had no readiness barrier:deploy/helm/vmafx/templates/node.yamlusedtcpSocketon portgrpcfor both liveness and readiness (ADR-1094, written before the node exposed an HTTP listener onVMAFX_HTTP_ADDR), so Kubernetes never consulted/readyz. - No per-node affinity override for heterogeneous GPU pools. In
templates/node.yaml,nodeSelectorandtolerationsalready followed thenode.<field>override with fallback to global.Values.<field>, whereasaffinityread only the global.Values.affinity. On Intel GPU clusters running Node Feature Discovery and the Intel GPU device plugin (gpu.intel.com/xe), the Intel GPU plugin labels each GPU node withgpu.intel.com/product(Arc_Pro_B60orArc_B580);gpu.intel.com/device-id.<id>.presentlabels are an alternative key. Operators need a node-scoped soft preference (preferredDuringSchedulingIgnoredDuringExecution) that prefers the B60 node and falls back to the B580 node without pinning server or controller pods.
Decision¶
- Make the node sidecar client opt-in via
VMAFX_SIDECAR_ENABLED(sidecar.enabled, defaultfalse). provideFeedbackClientparsessidecar.enabledwithstrconv.ParseBool; an unparseable value fails node startup namingsidecar.enabledrather than silently defaulting tofalse.- When disabled,
provideFeedbackClientlogsINFO sidecar disabled, starts no drainer goroutine, performs zero socket dials, registers nosidecarhealth check, and counts anyFeedbackClient.Sendcall as a local drop. - When enabled, the drainer runs as before, tracks connection state and the last dial or transport error atomically on
FeedbackClient, monitors open connections for peer EOF while the send queue is idle, and caps reconnect backoff at 15 s (lowering ADR-1049's 2 min ceiling) so readiness recovers within 30 s of the socket appearing.mountNodeHealthregisters a readiness-only (health.TagReadiness) statuspage checksidecarthat reads that state without dialing from/readyz. api/vmafx-platform.tomladds chart valuenode.sidecar.enabled(boolean, defaultfalse) and[[chart_env]]entryVMAFX_SIDECAR_ENABLED: "true"rendered invmafx.env.nodeonly whennode.sidecar.enabledistrue.- Move the chart's node
readinessProbetohttpGet /readyzon portmetrics(amending ADR-1094). templates/node.yamlkeepslivenessProbeastcpSocketongrpcand switchesreadinessProbe(same timings) tohttpGetpath/readyzon portmetrics(VMAFX_HTTP_ADDR, pinned tonode.metricsPort).- Because
/readyzreplaces the KubernetestcpSocketreadiness probe ongrpc,mountNodeHealthadds a statuspage readiness checkgrpcthat performs a 1 s bounded loopback TCP dial of the configuredgrpc.listenaddress (golusoris/grpcexposesgrpc.health.v1from statuspage rather than registering a listener check onto statuspage). - Add
node.affinityto the Helm chart (k8s:io.k8s.api.core.v1.Affinity, default{}). templates/node.yamlrenders.Values.node.affinitywhen non-empty and falls back to.Values.affinity, matchingnode.nodeSelectorandnode.tolerations.values.yamldocuments softpreferredDuringSchedulingIgnoredDuringExecutionweights ongpu.intel.com/product(Arc_Pro_B60weight 100,Arc_B580weight 50) with norequiredDuringSchedulingIgnoredDuringExecutionterm for heterogeneous client Intel Arc pools.
Alternatives considered¶
| Option | Pros | Cons | Why not chosen |
|---|---|---|---|
Keep FeedbackClient always active and silence the WARN log | Zero new configuration keys | Background goroutine still wakes and dials an absent /tmp socket forever, and co-located sidecar deployments still lack readiness gating | Hides the symptom without fixing either defect |
Dial the Unix socket directly inside the /readyz handler | Stateless check function | Opens and immediately drops Unix connections on every kubelet probe, racing with the single-client sidecar accept path and adding probe latency | Reading the drainer's own atomic connection state is non-intrusive and exact |
Keep readinessProbe as tcpSocket on grpc and use gRPC health (grpc.health.v1) | Single probed port | Requires switching Kubernetes to a grpc probe and enabling grpc.health on the node listener while HTTP /readyz already serves statuspage checks on metricsPort | HTTP /readyz aligns the node with controller and server probe surfaces |
Hard-pin Arc Pro B60 via node.nodeSelector or requiredDuringSchedulingIgnoredDuringExecution | Simpler selector | Leaves pods Pending whenever the B60 node is full or cordoned instead of spilling onto the B580 node | Soft preferredDuringSchedulingIgnoredDuringExecution preserves pool fallback |
Consequences¶
- Positive: default
vmafx-nodepods emit one startupINFO sidecar disabledline and never dial/tmp/vmafx-sidecar.sock; operators who enablenode.sidecar.enabledget automaticNotReadyprotection whenever the sidecar socket is absent or disconnects, recovering within 30 s when it returns; Kubernetes readiness now checks scorer, gRPC listener, and opt-in sidecar health through/readyz; heterogeneous GPU pools can express soft device-ID preferences forvmafx-nodewithout affecting other chart workloads. - Negative: standalone callers or tests that previously relied on
vmafx-nodedialingVMAFX_SIDECAR_SOCKETwithout settingVMAFX_SIDECAR_ENABLED=truemust now opt in explicitly (NewFeedbackClientin Go unit tests remains enabled by default). - Neutral / follow-ups: ADR-1094's node
livenessProbe, rolling-update strategy,terminationGracePeriodSeconds, and PDB decisions remain unchanged; only its nodereadinessProbeitem is amended.
References¶
- ADR-0781 — online-training sidecar protocol (Proposed).
- ADR-1049 — exponential retry backoff in
FeedbackClient. - ADR-1094 — node rolling-update strategy and prior
tcpSocketprobe decision (readiness probe item amended here). - ADR-1119 — golusoris fx composition and
R-nodestop order. - ADR-1309 — same-UID owner-only sidecar socket contract.
- ADR-2350 D13 — generated chart values, Kubernetes-typed schema, and workload environment definitions (
api/vmafx-platform.toml). - Source: operator order (paraphrased) (vmafx-cluster-library-scoring-20261117, 2026-11-17, opt-in node sidecar with
/readyzreadiness gate and soft Intel Arc node affinity).