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

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