Skip to content

Instantly share code, notes, and snippets.

@clayg
Last active November 10, 2015 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/d9d908c1aaa37ac66321 to your computer and use it in GitHub Desktop.
Save clayg/d9d908c1aaa37ac66321 to your computer and use it in GitHub Desktop.
(Pdb) tier2children[tier]
[(2, 1), (2, 2)]
(Pdb) replica_plan[tier]
{'max': 3.0, 'target': 2.000000000000004, 'min': 2.0}
(Pdb) replica_plan[(1,)]
{'max': 3.0, 'target': 2.000000000000004, 'min': 2.0}
(Pdb) replicas_at_tier[(1,)]
1
(Pdb) replicas_at_tier[(2,)]
2
(Pdb) replica_plan[(2,1)]
{'max': 1.0, 'target': 0.9999999999999997, 'min': 0.0}
(Pdb) replica_plan[(2,2)]
{'max': 1.0, 'target': 0.9999999999999997, 'min': 0.0}
(Pdb) replicas_at_tier[(2,1)]
1
(Pdb) replicas_at_tier[(2,2)]
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment