Bug 50456 - Wrong ucr variable mentioned in group cache chapter
Wrong ucr variable mentioned in group cache chapter
Status: CLOSED MOVED
Product: UCS extended documentation
Classification: Unclassified
Component: Performance guide
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Sönke Schwardt-Krummrich
Philipp Hahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-11-06 13:29 CET by Christina Scheinig
Modified: 2021-11-30 13:09 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.051
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2019-11-06 13:29:19 CET
http://docs.software-univention.de/performance-guide-4.4.html#group:cache

"In the default setting, the group cache is regenerated every time changes are made to a group. This avoids cache effects whereby group memberships only become visible for a service after the next scheduled group cache rewrite (in the default setting after 15 minutes and after 15 seconds of inactivity in the Univention Directory Listener. In larger environments with a lot of group changes, this function should be deactivated by setting the Univention Configuration Registry variable nss/group/invalidate_cache_on_changes to false. This setting takes effect immediately and does not require a restart of the Univention Directory Listener."

The ucr Variable mentioned here is
ucr info nss/group/invalidate_cache_on_changes

but on my system it seems to be this:
ucr info nss/group/cachefile/invalidate_on_changes
nss/group/cachefile/invalidate_on_changes: yes
 If this variable is activated and the group cache file has been enabled (variable: nss/group/cachefile), the cache file is automatically regenerated whenever a group is edited in the UCS management system. If this variable isn't set, the option is enabled.
 Categories: system-base

Not a big deal, but causes trouble with a customer
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2021-11-29 22:07:01 CET
---[univention-pam.univention-config-registry-variables]---
[nscd/group/invalidate_cache_on_changes]
Description[de]=Ist diese Option aktiviert, wird bei jeder Änderung an einer Gruppe im UCS-Managementsystem durch ein Univention Directory Listener-Modul der NSCD-Gruppencache invalidiert.
Description[en]=If this option is enabled, the NSCD group cache is invalidated through a Univention Directory Listener module every time a group is modified in the UCS management system.

[nss/group/cachefile/invalidate_on_changes]
Description[de]=Wenn diese Variable aktiviert ist und die Gruppen-Cachedatei (Variable: nss/group/cachefile) verwendet wird, wird bei jeder Gruppenänderung im UCS-Managementsystem die Cachedatei automatisch neu geschrieben. Ist die Variable nicht gesetzt, ist die Option aktiviert.
Description[en]=If this variable is activated and the group cache file has been enabled (variable: nss/group/cachefile), the cache file is automatically regenerated whenever a group is edited in the UCS management system. If this variable isn't set, the option is enabled.
---


Christina is right. The performance guide mentions the wrong variable.
And the code confirms this as well.
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-11-29 22:11:20 CET
JFYI: The Performance Guide of UCS 5 is already fixed.

UCS 4 MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/193
Comment 3 Philipp Hahn univentionstaff 2021-11-30 13:09:31 CET
(In reply to Sönke Schwardt-Krummrich from comment #2)
> JFYI: The Performance Guide of UCS 5 is already fixed.

4703ce9ae14

> UCS 4 MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/193

OK