Skip to content

Instantly share code, notes, and snippets.

@cernceph
cernceph / mpa.py
Last active February 7, 2017 09:12 — forked from anonymous/mpa.py
Simulation of the CRUSH Multi Pick Anomaly
#!/usr/bin/env python
import random
from math import sqrt, log, pow
DEBUG = True
NPGS = 100000 # num PGs
R = 3 # num replicas
if NPGS > 3: