Blame SOURCES/rsyslog-8.24.0-rhbz1459896-queues-defaults-doc.patch

af6c5a
From c8be9a713a57f07311560af50c24267b30bef21b Mon Sep 17 00:00:00 2001
af6c5a
From: Jiri Vymazal <jvymazal@redhat.com>
af6c5a
Date: Tue, 29 Aug 2017 16:32:15 +0200
af6c5a
Subject: [PATCH] fixed queue default values
af6c5a
af6c5a
---
af6c5a
 source/concepts/queues.rst                                       | 7 +++----
af6c5a
 source/configuration/global/index.rst                            | 6 +++---
af6c5a
 source/configuration/global/options/rsconf1_mainmsgqueuesize.rst | 2 +-
af6c5a
 source/rainerscript/queue_parameters.rst                         | 15 ++++++++++++---
af6c5a
 source/configuration/action/index.rst                            | 12 ++++++------
af6c5a
 5 files changed, 24 insertions(+), 16 deletions(-)
af6c5a
af6c5a
diff --git a/source/concepts/queues.rst b/source/concepts/queues.rst
af6c5a
index c71413c..9b41128 100644
af6c5a
--- a/source/concepts/queues.rst
af6c5a
+++ b/source/concepts/queues.rst
af6c5a
@@ -273,10 +273,9 @@ actually needed.
af6c5a
 The water marks can be set via the "*$<object>QueueHighWatermark*\ "
af6c5a
 and  "*$<object>QueueLowWatermark*\ " configuration file directives.
af6c5a
 Note that these are actual numbers, not percentages. Be sure they make
af6c5a
-sense (also in respect to "*$<object>QueueSize*\ "), as rsyslodg does
af6c5a
-currently not perform any checks on the numbers provided. It is easy to
af6c5a
-screw up the system here (yes, a feature enhancement request is filed
af6c5a
-;)).
af6c5a
+sense (also in respect to "*$<object>QueueSize*\ "). Rsyslodg does
af6c5a
+perform some checks on the numbers provided, and issues warning when
af6c5a
+numbers are "suspicious".
af6c5a
 
af6c5a
 Limiting the Queue Size
af6c5a
 -----------------------
af6c5a
diff --git a/source/configuration/global/index.rst b/source/configuration/global/index.rst
af6c5a
index 2738f21..a53ef23 100644
af6c5a
--- a/source/configuration/global/index.rst
af6c5a
+++ b/source/configuration/global/index.rst
af6c5a
@@ -137,13 +137,13 @@ To understand queue parameters, read
af6c5a
 -  **$MainMsgQueueDequeueSlowdown** <number> [number is timeout in
af6c5a
    *micro*\ seconds (1000000us is 1sec!), default 0 (no delay). Simple
af6c5a
    rate-limiting!]
af6c5a
--  **$MainMsgQueueDiscardMark** <number> [default 9750]
af6c5a
+-  **$MainMsgQueueDiscardMark** <number> [default 98000]
af6c5a
 -  **$MainMsgQueueDiscardSeverity** <severity> [either a textual or
af6c5a
    numerical severity! default 4 (warning)]
af6c5a
 -  **$MainMsgQueueFileName** <name>
