Configure master and slave replication