zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

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

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