Documentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
CPU profiling with py-spy
The dashboard’s “Stack Trace” action on a task or actor invokes py-spy to capture a flame graph for that worker. CLI equivalent:ray exec:
Memory profiling with memray
Chrome timeline
chrome://tracing to see per-task and per-actor activity over time.
Deep dives
ray::IDLEworkers waiting for work — usually fine, but a sea of them suggests over-provisioning.- High
gcs_*time in profiles suggests the GCS is the bottleneck. Scale the head node up. - High pickling time suggests large arguments — use
ray.put.
Next steps
Tracing
Distributed tracing.
State API
Cluster state queries.