Bug #10429
closed/var/log/rudder/ldap/slapd.log is full of not indexed message
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
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.
Updated by François ARMAND over 7 years ago
- Related to Bug #7667: Disable ldap logging on non existing indexes added
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
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.
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.
Updated by Alexis Mousset over 7 years ago
- Status changed from New to In progress
- Assignee set to Alexis Mousset
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
Updated by Alexis Mousset over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|1494d40c3f1c7ef653935fb37821420b86ce5c42.
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.
- 4.1.0: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/