]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/script: init test_stretch crush_collisions.sh
authorKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Tue, 28 Apr 2026 20:13:10 +0000 (20:13 +0000)
committerKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Tue, 28 Apr 2026 20:13:10 +0000 (20:13 +0000)
commita22a63030fc99285fc2d3cbceeceea9349790fa6
tree99ef78ed6edc3f5394a209a76569823d87377dff
parent5007efad275c40c97654afaafb22818fd9b84a00
src/script: init test_stretch crush_collisions.sh

Add script to test for CRUSH retry exhaustion in stretch mode with
2 datacenters. Tests unbiased stretch rules by running multiple
iterations of PG mappings and checking for collisions that exceed
the 50-try limit.

Also add --show-retry-exhaustion flag to crushtool to detect and
report when CRUSH mapping hits the maximum retry limit.

Signed-off-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
src/crush/CrushTester.cc
src/crush/CrushTester.h
src/script/test_stretch_crush_collisions.sh [new file with mode: 0755]
src/tools/crushtool.cc