Skip to content

Instantly share code, notes, and snippets.

@cernceph
Created February 9, 2017 16:51
Show Gist options
  • Save cernceph/70dd99f7de81ab26e7b608cf24701026 to your computer and use it in GitHub Desktop.
Save cernceph/70dd99f7de81ab26e7b608cf24701026 to your computer and use it in GitHub Desktop.
Num PGs: 100000
Num Replicas: 3
OSDs (id: weight): {0: 2.0, 1: 3.0, 2: 4.0, 3: 1.0}
Expected: {0: 60000.0, 1: 90000.0, 2: 120000.0, 3: 30000.0}
Replica 0: [20000.0, 30000.0, 40000.0, 10000.0]
Replica 1: [20000.0, 30000.0, 40000.0, 10000.0]
Replica 2: [20000.0, 30000.0, 40000.0, 10000.0]
Simulating with existing CRUSH
Observed: {0: 75799, 1: 86944, 2: 92335, 3: 44922}
Replica 0: {0: 19939, 1: 29987, 2: 40124, 3: 9950}
Replica 1: {0: 23916, 1: 31015, 2: 31644, 3: 13425}
Replica 2: {0: 31944, 1: 25942, 2: 20567, 3: 21547}
Now trying your new algorithm
Observed: {0: 60087, 1: 90141, 2: 119533, 3: 30239}
Replica 0: {0: 19992, 1: 30122, 2: 39825, 3: 10061}
Replica 1: {0: 20074, 1: 29931, 2: 39831, 3: 10164}
Replica 2: {0: 20021, 1: 30088, 2: 39877, 3: 10014}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment