https://issues.rudder.io/https://issues.rudder.io/themes/rudder7/favicon/favicon.ico?17096450182017-03-16T08:46:20ZIssue TrackerRudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=732622017-03-16T08:46:20ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>Ah, we used to not indexes them because of the cache strategy used before we switched to mdb. It mostly does not make sense anymore, quite the opposite.</p> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=732632017-03-16T08:47:07ZFrançois ARMANDfrancois.armand@rudder.io
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-16 priority-default closed" href="/issues/7667">Bug #7667</a>: Disable ldap logging on non existing indexes</i> added</li></ul> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=732742017-03-16T10:43:56ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>It would make sense to try to index them again by adding in slapd.conf, for database mdb, starting with the following indexes:</p>
<pre>
# Indices to maintain
index objectClass eq
index isEnabled,isDynamic,isModified,isSystem eq
index uuid eq
index container,software eq
# Software search
index cn,softwareVersion eq
</pre> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=732952017-03-16T12:05:48ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>And if it still not make sense to use indexes, we will need to make the same patch on mdb (in <a class="issue tracker-1 status-5 priority-16 priority-default closed" title="Bug: Disable ldap logging on non existing indexes (Released)" href="https://issues.rudder.io/issues/7667">#7667</a>) than we did on bdb.</p> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=733032017-03-16T13:21:00ZFrançois ARMANDfrancois.armand@rudder.io
<ul></ul><p>After some tests, it seems that indexes don't bring any gain:</p>
<p>Cycling between several request some hundreds times gave:</p>
<p>Without index:<br /><pre>
real 2m39.565s
user 0m22.688s
sys 0m16.208s
</pre></p>
<p>With indexes:<br /><pre>
real 2m0.766s
user 0m22.554s
sys 0m16.454s
</pre></p>
<p>So that's saying that OpenLDAP cache is working ok, and that we still don't really need indexes given our usage. (the real diff is certainly due to the logs not written in the log file).</p>
<p>So, we have to patch mdb like we did bdb.</p> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=733042017-03-16T13:24:03ZAlexis Moussetalexis.mousset@rudder.io
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In progress</i></li><li><strong>Assignee</strong> set to <i>Alexis Mousset</i></li></ul> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=733072017-03-16T13:30:45ZAlexis Moussetalexis.mousset@rudder.io
<ul><li><strong>Status</strong> changed from <i>In progress</i> to <i>Pending technical review</i></li><li><strong>Assignee</strong> changed from <i>Alexis Mousset</i> to <i>Benoît PECCATTE</i></li><li><strong>Pull Request</strong> set to <i>https://github.com/Normation/rudder-packages/pull/1295</i></li></ul><p>PR <a class="external" href="https://github.com/Normation/rudder-packages/pull/1295">https://github.com/Normation/rudder-packages/pull/1295</a></p> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=733412017-03-16T16:45:38ZAlexis Moussetalexis.mousset@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending technical review</i> to <i>Pending release</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixes #10429: /var/log/rudder/ldap/slapd.log is full of not indexed message" href="https://issues.rudder.io/projects/rudder/repository/rudder-packages/revisions/1494d40c3f1c7ef653935fb37821420b86ce5c42">rudder-packages|1494d40c3f1c7ef653935fb37821420b86ce5c42</a>.</p> Rudder - Bug #10429: /var/log/rudder/ldap/slapd.log is full of not indexed messagehttps://issues.rudder.io/issues/10429?journal_id=742712017-03-30T09:47:19ZBenoît PECCATTEbenoit.peccatte@rudder.io
<ul><li><strong>Status</strong> changed from <i>Pending release</i> to <i>Released</i></li><li><strong>Priority</strong> set to <i>0</i></li></ul><p>This bug has been fixed in Rudder 4.1.0 which was released today.</p>
<ul>
<li>4.1.0: <a href="http://www.rudder-project.org/pipermail/rudder-announce/2017-March/thread.html000225.html" class="external">Announce</a> <a href="http://www.rudder-project.org/changelog-4.1" class="external">Changelog</a></li>
<li>Download: <a class="external" href="https://www.rudder-project.org/site/get-rudder/downloads/">https://www.rudder-project.org/site/get-rudder/downloads/</a></li>
</ul>