Skip to content

Instantly share code, notes, and snippets.

@cernceph
Created February 9, 2017 17:14
Show Gist options
  • Save cernceph/8bd9d42e796c4c74a3e51fc6bed113c1 to your computer and use it in GitHub Desktop.
Save cernceph/8bd9d42e796c4c74a3e51fc6bed113c1 to your computer and use it in GitHub Desktop.
Num PGs: 100000
Num Replicas: 3
OSDs (id: weight): {0: 3.0, 1: 3.0, 2: 3.0, 3: 1.0}
Expected: {0: 90000.0, 1: 90000.0, 2: 90000.0, 3: 30000.0}
Replica 0: [30000.0, 30000.0, 30000.0, 10000.0]
Replica 1: [30000.0, 30000.0, 30000.0, 10000.0]
Replica 2: [30000.0, 30000.0, 30000.0, 10000.0]
Simulating with existing CRUSH
Observed: {0: 85613, 1: 86041, 2: 85895, 3: 42451}
Replica 0: {0: 30038, 1: 30146, 2: 29743, 3: 10073}
Replica 1: {0: 28770, 1: 29036, 2: 29203, 3: 12991}
Replica 2: {0: 26805, 1: 26859, 2: 26949, 3: 19387}
Now trying your new algorithm
Observed: {0: 83255, 1: 83471, 2: 83387, 3: 49887}
Replica 0: {0: 27797, 1: 27719, 2: 27973, 3: 16511}
Replica 1: {0: 27899, 1: 27792, 2: 27630, 3: 16679}
Replica 2: {0: 27559, 1: 27960, 2: 27784, 3: 16697}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment