experimental: add pstats data to omkafka test

This commit is contained in:
Rainer Gerhards 2018-10-27 13:21:20 +02:00
parent ab3f4343f0
commit 8ffcb770f6
No known key found for this signature in database
GPG Key ID: 0CB6B2A8BE80B499
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@ CLEANFILES=\
rsyslog.input-symlink.log rsyslog-link.*.log targets \ rsyslog.input-symlink.log rsyslog-link.*.log targets \
HOSTNAME \ HOSTNAME \
rstb_* \ rstb_* \
zookeeper.pid \
tmp.qi nocert tmp.qi nocert
CLEANFILES+= \ CLEANFILES+= \

View File

@ -26,6 +26,10 @@ create_kafka_topic $RANDTOPIC '.dep_wrk' '22181'
export RSYSLOG_DEBUGLOG="log" export RSYSLOG_DEBUGLOG="log"
generate_conf generate_conf
add_conf ' add_conf '
# impstats in order to gain insight into error cases
module(load="../plugins/impstats/.libs/impstats"
log.file="'$RSYSLOG_DYNNAME.pstats'"
interval="1" log.syslog="off")
main_queue(queue.timeoutactioncompletion="60000" queue.timeoutshutdown="60000") main_queue(queue.timeoutactioncompletion="60000" queue.timeoutshutdown="60000")
$imdiagInjectDelayMode full $imdiagInjectDelayMode full
@ -92,7 +96,10 @@ while [ $timecounter -lt $timeoutend ]; do
error_exit 1 error_exit 1
else else
echo wait-file-lines not yet there, currently $count lines echo wait-file-lines not yet there, currently $count lines
printf 'pstats data:\n'
cat $RSYSLOG_DYNNAME.pstats
printf '\n' printf '\n'
$TESTTOOL_DIR/msleep 1000 $TESTTOOL_DIR/msleep 1000
fi fi
fi fi