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

RE: Slurpd and cpu usage



Yep, my misunderstanding, thanks for the catch.  BTW, the -t option in the slurpd(8) man page says that the default dir is <OPENLDAP_DIR>/var/openldap-slurp rather than <OPENLDAP_DIR>/var/openldap-slurp/replica.  I still would have more than likely made this mistake due to my misunderstanding of the process but this statement in the manpage is slightly off.

Thanks!

Jamey



-----Original Message-----
From: Quanah Gibson-Mount [mailto:quanah@stanford.edu]
Sent: Sunday, August 15, 2004 10:51 PM
To: James Courtney
Cc: Openldap list
Subject: RE: Slurpd and cpu usage




--On Monday, August 16, 2004 1:11 AM -0400 James Courtney 
<Jcourtney@inphonic.com> wrote:

> Don't they share the file in a producer->consumer fashion with slapd
> writing and slurpd reading/truncating?  There's only one config option
> for this so I have to assume that there's only one file since they
> (slapd and slurpd) share that config file.  I'll try changing the
> location though and see what we get.

Kind of.

Slapd writes out the replication out put to the file/location specified by 
the "replog" command.

Slurpd reads that file and copies it to the directory specified by the "-t" 
option at startup, to a file named slurpd.replog, and then truncates the 
slapd replog file.

So if the "-t" option points to the same place as where you are writing the 
slapd replog file, or if your default for slurpd is the same place as where 
you are writing the slapd replog file, and you name the slapd replog file 
"slurpd.replog", you are going to get a collision that sounds exactly like 
what you are seeing.

--Quanah

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