Selecting the replication mode