Homogeneous distribution of primary shards