By news editor
Google Cloud has detailed four changes meant to shorten the hunt for why an AI job running on Ray failed on Google Kubernetes Engine (GKE). They put Kubernetes scheduling events and hardware faults into the Ray Dashboard, add on-demand profiling for jobs on Google's TPU chips, and turn Ray's logs into structured, searchable records by default, according to a Google Cloud blog post by software engineer Richa Banker.
Ray is an open-source framework for spreading Python and AI workloads across many machines, and GKE is Google's managed Kubernetes service. The post says the work was done over the past year with Anyscale and the open-source community, in the open-source Ray and KubeRay projects and in GKE's managed Ray Operator add-on.
Diagnosis is the problem Google describes. A failed Ray job might trace to a bug in the user's code, a worker that Kubernetes evicted, or a failing GPU, and the post says telling them apart has meant switching between the Ray Dashboard, Kubernetes command-line tools, Cloud Logging and node-level tooling. Data scientists without Kubernetes access have had to file a ticket and wait, it adds.
The first change is a Platform Events tab in the Ray Dashboard. Starting in Ray 2.56 it shows Kubernetes activity for Ray clusters, jobs and services, and Ray 2.58 extended it to individual Pods, the units Kubernetes schedules. Failed scheduling, out-of-memory kills and evictions now appear on the same timeline as the workload. Switching it on takes "a few lines of YAML and a small RBAC role", the post says, meaning a short configuration file and a permission grant.
Hardware faults are the second. GKE already reports critical GPU errors as events on the affected node, and since GKE 1.36 the event identifies which GPU faulted, according to the post. Most Ray users cannot read those node events. The post describes the result: "Until someone correlates the two, the job keeps landing on the bad hardware."
KubeRay 1.8, the open-source operator that runs Ray on Kubernetes, adds a forwarder that copies a node's fault onto every Ray cluster with work on that node, so it shows up next to the failure it caused. It is not automatic. Google's instructions say users of KubeRay 1.8 must enable a feature gate, and they choose which fault sources and event types to forward.
Profiling is the third change, and it applies to jobs written in JAX, Google's numerical computing library, on Cloud TPUs. Starting in Ray 2.57, an engineer can capture a performance trace from a running worker through the dashboard's API without redeploying the job. On GKE, the trace can open in managed XProf in the Google Cloud console once ML Diagnostics is enabled on the cluster.
Logging is the fourth. 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 into Cloud Logging. Job, task and actor identifiers become searchable fields, and multi-line error messages stay in one entry. Customers with parsers or alerts built on the old text format keep their setup, the post says, and one annotation opts a cluster back out.
No customers are named in the post. Its scenarios are hypothetical, introduced with "Imagine" and "Suppose", and it gives no measured figure for time saved or failed runs avoided. Pricing is not mentioned for the Cloud Logging, ML Diagnostics or XProf usage involved. The post also does not say whether any of the four features is in preview or generally available.
Getting all four takes a recent version of every layer. The pieces arrive across three Ray releases, one KubeRay release and two GKE versions. Google says the Ray and KubeRay parts are open source, while the structured logging path and the XProf viewer it describes run through GKE and the Google Cloud console.
The next thing to watch is evidence. A named customer, a benchmark of time to diagnose a failed job, or documentation stating the support status of each feature would turn the post's scenarios into something a platform team could plan around. Google invites feedback through the KubeRay and Ray repositories.

Leave a Reply