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

Re: refreshAndPersist speed





--On Thursday, December 01, 2005 11:29 AM +0000 Leigh Porter <leighldap@leighporter.org> wrote:

Hiya,

I would like to use refreshAndPersist between a master and slave but my
application uses
a load balancer that round-robins ldap requests between a master and
slave server. I need to
write to LDAP on the master but the read could be from any server.

The time between a write and read could be sub second so I need the
master and slave to be in
sync in a similar timeframe.

Will syncrepl refreshAndPersist achieve this kind of instantanious update
of the slaves?

Aside from Howard's answer, I personally suggest running a pool of slaves that are completely separate from the master. For example, my replicas have 90 indices, while my master has about 10, the minimum necessary for it to function for its purpose (accepting writes from clients). This keeps the master from having to do double-duty, and makes loading the master a much simpler task than the replicas. Just food for thought. ;)


--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html