[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
mdb fragmentation
- To: openldap-technical@openldap.org
- Subject: mdb fragmentation
- From: Geert Hendrickx <geert@hendrickx.be>
- Date: Thu, 24 Aug 2017 13:53:32 +0200
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=hendrickx.be; s=geert; t=1503575613; bh=M2ybL1nEzRFokQ3Ceqor8a4giJghzeA/nC5dl07jJyw=; h=Date:From:To:Subject; b=tNQ6/Zo6M1Ov+Byb1jtsK2tHg7dujSXIkzC4wHLzsAwDKiKZk4BvB6GO++Zsp3qHX Vee5tqQ1CJe1V0byuoImVCX5pXXTOuIa3e714SZ8k95GcOqm/p94s3/ik39ZbQ9JrM CoCi7qBbLHPN2uOFwS2QhQfWnu9SmIaHBedzi7wEq+dWCYPB8M643mp/xGf7B9DzXL phQ1IFkJNGmvc/8xw1F7FeJoeFrLWAdxdTDhUaGjWh8pSqm2/u1IohlFIscE7lT3A1 XvLf22RvtBfxjyPNPJ4tbtK5x/hMljqG9P8IhC9r685pNVdqf1G2EoiTR+tn/P67Qi 3ngLAHHXSKyzw==
- User-agent: Mutt/1.8.3 (2017-05-23)
Hi
We have an OpenLDAP 2.4.44 based, 4-way MMR setup with 4 M entries,
which is fairly write intensive (Zimbra).
Lately we've seen very frequent lockups of the master that receives
the updates (only 1 out of 4), whereas the replicas stay responsive.
According to -d stats logs, all threads suddenly take a long time to
answer any queries, and slapd can no longer accept new connections.
The issue always disappears again without intervention, but usually
hits a number of times in a row, on an almost daily basis.
We tested a lot of things, but eventually "solved" the issue with a
slapcat and slapadd of the database - the master server has been
completely stable again since. The mdb was also reduced 50% in size.
Looking at the old mdb (prior to the dump), mdb_stat -f shows it had
over 3.7 M free pages. Could it be an issue of database fragmentation
similar to ITS#8664?
Is it natural that the freelist (and thus the mdb) gets this big over
time, I would expect those free pages to get reused constantly?
And in that case would it make sense to monitor the number of free
pages? Is there a threshold to look for, before things get problematic
again? (ITS#7770 would come handy here, as we already monitor/graph
various metrics from the monitor backend)
Geert
--
geert.hendrickx.be :: geert@hendrickx.be :: PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!