replicaset recipe