Support of flag "autoAddReplicas" in collection api