configure replicaset