The front door to AI in the workplace.

When a distributed Ray job fails, the first question is rarely "what happened?" It's "which layer did it happen in?" A RayActorError in your training script might be a bug in your code, a worker Pod that Kubernetes evicted, or a failing GPU on the node underneath. Answering that question has traditionally meant context-switching between the Ray Dashboard, kubectl describe, Cloud Logging, and whatever node-level tooling your platform team set up.

Over the past year, in collaboration with Anyscale and the open-source community, we've been working to close that gap for Ray on Google Kubernetes Engine (GKE), both upstream in the open-source Ray and KubeRay projects, as well as the managed Ray Operator add-on. Today, we're sharing four capabilities that bring the full stack into view:.

Kubernetes platform events in the Ray Dashboard: View Pod scheduling, evictions, and OOM kills alongside your tasks and actors.

Node and hardware fault forwarding: Automatically route node-level GPU and host faults to the specific Ray clusters they affect.

On-demand JAX profiling on Cloud TPUs: Capture XLA traces from live Ray TPU workers through the Ray Dashboard and inspect them in managed XProf.

Structured Ray logs by default: Query and aggregate Ray logs by job_id, actor_id, and task_id out of the box in Cloud Logging.

Sources indicate that imagine a training job has been running for an hour when the Ray Dashboard marks a worker as dead with "missed heartbeats" and rolls the job back to its last checkpoint. Ray knows the worker process disappeared, but not why. Previously, finding out meant opening a terminal and running kubectl get events to see whether the kubelet terminated the Pod for exceeding its memory limit (OOMKilled), or whether a replacement Pod was stuck in FailedScheduling because the node pool ran out of capacity. If the Pod has already been garbage-collected, even that trail may be gone — and if you're a data scientist or ML engineer without kubectl access, you're filing a ticket and waiting. The Ray Dashboard is where Ray owners already spend their time, so that's where this information belongs.

Industry observers note that starting in Ray 2.56, a new Platform Events tab brings that Kubernetes activity into the dashboard alongside your tasks and actors. Initial support covered RayCluster, RayJob, and RayService resources, and Ray 2.58 extended it to individual Pods. Events like CreatedWorkerPod, FailedScheduling, OOMKilled, and Evicted now appear on the same timeline as your workload.

Under the hood, Ray records these as a latest, platform-agnostic PlatformEvent type. Keeping the schema independent of Kubernetes means the same dashboard view can support Slurm or other schedulers in the future. Platform events also flow through Ray's standard event pipeline, so if you already export task and actor events to an external backend, platform events will also be exported as well. Enabling event ingestion takes a few lines of YAML and a small RBAC role. See the Ray documentation for complete RayCluster and RayJob examples.

When the underlying hardware degrades, Pod-level events only tell part of the story. Suppose a multi-host training actor crashes with what looks like a communication timeout between workers. Ray restarts it on the same node, and it crashes again. At the Pod level, the events look clean: The container ran, failed, and restarted. The real cause is a GPU on that node that has been reporting XID errors, the NVIDIA driver's codes for hardware and driver faults. The only place that fact is recorded is a Kubernetes event on the Node object in the kube-system namespace, which most Ray consumers can't read and wouldn't know to look for. Until someone correlates the two, the job keeps landing on the bad hardware.

According to recent reports, on GKE, these host-level faults are already detected for you. The GPU device plugin reports critical XID errors as Kubernetes Warning events on the Node, and since GKE 1.36 the event identifies which specific GPU faulted. Node-problem-detector, the daemon GKE runs on every node to watch for host-level issues, reports kernel deadlocks and other host problems the same way. What was missing is the link from "node X has a bad GPU" to "your training actor just died.".

Recent findings suggest that kubeRay 1.8 adds a node event forwarder that makes that connection. When a Node reports a fault, the operator finds the RayCluster resources with Pods on that node and re-emits the event on each of them, so it highlights up in the Platform Events tab next to the actor failure it caused, naming the GPU that faulted. The forwarder is selective by design. You choose which sources, reasons, and event types to forward, recurrences of the same fault are deduplicated, and the operator's RBAC for reading Node events is scoped to the two namespaces (default and kube-system) where Kubernetes records them.

