summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-19 18:30:51 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-19 18:30:51 +0100
commit1a16c3eb737e5a3fc07ba9f9e3ec5e670f30b842 (patch)
tree091b84f05c30e478d15188f1c1bd041987a6feec /action.c
parent1152e2a0ff2347766db6c4176d774cb268f5c4b9 (diff)
parent115610df12fba6e3372e539656e4394e800936ea (diff)
downloadrsyslog-1a16c3eb737e5a3fc07ba9f9e3ec5e670f30b842.tar.gz
rsyslog-1a16c3eb737e5a3fc07ba9f9e3ec5e670f30b842.tar.bz2
rsyslog-1a16c3eb737e5a3fc07ba9f9e3ec5e670f30b842.zip
Merge branch 'v7-devel'
Diffstat (limited to 'action.c')
-rw-r--r--action.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/action.c b/action.c
index 211af544..fde3bcfe 100644
--- a/action.c
+++ b/action.c
@@ -246,8 +246,8 @@ actionResetQueueParams(void)
cs.ActionQueType = QUEUETYPE_DIRECT; /* type of the main message queue above */
cs.iActionQueueSize = 1000; /* size of the main message queue above */
cs.iActionQueueDeqBatchSize = 16; /* default batch size */
- cs.iActionQHighWtrMark = 800; /* high water mark for disk-assisted queues */
- cs.iActionQLowWtrMark = 200; /* low water mark for disk-assisted queues */
+ cs.iActionQHighWtrMark = -1; /* high water mark for disk-assisted queues */
+ cs.iActionQLowWtrMark = -1; /* low water mark for disk-assisted queues */
cs.iActionQDiscardMark = 980; /* begin to discard messages */
cs.iActionQDiscardSeverity = 8; /* discard warning and above */
cs.iActionQueueNumWorkers = 1; /* number of worker threads for the mm queue above */
@@ -258,7 +258,7 @@ actionResetQueueParams(void)
cs.iActionQtoActShutdown = 1000; /* action shutdown (in phase 2) */
cs.iActionQtoEnq = 50; /* timeout for queue enque */
cs.iActionQtoWrkShutdown = 60000; /* timeout for worker thread shutdown */
- cs.iActionQWrkMinMsgs = 100; /* minimum messages per worker needed to start a new one */
+ cs.iActionQWrkMinMsgs = -1; /* minimum messages per worker needed to start a new one */
cs.bActionQSaveOnShutdown = 1; /* save queue on shutdown (when DA enabled)? */
cs.iActionQueMaxDiskSpace = 0;
cs.iActionQueueDeqSlowdown = 0;
@@ -452,6 +452,7 @@ actionConstructFinalize(action_t *pThis, struct nvlst *lst)
setQPROP(qqueueSetiDiscardMrk, "$ActionQueueDiscardMark", cs.iActionQDiscardMark);
setQPROP(qqueueSetiDiscardSeverity, "$ActionQueueDiscardSeverity", cs.iActionQDiscardSeverity);
setQPROP(qqueueSetiMinMsgsPerWrkr, "$ActionQueueWorkerThreadMinimumMessages", cs.iActionQWrkMinMsgs);
+ setQPROP(qqueueSetiNumWorkerThreads, "$ActionQueueWorkerThreads", cs.iActionQueueNumWorkers);
setQPROP(qqueueSetbSaveOnShutdown, "$ActionQueueSaveOnShutdown", cs.bActionQSaveOnShutdown);
setQPROP(qqueueSetiDeqSlowdown, "$ActionQueueDequeueSlowdown", cs.iActionQueueDeqSlowdown);
setQPROP(qqueueSetiDeqtWinFromHr, "$ActionQueueDequeueTimeBegin", cs.iActionQueueDeqtWinFromHr);