Project

General

Profile

Actions

Bug #10429

closed

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

Added by Nicolas CHARLES over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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 1 (0 open1 closed)

Related to Rudder - Bug #7667: Disable ldap logging on non existing indexesReleasedJonathan CLARKE2015-12-21Actions
Actions #1

Updated by François ARMAND over 7 years 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.

Actions #2

Updated by François ARMAND over 7 years ago

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

Updated by François ARMAND over 7 years 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
Actions #4

Updated by François ARMAND over 7 years 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.

Actions #5

Updated by François ARMAND over 7 years 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.

Actions #6

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #7

Updated by Alexis Mousset over 7 years 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
Actions #8

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Benoît PECCATTE over 7 years 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.

Actions

Also available in: Atom PDF