af6c5a
--  **$MainMsgQueueHighWaterMark** <number> [default 8000]
af6c5a
+-  **$MainMsgQueueHighWaterMark** <number> [default 80000]
af6c5a
 -  **$MainMsgQueueImmediateShutdown** [on/**off**]
af6c5a
--  **$MainMsgQueueLowWaterMark** <number> [default 2000]
af6c5a
+-  **$MainMsgQueueLowWaterMark** <number> [default 20000]
af6c5a
 -  **$MainMsgQueueMaxFileSize** <size\_nbr>, default 1m
af6c5a
 -  **$MainMsgQueueTimeoutActionCompletion** <number> [number is timeout in
af6c5a
    ms (1000ms is 1sec!), default 1000, 0 means immediate!]
af6c5a
diff --git a/source/configuration/global/options/rsconf1_mainmsgqueuesize.rst b/source/configuration/global/options/rsconf1_mainmsgqueuesize.rst
af6c5a
index 050407c..3e902cf 100644
af6c5a
--- a/source/configuration/global/options/rsconf1_mainmsgqueuesize.rst
af6c5a
+++ b/source/configuration/global/options/rsconf1_mainmsgqueuesize.rst
af6c5a
@@ -3,7 +3,7 @@ $MainMsgQueueSize
af6c5a
 
af6c5a
 **Type:** global configuration directive
af6c5a
 
af6c5a
-**Default:** 10000
af6c5a
+**Default:** 100000
af6c5a
 
af6c5a
 **Description:**
af6c5a
 
af6c5a
diff --git a/source/rainerscript/queue_parameters.rst b/source/rainerscript/queue_parameters.rst
af6c5a
index 4453721..3f2b7a2 100644
af6c5a
--- a/source/rainerscript/queue_parameters.rst
af6c5a
+++ b/source/rainerscript/queue_parameters.rst
af6c5a
@@ -33,8 +33,14 @@ read the :doc:`queues <../concepts/queues>` documentation.
af6c5a
    For more information on the current status of this restriction see
af6c5a
    the `rsyslog FAQ: "lower bound for queue
af6c5a
    sizes" <http://www.rsyslog.com/lower-bound-for-queue-sizes/>`_.
af6c5a
+
af6c5a
+   The default depends on queue type and, if you need
af6c5a
+   a specific value, please specify it. Otherwise rsyslog selects what
af6c5a
+   it consideres appropriate. For example, ruleset queues have a default
af6c5a
+   size of 50000 and action queues which are configured to be non-direct
af6c5a
+   have a size of 1000.
af6c5a
 -  **queue.dequeuebatchsize** number
af6c5a
-   default 16
af6c5a
+   default 128
af6c5a
 -  **queue.maxdiskspace** number
af6c5a
    The maximum size that all queue files together will use on disk. Note
af6c5a
    that the actual size may be slightly larger than the configured max,
af6c5a
@@ -46,8 +47,9 @@ read the :doc:`queues <../concepts/queues>` documentation.
af6c5a
    processing, because disk queue mode is very considerably slower than
af6c5a
    in-memory queue mode. Going to disk should be reserved for cases
af6c5a
    where an output action destination is offline for some period.
af6c5a
+   default 90% of queue size
af6c5a
 -  **queue.lowwatermark** number
af6c5a
-   default 2000
af6c5a
+   default 70% of queue size
af6c5a
 -  **queue.fulldelaymark** number 
af6c5a
    Number of messages when the queue should block delayable messages. 
af6c5a
    Messages are NO LONGER PROCESSED until the queue has sufficient space 
af6c5a
@@ -59,9 +61,11 @@ read the :doc:`queues <../concepts/queues>` documentation.
af6c5a
    out of space. Please note that if you use a DA queue, setting the 
af6c5a
    fulldelaymark BELOW the highwatermark makes the queue never activate 
af6c5a
    disk mode for delayable inputs. So this is probably not what you want.
af6c5a
+   default 97% of queue size
af6c5a
 -  **queue.lightdelaymark** number
af6c5a
+   default 70% of queue size
af6c5a
 -  **queue.discardmark** number
af6c5a
-   default 9750
af6c5a
+   default 80% of queue size
af6c5a
 -  **queue.discardseverity** number
af6c5a
    \*numerical\* severity! default 8 (nothing discarded)
af6c5a
 -  **queue.checkpointinterval** number
af6c5a
diff --git a/source/configuration/action/index.rst b/source/configuration/action/index.rst
af6c5a
index 3e7cd24..9352866 100644
af6c5a
--- a/source/configuration/action/index.rst
af6c5a
+++ b/source/configuration/action/index.rst
af6c5a
@@ -163,18 +163,18 @@ following action, only. The next and all other actions will be
af6c5a
 in "direct" mode (no real queue) if not explicitely specified otherwise.
af6c5a
af6c5a
 -  **$ActionQueueCheckpointInterval** <number>
af6c5a
--  **$ActionQueueDequeueBatchSize** <number> [default 16]
af6c5a
+-  **$ActionQueueDequeueBatchSize** <number> [default 128]
af6c5a
 -  **$ActionQueueDequeueSlowdown** <number> [number is timeout in
af6c5a
    *micro*\ seconds (1000000us is 1sec!), default 0 (no delay). Simple
af6c5a
    rate-limiting!]
af6c5a
--  **$ActionQueueDiscardMark** <number> [default 9750]
af6c5a
--  **$ActionQueueDiscardSeverity** <number> [\*numerical\* severity! default
af6c5a
-   4 (warning)]
af6c5a
+-  **$ActionQueueDiscardMark** <number> [default 80% of queue size]
af6c5a
+-  **$ActionQueueDiscardSeverity** <number> [\*numerical\* severity! default
af6c5a
+   8 (nothing discarded)]
af6c5a
 -  **$ActionQueueFileName** <name>
af6c5a
--  **$ActionQueueHighWaterMark** <number> [default 8000]
af6c5a
+-  **$ActionQueueHighWaterMark** <number> [default 90% of queue size]
af6c5a
 -  **$ActionQueueImmediateShutdown** [on/**off**]
af6c5a
 -  **$ActionQueueSize** <number>
af6c5a
--  **$ActionQueueLowWaterMark** <number> [default 2000]
af6c5a
+-  **$ActionQueueLowWaterMark** <number> [default 70% of queue size]
af6c5a
 -  **$ActionQueueMaxFileSize** <size\_nbr>, default 1m
af6c5a
 -  **$ActionQueueTimeoutActionCompletion** <number> [number is timeout in ms
af6c5a
    (1000ms is 1sec!), default 1000, 0 means immediate!]