Bug 1476162

Summary: Change the retrochangelog default cache size. And also if possible, the default caches. [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: urgent    
Version: 7.4CC: gparente, msauton, nkinder, rmeggins, tbordaz, tmihinto, toneata, wibrown
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.6.1-17.el7 Doc Type: Bug Fix
Doc Text:
Due to a low default entry cache size value, the Directory Server database had to resolve many deadlocks during resource-intensive tasks. In certain situations, this could result in a "DB PANIC" error and the server no longer responded to requests. After the server was restarted, Directory Server started with a delay to recover the database. However, this recovery could fail, and the database could corrupt. This patch increases the default entry cache size in the nsslapd-cachememsize parameter to 200 MB. As a result, out-of-lock situations or "DB PANIC" errors no longer occur in the mentioned scenario.
Story Points: ---
Clone Of: 1466191 Environment:
Last Closed: 2017-09-05 11:23:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1466191    
Bug Blocks:    

Description Oneata Mircea Teodor 2017-07-28 07:45:11 UTC
This bug has been copied from bug #1466191 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 4 Viktor Ashirov 2017-08-14 12:07:15 UTC
Build tested:
389-ds-base-1.3.6.1-18.el7_4.x86_64

# ldapmodify -D cn=Directory\ Manager -w Secret123 
dn: cn=Retro Changelog Plugin,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on

modifying entry "cn=Retro Changelog Plugin,cn=plugins,cn=config"

# restart-dirsrv 
Restarting instance "standalone"

# ldapsearch -LLLx -D cn=Directory\ Manager -w Secret123 -s base -b 'cn=changelog,cn=ldbm database,cn=plugins,cn=config' nsslapd-cachememsize
dn: cn=changelog,cn=ldbm database,cn=plugins,cn=config
nsslapd-cachememsize: 209715200

Previously the default value of nsslapd-cachememsize was 2097152, now it's 100x times bigger. Marking as VERIFIED.

Comment 6 errata-xmlrpc 2017-09-05 11:23:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2569