Blame SOURCES/rsyslog-8.24.0-rhbz1401870-watermark.patch

a856a8
From f1cff52cc3bca3ed050f5e8e2c25698bebcf3258 Mon Sep 17 00:00:00 2001
a856a8
From: Tomas Sykora <tosykora@redhat.com>
a856a8
Date: Fri, 23 Dec 2016 06:56:41 -0500
a856a8
Subject: [PATCH 3/3] When highwatermark is reached, messages should be
a856a8
 imediately written to a queue file. Instead of that, messages weren't written
a856a8
 until rsyslog was stopped. This was caused by overwritting watermark values
a856a8
 by -1.
a856a8
a856a8
Resolves: RHBZ#1401870
a856a8
---
a856a8
 action.c | 4 ++--
a856a8
 1 file changed, 2 insertions(+), 2 deletions(-)
a856a8
a856a8
diff --git a/action.c b/action.c
a856a8
index 45828cc..3f8c82c 100644
a856a8
--- a/action.c
a856a8
+++ b/action.c
a856a8
@@ -276,8 +276,8 @@ actionResetQueueParams(void)
a856a8
 	cs.ActionQueType = QUEUETYPE_DIRECT;		/* type of the main message queue above */
a856a8
 	cs.iActionQueueSize = 1000;			/* size of the main message queue above */
a856a8
 	cs.iActionQueueDeqBatchSize = 16;		/* default batch size */
a856a8
-	cs.iActionQHighWtrMark = -1;			/* high water mark for disk-assisted queues */
a856a8
-	cs.iActionQLowWtrMark = -1;			/* low water mark for disk-assisted queues */
a856a8
+	cs.iActionQHighWtrMark = 800;			/* high water mark for disk-assisted queues */
a856a8
+	cs.iActionQLowWtrMark = 200;			/* low water mark for disk-assisted queues */
a856a8
 	cs.iActionQDiscardMark = 980;			/* begin to discard messages */
a856a8
 	cs.iActionQDiscardSeverity = 8;			/* discard warning and above */
a856a8
 	cs.iActionQueueNumWorkers = 1;			/* number of worker threads for the mm queue above */
a856a8
-- 
a856a8
2.9.3
a856a8