Actually handle number of shards / replicas