In a recent development, observability isn't only about catching failures, it's also about diagnosing silent performance regressions. Suppose a JAX training job on a TPU slice is healthy but slow; step time has crept up since a recent change and it isn't clear which operator is responsible. The answer is in a profiler trace, but capturing one from a Ray worker means adding profiler calls to your training loop, redeploying, kubectl exec-ing into the right Pod, and copying files out by hand — a slow workflow when you want to catch a step slowdown as it happens.

It has been revealed that starting in Ray 2.57, you can capture that trace from Ray's dashboard API instead. A one-line call in your JAX task or actor registers an in-process profiler with Ray, and from then on a single request to the dashboard API can profile any TPU worker on demand, for whatever duration you choose, while the job keeps running — no redeploy or shell into the Pod required. The trace lands in the worker's Ray session logs, ready to open in TensorBoard's profile plugin, where you can see the XLA op timeline, compilation time, and TPU utilization for exactly the window you captured.

It has been revealed that in practice this changes how you investigate slow steps. Instead of guessing, you grab a five-second profile of a slow worker and a healthy one, and the comparison usually tells you whether it's a recompilation, an input pipeline stall, a collective waiting on a straggler host, or an op that's not using the TPU well. The JAX profiler user guide walks through the setup, including a sample RayJob for TPUs.

Sources indicate that on GKE, you can also bypass running a local TensorBoard instance. Because Ray starts a standard JAX profiler server, GKE ML Diagnostics on-demand capture can target the same Ray TPU workers once you enable it on the cluster. The trace opens in managed XProf in the Google Cloud console, with a shareable link and fast loading for large multi-host profiles, instead of a locally run TensorBoard.

Distributed Ray workloads produce a high volume of logs, and until recently GKE shipped each line to Cloud Logging as an unparsed string in jsonPayload.log. Suppose a Ray job with hundreds of tasks failed overnight and you want the traceback from the one task that failed. In Cloud Logging, entries defaulted to INFO severity, multi-line tracebacks were split across separate records, and isolating that task required a regular expression over raw message text and some luck with timestamps. The information was there, but it wasn't easily queryable.

Starting with GKE version 1.37.1-gke.1442000, Ray clusters with log collection enabled emit structured JSON logs by default, and the managed Ray Operator parses them on the way into Cloud Logging. Ray's own identifiers, the job_id, task_id, actor_id, worker_id, and node_id become first-class fields, severity reflects the actual log level, and multi-line messages stay grouped in a single entry. Because these are structured fields, you can also build logs-based metrics on them (for example, error rate per actor) or run SQL against them in Log Analytics.

If you already have parsers, sinks, or alerts built on the previous text format, your existing setup stays intact until you're ready. The operator respects logging settings you've configured yourself, and a single annotation opts a RayCluster or worker group back out to plain-text formatting without dropping log entries. The Ray logging guide for GKE covers the field names, example queries, and the opt-out annotation.

Recent findings suggest that together, these updates connect the Ray application layer to the Kubernetes and hardware layers underneath it. When a workload slows down or fails, ML engineers can see Pod evictions and node-level GPU or kernel faults right inside the Ray Dashboard, filter Cloud Logging by job_id or actor_id to inspect the exact task that failed, and capture on-demand TPU profiles to check step time in managed XProf. Instead of stitching together clues across kubectl, node logs, and platform tickets, teams can promptly pinpoint whether an issue started in Python code, Kubernetes scheduling, or physical hardware.

Enable the Ray Operator add-on with log collection on a GKE cluster running 1.37.1-gke.1442000 or later to get structured logs with no manifest changes.

Turn on platform events in your RayCluster and, if you run KubeRay 1.8, enable the RayNodeEventForwarder feature gate.

Try the JAX profiler guide on a TPU RayJob, and enable ML Diagnostics on the cluster to view traces in managed XProf.

Industry observers note that the Ray and KubeRay pieces of this work are open source. If you have feedback or ideas, open an matter in the KubeRay or Ray repositories.

By Alex Barrett • 35-minute read.

By Sisira Narayana • 9-minute read.

By Shrikant Kelkar • 4-minute read.

📌 Read also:

→ Read original article