Skip to main content

wait_cluster_warm

Function wait_cluster_warm 

Source
async fn wait_cluster_warm(
    config: &ClusterConfig,
) -> Result<Vec<String>, DevError>
Expand description

Poll every storage child’s Health RPC until its cache-warm walk finishes (warm_ready), so the HTTP server — and the benchmark’s start signal — only comes up after first queries can no longer race the warm pass.

Past waratah_storage::WARM_MAX_WAIT a stuck walk stops blocking: warn on stderr and return the pending names as startup warnings, which the session surfaces through /health. Poll errors (a child briefly busy) count as not-ready and keep the loop going until the deadline.