Home / Blog / Ray-Kubernetes observability: Comprehensive logs, events
Tech News

Ray-Kubernetes observability: Comprehensive logs, events

Google Cloud introduced full-stack observability for Ray on GKE, bringing Kubernetes platform events, hardware fault forwarding, and TPU profiling to Ray 2.58.

By Dillip Chowdary • Nov 30, 2026 • Source: Google Cloud Blog

Ray-Kubernetes observability: Comprehensive logs, events
Image: Google Cloud Blog

At a glance

Product
Ray on Google Kubernetes Engine
Versions
Ray 2.56–2.58, KubeRay 1.8, GKE 1.36+
Release date
December 1, 2026
Availability
Managed Ray Operator on GKE and open source
Telemetry scope
Kubernetes events, GPU faults, Cloud TPU traces
Logging support
Default JSON parsing from GKE 1.37.1-gke.1442000

Google Cloud, in collaboration with Anyscale and the open-source community, released new observability features for Ray on Google Kubernetes Engine to bridge workload monitoring with infrastructure diagnostics. In Google Cloud Blog's report, the engineering team detailed four capabilities across open-source Ray, KubeRay, and the managed Ray Operator add-on. Distributed AI workloads running across large accelerator clusters often suffer from ambiguous failures where worker errors could stem from code bugs, Kubernetes Pod evictions, or hardware degradation.

This report covers architectural upgrades across Ray versions 2.56, 2.57, and 2.58, alongside KubeRay 1.8 and GKE release 1.37.1-gke.1442000. It is designed for machine learning engineers and platform teams diagnosing distributed training or inference failures. The new toolset eliminates manual context-switching across terminal commands, cloud logging consoles, and node monitoring daemons.

01Kubernetes platform events in Ray Dashboard

Distributed training jobs previously marked failed workers with missed heartbeats without exposing whether the failure originated from Kubernetes actions or container crashes. Investigating these transient states required elevated command-line permissions to inspect evicted containers or unscheduled Pods, creating diagnostic delays across platform teams. The lack of infrastructure context inside the Ray Dashboard forced engineers to open support tickets to uncover routine scheduling conflicts.

Starting in Ray 2.56, a dedicated Platform Events tab displays Kubernetes scheduling actions, evictions, and memory terminations alongside active tasks and actors. Ray 2.58 expanded this tracking to individual Pod records, presenting events like CreatedWorkerPod, FailedScheduling, OOMKilled, and Evicted on the workload execution timeline. Captured through a platform-agnostic PlatformEvent schema, the data exports through standard event pipelines and requires only a small role binding.

02Node and hardware fault forwarding

Hardware degradation often produces ambiguous application crashes where multi-host actors fail with apparent communication timeouts between distributed workers. Because container runtimes simply record normal process restarts, Ray repeatedly schedules replacement actors onto the same damaged physical machines. The root cause frequently stems from GPU hardware faults signaled through NVIDIA driver XID errors that remain hidden within privileged node-level system events.

Google Kubernetes Engine automatically detects these physical defects through its GPU device plugin and node-problem-detector daemon, reporting kernel deadlocks and specific GPU errors. KubeRay 1.8 introduces a node event forwarder that discovers which RayCluster resources host Pods on affected machines and re-emits those hardware warnings into the cluster timeline. The forwarder deduplicates repeated faults, filters events by source and reason, and scopes permissions strictly to default and kube-system namespaces.

03On-demand JAX profiling on Cloud TPUs

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Diagnosing performance regressions in distributed JAX jobs on Cloud TPU slices traditionally required manual profiling hooks inside active training loops. Capturing trace data meant redeploying workloads, executing interactive shells into individual Pods, and copying trace files manually to local environments. This cumbersome workflow made it difficult to inspect sudden step slowdowns or verify whether an individual operator degraded overall training throughput.

Ray 2.57 introduces on-demand profiling through the dashboard interface, allowing engineers to capture XLA execution traces from live TPU workers without restarting jobs. A single code line registers an in-process profiler in the JAX actor, saving traces directly into worker session logs for inspection in TensorBoard. On Google Kubernetes Engine, GKE ML Diagnostics integrates with these profiling servers to display traces inside managed XProf in the cloud console.

04Structured Ray logs in Cloud Logging

Distributed Ray jobs produce heavy log volumes that previously arrived in Cloud Logging as raw, unparsed text strings nested within generic payload fields. Diagnostic queries suffered because all entries defaulted to INFO severity levels while multi-line application tracebacks were split across multiple independent log records. Isolating a single failed task among hundreds of workers required fragile regular expressions and manual timestamp correlation.

FeatureLegacy text loggingStructured JSON logging
GKE versionPrior to 1.37.11.37.1-gke.1442000 and later
Parsing modeUnparsed string payloadAutomatic JSON schema parsing
Log severityDefaults to INFOReflects actual emitted log level
TracebacksSplit across separate recordsPreserved in single grouped entry
Query keysPlain text regex searchingFilterable by job_id, actor_id, and task_id

Starting in GKE version 1.37.1-gke.1442000, clusters emit structured JSON records parsed by the managed Ray Operator during log ingestion. Identifiers including job_id, task_id, actor_id, worker_id, and node_id become first-class query fields, allowing teams to build logs-based alerting metrics or execute SQL queries in Log Analytics. Multi-line error tracebacks remain consolidated within single entries, dramatically simplifying post-mortem failure analysis.

Note: Existing log parsers and ingestion sinks remain fully operational because the Ray Operator respects custom logging definitions. Platform administrators can apply a single annotation to any RayCluster or worker group to opt out of structured JSON formatting and revert to plain text without dropping messages.

05Full-stack correlation across distributed workloads

Combining these diagnostic capabilities connects the distributed application layer directly with the Kubernetes orchestration engine and underlying host hardware. Machine learning engineers no longer need to guess whether an unexpected RayActorError arose from code regressions, resource evictions, or physical accelerator faults. Unified visibility reduces mean time to recovery across large-scale training runs by consolidating operational telemetry into familiar developer tools.

By embedding infrastructure events into the Ray Dashboard, platform teams eliminate the operational silos that historically slowed down incident response. Data scientists gain self-service visibility into scheduler decisions, while infrastructure administrators retain fine-grained control through scoped role bindings and selective event forwarding. These enhancements establish a repeatable operational framework for operating large distributed AI models on cloud infrastructure.

Frequently asked questions

How do Kubernetes platform events appear in the Ray Dashboard?

Starting in Ray 2.56, a dedicated Platform Events tab displays cluster and job activity, which Ray 2.58 extended to individual Pods. Events such as CreatedWorkerPod, FailedScheduling, OOMKilled, and Evicted appear directly on the workload execution timeline.

How does KubeRay connect node hardware faults to failing Ray actors?

KubeRay 1.8 introduces a node event forwarder that detects GPU XID errors and node-problem-detector warnings. The operator identifies which RayCluster has Pods on the failing node and forwards the event to the Ray Dashboard, specifying the exact GPU that faulted.

How does on-demand JAX profiling work on Cloud TPUs with Ray?

Ray 2.57 allows users to register an in-process profiler with a single line of code in a JAX actor and trigger trace captures via the dashboard API. On GKE, GKE ML Diagnostics can capture these traces and load them directly into managed XProf in the Google Cloud console.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →