Hello,
I'm testing a configuration with several master und replicas at one machine (2.3.25), but when there seems to be no way to start a second slurpd ?
Any Ideas or should I take syncrepl for this purpose ?
Thanks in advance,
Sepp
I'd imagine two identical slurpd would make a race for the replog. Sounds too ugly to bother to contemplate. But if the "several" are truly separate, then I suppose you could use different ports, config files, and replog files for each instance, and keep them isolated.
slurpd is on its way out, of course. Upgrade to the latest (2.3.27), then try syncrepl. Actually, there's at least one syncrepl bug that will be fixed in 2.3.28 (modrdn/#4695), so patch and/or keep an eye out for the new release.
On Thu, 19 Oct 2006, Sepp wrote:
Hello,
I'm testing a configuration with several master und replicas at one machine (2.3.25), but when there seems to be no way to start a second slurpd ?
Any Ideas or should I take syncrepl for this purpose ?
Thanks in advance,
Sepp
Hello,
I'm testing a configuration with several master und replicas at one machine (2.3.25), but when there seems to be no way to start a second slurpd ?
You don't need a second slurpd, while you might want to use separate replogs for each database. Have a look at http://www.openldap.org/faq/data/cache/1171.html for details, known issues and suggested workarounds.
Any Ideas or should I take syncrepl for this purpose ?
You should anyway, since slurpd is approaching end of life, it's been essentially unsupported in 2.3, and won't be distributed any longer at some point.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------------ Office: +39.02.23998309 Mobile: +39.333.4963172 Email: pierangelo.masarati@sys-net.it ------------------------------------------
On 10/19/06, Pierangelo Masarati ando@sys-net.it wrote:
Hello,
I'm testing a configuration with several master und replicas at one machine (2.3.25), but when there seems to be no way to start a second slurpd ?
You don't need a second slurpd, while you might want to use separate replogs for each database. Have a look at http://www.openldap.org/faq/data/cache/1171.html for details, known issues and suggested workarounds.
Any Ideas or should I take syncrepl for this purpose ?
You should anyway, since slurpd is approaching end of life, it's been essentially unsupported in 2.3, and won't be distributed any longer at some point.
Despite all of this, here's how to do it:
In your different "database" definitions, simply use separate repolog files. Then start slurpds with -f slurpd.db1.conf -r replog.db1 -t /path/to/db1slurpdlogdir/. (the -r isn't needed if replog is defined in slurpd.conf)
So: in backend.conf: database bdb suffix foo etc etc include replication1.conf
database bdb suffix bar etc etc include replication2.conf
in replication.db1.conf: replogfile replog.db1 host stuff credentials etc
in slurpd.db1.conf: include replication1.conf (note: do not include your backends here, or you'll get slurpd replicating to all of the hosts mentioned)
------ NOTE: If you're not spliiting things up by database, then this won't work. (you probably don't gain anything -with- separate slurpd's anyway, but please do some testing and let us know)
_Matt
openldap-software@openldap.org