Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions kcl/cluster_health_performance/pipeline.k
Original file line number Diff line number Diff line change
Expand Up @@ -165,25 +165,10 @@ fi
}
kperf.RunKperfDataIngest("cm", "kperf", s.name, total=s.count, qps=50, burst=50, size=s.size, groupSize=50, batchSize=s.count)
kperf.RunKperfRunnerGroup("ghcr.io/xinweiwei24/kperf:20260709-pause", "file://$(Pipeline.Workspace)/s/${s.manifest}", affinity="agentpool=runner")
# Poll `kperf rg result` after a fixed sleep to avoid the long-lived port-forward that EOFs on the ADO agent.
steps.Script {
displayName = "Fetch kperf runner group result (${name})"
continueOnError = True
script = """
set -euo pipefail
sleep 300
Comment thread
liyu-ma marked this conversation as resolved.
Resolved
attempt=0
max_attempts=5
until kperf rg result | tee "/tmp/kperf-result-${name}.json"; do
attempt=$((attempt + 1))
if [ "$attempt" -ge "$max_attempts" ]; then
exit 1
fi
echo "attempt $attempt failed; retry in 10s" >&2
sleep 10
done
"""
}
kperf.FetchKperfRunnerGroupResult(
displayName="Fetch kperf runner group result (${name})",
resultPath="/tmp/kperf-result-${name}.json",
initialDelaySeconds=300)
# Delete the namespace before the next scenario recreates it.
steps.Script {
displayName = "Cleanup scenario state (${name})"
Expand Down
Loading
Loading