stringer.key("kfactor").value(getReplicationFactor());
stringer.key("sites_per_host").value(sitesPerHost);
stringer.key("partitions").array();
for (int part = 0; part < partitionCount; part++)
{
stringer.object();
stringer.key("partition_id").value(part);
// This two-line magic deterministically spreads the partition leaders
// evenly across the cluster at startup.
int index = part % (getReplicationFactor() + 1);
int master = partToHosts.get(part).get(index);