Google Cloud boosts Ray observability on GKE: platform events from Ray 2.56, node failure forwarding in KubeRay 1.8, structured logs by default on GKE 1.37.1

Google Cloud announced four Ray on GKE observability features covering Kubernetes events, GPU and host failure forwarding, on-demand TPU profiling and structured logs, each tied to specific Ray, KubeRay and GKE versions.

News date: About 7 min read

Contents
  1. 1. What does this update change?
  2. 2. Which versions and conditions apply to each feature?
  3. 3. How do node failures and TPU profiling change troubleshooting?
  4. 4. How do structured logs help with querying?
  5. 5. How do you get started?

Google Cloud announced on its official blog that Ray on GKE (running Ray distributed computing workloads on Google Kubernetes Engine) gains four observability features. Observability is the ability to see what is happening inside a system. The four features belong to different versions of Ray, KubeRay and GKE. Google Cloud only describes the versions and settings each feature needs, and does not mention a preview or waitlist. It says the goal is to let ML engineers work out faster whether a problem lies in Python code, Kubernetes scheduling or physical hardware, without switching between the Ray Dashboard, kubectl (the Kubernetes command-line tool) and Cloud Logging.

What does this update change?

Google Cloud notes that when a distributed Ray job fails, engineers have often had to switch among the Ray Dashboard, kubectl describe, Cloud Logging and node-level tools. It says the update was built with Anyscale and the open-source community, and lands in open-source Ray, KubeRay (the open-source project for managing Ray clusters on Kubernetes) and the managed Ray Operator add-on.

  • Kubernetes platform events: Ray 2.56 adds a Platform Events tab, initially covering RayCluster, RayJob and RayService, and Ray 2.58 extends it to individual Pods (the units that run containers in Kubernetes). Events shown include CreatedWorkerPod, FailedScheduling, OOMKilled (terminated for exceeding its memory limit) and Evicted.
  • Node and hardware failure forwarding: the KubeRay 1.8 forwarder finds RayClusters with Pods on a failing node and re-emits the events onto those resources.
  • On-demand TPU profiling: a TPU is Google's AI accelerator chip, and profiling records how long each step of a program takes. From Ray 2.57, after adding a one-line call to a JAX job, you can profile TPU workers through the Ray dashboard API while the job keeps running.
  • Structured logs: from GKE 1.37.1-gke.1442000, Ray clusters with log collection enabled emit structured JSON logs by default.

Google Cloud also says Ray records these events with a platform-agnostic PlatformEvent type, so the same dashboard view could later support Slurm or other schedulers. Platform events travel through Ray's standard event pipeline; if task and actor (a long-lived, stateful unit of work in Ray) events are already exported to an external backend, platform events are exported too.

Which versions and conditions apply to each feature?

Versions and conditions as described by Google Cloud
FeatureVersion / conditionKey point
Platform EventsFrom Ray 2.56; Pod level from Ray 2.58Needs a little YAML and an RBAC role
Node failure forwardingKubeRay 1.8Requires the RayNodeEventForwarder feature gate; from GKE 1.36, GPU events identify the specific failing GPU
On-demand TPU profilingFrom Ray 2.57Results open in TensorBoard; with ML Diagnostics enabled, viewable in managed XProf
Structured logsGKE 1.37.1-gke.1442000 or later; log collection must be enabledOn by default; one annotation reverts to plain text

How do node failures and TPU profiling change troubleshooting?

Google Cloud explains that the GPU device plugin on GKE reports severe XID errors (codes the NVIDIA driver uses to signal hardware and driver faults) as Kubernetes Warning events on the Node. node-problem-detector likewise reports host problems such as kernel deadlocks. What was missing was the link between "a node has a bad GPU" and "your training actor just died." The KubeRay 1.8 forwarder supplies that step, so the events appear in the Platform Events tab.

The forwarder lets you choose which sources, reasons and event types to forward, and repeated occurrences of the same fault are deduplicated. The operator's RBAC (role-based access control) scope for reading Node events is limited to the default and kube-system namespaces. To enable the forwarder, turn on the RayNodeEventForwarder feature gate, which is a feature switch.

For TPUs, Google Cloud says that from Ray 2.57 you can profile a running TPU worker for a chosen duration without redeploying or entering the Pod. Traces are stored in the worker's Ray session logs, and TensorBoard shows the XLA operation timeline, compile time and TPU utilization. If GKE ML Diagnostics is enabled on the cluster, you can also capture on demand from the same Ray TPU workers and open the result in managed XProf in the Google Cloud console, with a shareable link.

How do structured logs help with querying?

Google Cloud says GKE previously put each Ray log line in jsonPayload.log as an unparsed string, with severity defaulting to INFO, and split multi-line tracebacks into separate entries. With the new setup, 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 in a single entry.

Google Cloud says the structured fields can also be used to build log-based metrics (for example, error rate per actor) or to run SQL queries in Log Analytics. Parsers, sinks or alerts already built on the old text format stay unchanged, and the operator respects log options users have set themselves. A single annotation reverts a RayCluster or worker group to plain text without losing logs.

How do you get started?

Google Cloud suggests the following steps:

  1. On a GKE cluster running 1.37.1-gke.1442000 or later, enable the Ray Operator add-on with log collection to get structured logs without changing your manifests.
  2. Turn on platform events in your RayCluster; if you use KubeRay 1.8, also enable the RayNodeEventForwarder feature gate.
  3. Try it on a TPU RayJob by following the JAX profiler guide, and enable ML Diagnostics on the cluster to view traces in managed XProf.

Frequently asked questions

Are these features all launching together?

According to Google Cloud, they do not come from a single release. Platform events start in Ray 2.56, with Pod level from 2.58; TPU profiling from Ray 2.57; node forwarding in KubeRay 1.8; structured logs in GKE 1.37.1-gke.1442000. Google Cloud does not mention a preview or waitlist stage, nor regional availability.

Will my existing log parsers and alerts break?

Google Cloud says parsers, sinks and alerts built on the old text format stay unchanged until users are ready. A single annotation can also revert a RayCluster or worker group to plain text without losing logs.

Do data scientists without kubectl access benefit?

Google Cloud says people without kubectl access previously had to file a ticket and wait. The new Platform Events tab puts Kubernetes events inside the Ray Dashboard, so users can see them in a familiar interface. However, event collection itself still needs an RBAC role to be configured.

Are these changes open source?

Google Cloud says the Ray and KubeRay parts are open source and welcomes feedback as issues in the KubeRay or Ray repositories; the managed Ray Operator add-on is a GKE feature.

Browse the latest news in this topic

Found this guide helpful? Share it with someone who needs it

Sources

Compiled from the references and verification dates listed above; fares, schedules, product features, and terms can change, so please confirm the latest details on the relevant official website before travelling, booking, or purchasing.

Lifestyle