Monitoring get-batch
Overview
GetBatch (a.k.a get-batch or x-moss) is the high-performance multi-object retrieval subsystem.
Paper: GetBatch: Distributed Multi-Object Retrieval for ML Data Loading - implementation, benchmarks, and discussion.
It streams objects and archived files in strict user-specified order, assembling them on the designated target (DT) and serving them as a TAR archive (buffered or streaming).
TAR is the default output format; compressed serialized options include TAR.GZ, ZIP, and TAR.LZ4 and are also fully supported.
See also:
- GetBatch: Multi-Object Retrieval API for overview, capabilities and APIs, operational guidance, usage, Go and Python examples, and more.
- Release Notes 4.0 - GetBatch introduction.
Unlike ordinary GET requests, get-batch:
- pulls objects concurrently from many targets,
- relies on intra-cluster streaming via SharedDM,
- performs archive extraction (for shards),
- and obeys load-based throttling and a limit on tolerated soft-error events.
This page documents how to observe and monitor get-batch jobs at scale.
Key Metrics
The tables pair internal metric names with exported per-target Prometheus names. Counters ending in .n become _count, sizes ending in .size become _bytes, and periods in cumulative .ns totals become underscores. Use rate() or increase() over a window for meaningful rates.
Workload Volume & Mix
Missing-entry placeholders are not counted.
Latency, Throttling & Backpressure
Interpretation:
- High rxwait → clustering, peer-to-peer streaming, SDM performance, or transient disconnects.
- High throttle → DT-level resource pressure (memory load, CPU load, configured Advice).
Together, these two metrics separate time spent waiting on peers from time spent intentionally throttling.
Soft vs Hard Errors
With coer (continue-on-error) set in the request, missing objects and archived files are included in the output as empty placeholders under the __404__/ prefix, and the request keeps going. The per-request number of soft errors is limited by get_batch.max_soft_errs; once exceeded, the work item fails.
Hard errors reflect request-level failures, including 429 (“too-many-requests”) rejections.
PromQL examples
For PromQL examples, please refer to Observability: Prometheus document.
In this section, we only highlight a few less obvious queries that may help analyze GetBatch latency - in particular, distinguish peer-induced stalls from resource-induced throttling.