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