diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 18:13:02 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 18:13:02 +0100 |
commit | a056dad8b359ebab1c34c94b763b5519b066cb76 (patch) | |
tree | e9967ee74f4c30ed28fb86c00325a42e8ec85921 /runtime/queue.c | |
parent | a57c8cea990afc9f36839408eea6bea8ddf8a4fe (diff) | |
download | rsyslog-a056dad8b359ebab1c34c94b763b5519b066cb76.tar.gz rsyslog-a056dad8b359ebab1c34c94b763b5519b066cb76.tar.bz2 rsyslog-a056dad8b359ebab1c34c94b763b5519b066cb76.zip |
emit warning message if queue.size is set dangerously low
Diffstat (limited to 'runtime/queue.c')
-rw-r--r-- | runtime/queue.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 935a8106..3834343c 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -2084,6 +2084,13 @@ qqueueStart(qqueue_t *pThis) /* this is the ConstructionFinalizer */ break; } + if(pThis->iMaxQueueSize < 100) { + errmsg.LogError(0, RS_RET_OK_WARN, "Note: queue.size=\"%d\" is very " + "low and can lead to unpredictable results. See also " + "http://www.rsyslog.com/lower-bound-for-queue-sizes/", + pThis->iMaxQueueSize); + } + if(pThis->iFullDlyMrk == -1) pThis->iFullDlyMrk = pThis->iMaxQueueSize - (pThis->iMaxQueueSize / 100) * 3; /* default 97% */ |