[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Ldap not reachable/tuning
- To: openldap-technical@openldap.org
- Subject: Ldap not reachable/tuning
- From: Thomas Hummel <thomas.hummel@pasteur.fr>
- Date: Fri, 25 Nov 2016 19:05:45 +0100
- Ironport-phdr: 9a23:b2lqGBf/w+F+rrwMaZW5OEgZlGMj4u6mDksu8pMizoh2WeGdxcS4YR7h7PlgxGXEQZ/co6odzbGH6Oa7AydRsN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Ihi6twvcutcZjYZmLqs61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9ZwgbpFrhyhuhJxwIDab4+aO/Vica3QZs8aSGhbU8pNSyBMDIGxYo0SBOQBJ+ZYqIz9qkMQoxu+AgmsAfngyiRVjXH0wK061uEhHh/C3Ac9GN8OrHTUrNLwNKgISuC51qnIzSjGb/NTxzj97JPFcgg7rvGXQbJ/b9fRyVM1GwPLlFWdsIroNC6W2OQVq2WX8uptWOC1h2Mjrwx9uCWjytsxhoXTm44Z11LJ+CNky4gvP9K4UlR0Ydu8HZtVsCGVKpV5T9s5Q2FtpCY60roGuYOnfCQSyJQo2Rrfa/uffoeM/x7uVOScLS18iX9hYr6yhhm//VKvx+HiUMa4yFdKrixbndnQrn0Byhze58qdRvZ5+kqtwyuD2xzO5u1ePEw4iKjWJ4YkwrEql5oTtUrDHjXxmEXzlKKWakUk+u+t6+v9ebXqvJ+cN5JxigH7LKsunteyAfwiPQgVQ2iU5/m81Kf58U33WrVGluc2nbXBsJDGOcQboba0DQxP3Io66hi/FS+m3M0Xk3YIMlxIYwqHgJLyO1HSPv/4EO2/j06ikDdx3/rGJKHuAo3RLnjfl7fsZbF961ZCxwo1ydBQ+ohbCqkYLPLvRED+qNzYDhk4MwOo2ennDM5w1oQGWW2RBK+ZNL7dvkWQ5u41JOmMfoAV637BLK0i//PoiXMwgRoBcKKp25ocYXSQGexrJUGVaGKqhc0OQkkQuQ9rcOztjVSZGR5OYnO/W+po+jE8DYu9S4feQ4WghJSZ1TynE4BMIG5cXAPfWUz0fpmJDq9fIBmZJdVsx2QJ
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0
Hello,
I'm using a simple setup on CentOS Linux release 7.2.1511
(Core)/openldap-servers-2.4.40-9 /cn=config/mdb : one provider with the
syncprov overlay and 2 syncrepl consumers. The DIT itself is about 10000
dn in size (about 3000 active users).
Everything works fine except that sometimes, some clients report
(temporary) failure to reach the consumers (NAS servers for instance).
All I see in the logs is that when this happens, the time windows
loosely match a moment where log rate limiting is dropping messages (for
debugging purpose, I disabled journald ratelimiting and doubled default
rsyslog one - still some drops occur on a regular basis).
So I assume it happens when slapd is kind of busy...
Here are some question about that :
- First tuning attempt :
-------------------------
I noticed that olcDbMaxReaders value was set to 0 (not by me!)
I changed it to olcDbMaxReaders: 512
I thought the problem didn't occur anymore but I was wrong.
-> Is there any guideline about how to setup MaxReaders ?
- Second tuning attempt :
-------------------------
I thought maybe replication was responsible (I'm using refreshAndPersist
mode) so I raised the size of the sessionLog (from 100 to 800).
I read the doc again and I'd like to know if the following understanding
is correct :
- thanks to contextCSN and the sync cookies, replication CAN be stateless
- if we want it stateless, syncprov HAS TO use the present phase, which
basically is like sending the whole DIT except that for unchanged
entries, only names are sent
- if and ONLY IF a state is used (in the form of a sessionLog), then
delete phase can be used (and if the sessionLog can hold enough since
the last sync)
As a matter of fact, at the opposite of the present phase, in the delete
phase, syncprov has to 'remember' (i.e store in a sessionLog) which
entries has been deleted.
-> this assumes that delete phase is more efficient than the present
phase, right ?
-> if for some reason (for instance sessionLog being too small, delete
phase can not be used) syncprov HAS TO fall back to present phase, correct ?
-> does using the sessionLog MAKE SENSE AT ALL when using
refreshAndPersist mode ?
-> is there any guideline to choose the right size for the sessionLog ?
- Third tuning attempt
-------------------------
I also raised the checkpoint values.
-> Is there any guideline here as well ?
Thanks.
--
Thomas HUMMEL