Project

General

Profile

Bug #10429

/var/log/rudder/ldap/slapd.log is full of not indexed message

Added by Nicolas CHARLES 6 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
0

Description

There are gazillions lines of

Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (isDynamic) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (nodeGroupId) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (directiveId) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (cn) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (nodeHostname) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (osName) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (software) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_inequality_candidates: (modifyTimestamp) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (container) not indexed
Mar 15 22:28:42 edited rudder-slapd[2245]: <= mdb_equality_candidates: (container) not indexed

messages in /var/log/rudder/ldap/slapd.log
don't know if they are relevant, but there is something weird there


Related issues

Related to Rudder - Bug #7667: Disable ldap logging on non existing indexes Released 2015-12-21

Associated revisions

Revision 1494d40c
Added by Alexis MOUSSET 6 months ago

Fixes #10429: /var/log/rudder/ldap/slapd.log is full of not indexed message

History

#1 Updated by François ARMAND 6 months ago

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.

#2 Updated by François ARMAND 6 months ago

  • Related to Bug #7667: Disable ldap logging on non existing indexes added

#3 Updated by François ARMAND 6 months ago

It would make sense to try to index them again by adding in slapd.conf, for database mdb, starting with the following indexes:

# 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

#4 Updated by François ARMAND 6 months ago

And if it still not make sense to use indexes, we will need to make the same patch on mdb (in #7667) than we did on bdb.

#5 Updated by François ARMAND 6 months ago

After some tests, it seems that indexes don't bring any gain:

Cycling between several request some hundreds times gave:

Without index:

real    2m39.565s
user    0m22.688s
sys    0m16.208s

With indexes:

real 2m0.766s
user 0m22.554s
sys 0m16.454s

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).

So, we have to patch mdb like we did bdb.

#6 Updated by Alexis MOUSSET 6 months ago

  • Status changed from New to In progress
  • Assignee set to Alexis MOUSSET

#7 Updated by Alexis MOUSSET 6 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1295

#8 Updated by Alexis MOUSSET 6 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Benoît PECCATTE 6 months ago

  • Status changed from Pending release to Released
  • Priority set to 0

This bug has been fixed in Rudder 4.1.0 which was released today.

Also available in: Atom PDF