andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 4 months ago
Clone

Blame SOURCES/0056-Ticket-49313-Change-the-retrochangelog-default-cache.patch

61f723
From 0fc3c803c34311eb05c5c7a7e710c8591b592649 Mon Sep 17 00:00:00 2001
61f723
From: Thierry Bordaz <tbordaz@redhat.com>
61f723
Date: Thu, 27 Jul 2017 18:10:05 +0200
61f723
Subject: [PATCH] Ticket 49313 - Change the retrochangelog default cache size
61f723
61f723
Bug Description:
61f723
    Default retroCL backend entry cache size is 2Mb.
61f723
    It has been reported in many deployments that DB corruption could
61f723
    be prevented by increasing entry cache to 200Mb.
61f723
    There is no identified reproducible steps to debug this DB corruption.
61f723
    So to prevent this problem we are increasing the entry cache
61f723
61f723
Fix Description:
61f723
    Set default cn=changelog cache to 200Mb (based on production cases)
61f723
    An other option would be to set a maximum number of entries but
61f723
    as we do not know if it works to prevent DB corruption, let's prefere
61f723
    entry cache size
61f723
61f723
https://pagure.io/389-ds-base/issue/49313
61f723
61f723
Reviewed by: William Brown
61f723
61f723
Platforms tested: F23
61f723
61f723
Flag Day: no
61f723
61f723
Doc impact: no
61f723
---
61f723
 ldap/servers/plugins/retrocl/retrocl.h | 2 +-
61f723
 1 file changed, 1 insertion(+), 1 deletion(-)
61f723
61f723
diff --git a/ldap/servers/plugins/retrocl/retrocl.h b/ldap/servers/plugins/retrocl/retrocl.h
61f723
index 6963d4b..eef1a17 100644
61f723
--- a/ldap/servers/plugins/retrocl/retrocl.h
61f723
+++ b/ldap/servers/plugins/retrocl/retrocl.h
61f723
@@ -58,7 +58,7 @@ typedef struct _cnumRet {
61f723
 #else
61f723
 #define RETROCL_DLL_DEFAULT_THREAD_STACKSIZE 131072L
61f723
 #endif
61f723
-#define RETROCL_BE_CACHEMEMSIZE  "2097152"
61f723
+#define RETROCL_BE_CACHEMEMSIZE  "209715200"
61f723
 #define RETROCL_BE_CACHESIZE "-1"
61f723
 #define RETROCL_PLUGIN_NAME "DSRetroclPlugin"
61f723
 
61f723
-- 
61f723
2.9.4
61f723