[Date Prev][Date Next] [Chronological] [Thread] [Top]

Replication mutli-master via DNS record ?



Hi all,

I have 3 masters and 3 slaves.
Two DNS records :
- Masters are recorded under master.toto.fr
- Slave are recorded under slave.toto.fr

Two type of replication :

a) Slave to master
Slaves replicate from one of 3 master with this configuration :

syncrepl rid=100
 provider=ldap://master.toto.fr/
 type=refreshAndPersist
 interval=00:00:30:00
[...]



b) Master to multi-master
Mirrormode is set to TRUE.
Can I use only one "syncrepl" with the DNS record ldap://master.toto.fr
Or should I set one "syncrepl" for each master ?

I mean , in my master1  conf file can I use this :

syncrepl rid=1
 provider=ldap://master.toto.fr/
 type=refreshAndPersist
 interval=00:00:30:00
[...]



or

syncrepl rid=12
 provider=ldap://IP_master2.toto.fr/
 type=refreshAndPersist
 interval=00:00:30:00
[...]
syncrepl rid=13
 provider=ldap://IP_master3.toto.fr/
 type=refreshAndPersist
 interval=00:00:30:00
[...]


Thanks guys.