Google Cloud Adds Kubernetes Events, Hardware Fault Links and Structured Logs to Ray on GKE
Google Cloud and KubeRay added Kubernetes platform events to the Ray Dashboard, forwarding of node GPU faults to affected clusters, on-demand JAX profiling on TPUs, and structured logs by default. The changes aim to show whether a Ray failure started in code, scheduling, or hardware.

TL;DR
- Ray on GKE now shows Kubernetes events such as evictions, OOM kills and scheduling failures inside the Ray Dashboard.
- KubeRay 1.8 forwards node-level GPU and host faults to the Ray clusters running on the affected nodes.
- Ray logs arrive in Cloud Logging as structured JSON by default, and TPU workers can be profiled on demand.
Why a Ray failure is hard to locate
When a distributed Ray job fails, the first task is usually to find the layer where the problem started. A RayActorError can come from a bug in the training script, from a worker Pod that Kubernetes evicted, or from a faulty GPU on the underlying node. Until now, engineers had to move between the Ray Dashboard, kubectl, Cloud Logging and node-level tools. Google Cloud says that Kubernetes events may be lost once a Pod has been garbage-collected, and that users without kubectl access must file a ticket to see them.
Platform events and node fault forwarding
Starting with Ray 2.56, a Platform Events tab shows Kubernetes activity next to tasks and actors. It covers RayCluster, RayJob and RayService resources, and Ray 2.58 extended it to individual Pods. Events such as CreatedWorkerPod, FailedScheduling, OOMKilled and Evicted appear on the same timeline as the workload. Ray stores these as a platform-agnostic PlatformEvent type, so the same view could later support other schedulers such as Slurm. The events also flow through Ray's standard event pipeline, which means they can be exported to an external backend.
Hardware faults are a separate gap. On GKE, the GPU device plugin reports critical XID errors, which are NVIDIA driver codes for hardware and driver faults, as Warning events on the Node object. Node-problem-detector reports other host problems in the same way. Most Ray users cannot read these events in the kube-system namespace. KubeRay 1.8 adds a node event forwarder that finds the RayCluster resources with Pods on the faulty node and re-emits the event on each of them. Operators can choose which sources, reasons and event types to forward, and repeated occurrences of the same fault are deduplicated. The RBAC permissions for reading Node events are limited to the default and kube-system namespaces.
Profiling JAX on TPUs without redeploying
Slow steps are harder to diagnose than failures. According to Google Cloud, Ray 2.57 lets a JAX task or actor register an in-process profiler with a single call. After that, one request to the Ray dashboard API can capture a profile from any TPU worker for a chosen duration, while the job keeps running. The trace is written to the worker's Ray session logs and can be opened in TensorBoard's profile plugin. It shows the XLA operation timeline, compilation time and TPU utilization for the captured window. On GKE, ML Diagnostics can target the same workers and open traces in managed XProf in the Google Cloud console, so a local TensorBoard instance is not needed. Google Cloud suggests comparing a profile of a slow worker with one of a healthy worker to see whether the cause is recompilation, an input pipeline stall, a collective waiting on a straggler host, or an operation that underuses the TPU.
Structured logs by default
Ray produces many log lines, and until recently GKE sent each line to Cloud Logging as an unparsed string. Starting with GKE version 1.37.1-gke.1442000, Ray clusters with log collection enabled emit structured JSON logs, and the managed Ray Operator parses them. The job_id, task_id, actor_id, worker_id and node_id values become queryable fields, severity matches the real log level, and multi-line tracebacks stay in one entry. These fields can feed logs-based metrics or SQL queries in Log Analytics. Existing parsers and alerts continue to work, and an annotation can switch a RayCluster or worker group back to plain text.
Why it matters
For ML and platform teams running Ray on GKE, the changes shorten the path from a symptom to its cause. An eviction or GPU fault can be seen in the same dashboard as the actor failure it caused, and a failed task can be found in Cloud Logging by its job or actor ID. Teams that already use Kubernetes-level tooling may need to decide which node events to forward and who gets RBAC access to them. Since the Ray and KubeRay parts are open source, feedback can go to the KubeRay or Ray repositories. Readers who manage GKE clusters may also find our earlier post on Google makes sidecar-less ambient networking generally available on GKE useful for context on other GKE platform changes.
Sources
This article was written by Blozhik from the reporting below. Read the originals for full detail.
GoRay-Kubernetes observability: Comprehensive logs, events, and TPU traces for Ray on GKEGoogle Cloud Blog

