summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/da-mainmsg-q.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-22 18:37:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-22 18:37:56 +0200
commit50174408b02cd0e5553c5e92a73cc43fb1364db9 (patch)
tree95778349232645901107fef5fc8825aa6e1fa21a /tests/testsuites/da-mainmsg-q.conf
parente4b3f6d287d74b34d27b4e296c33cb3f1294a58c (diff)
downloadrsyslog-50174408b02cd0e5553c5e92a73cc43fb1364db9.tar.gz
rsyslog-50174408b02cd0e5553c5e92a73cc43fb1364db9.tar.xz
rsyslog-50174408b02cd0e5553c5e92a73cc43fb1364db9.zip
added test for DA queue mode (in main msg queue) - needs more work
The problem is that the rsyslog engine writes messages too quickly, so that the queue never enters DA mode. We still have some look contemption. One possible solution (hopefully) is to finally move the parser code out of imtcp and onto the next thread. Need to address these issues first, then come back to the test case.
Diffstat (limited to 'tests/testsuites/da-mainmsg-q.conf')
-rw-r--r--tests/testsuites/da-mainmsg-q.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/testsuites/da-mainmsg-q.conf b/tests/testsuites/da-mainmsg-q.conf
new file mode 100644
index 00000000..2d0e5b92
--- /dev/null
+++ b/tests/testsuites/da-mainmsg-q.conf
@@ -0,0 +1,20 @@
+# Test for DA mode in main message queue (see .sh file for details)
+# rgerhards, 2009-04-22
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$ErrorMessagesToStderr off
+
+# set spool locations and switch queue to disk assisted mode
+$WorkDirectory test-spool
+$MainMsgQueueSize 100 # this *should* trigger moving on to DA mode...
+$MainMsgQueueHighWatermark 80
+$MainMsgQueueLowWatermark 40
+$MainMsgQueueFilename mainq
+$MainMsgQueueType linkedlist
+$MainMsgQueueDeqzezeSlowdown 1000
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+:msg, contains, "msgnum:" ?dynfile;outfmt