mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 12:10:46 +01:00
testbench: Changed config parameters of kafka multi test
Test uses all three kafka instances and all kafka instances uses three zookeeper instances. Testbench proberly needs to be adapted...
This commit is contained in:
parent
97355a6d26
commit
a65096dee2
@ -6,11 +6,15 @@ export TESTMESSAGES=10000
|
||||
echo ===============================================================================
|
||||
echo \[sndrcv_kafka_multi.sh\]: Create multiple kafka/zookeeper instances and static topic
|
||||
. $srcdir/diag.sh download-kafka
|
||||
. $srcdir/diag.sh stop-zookeeper
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk1'
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk2'
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk3'
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk1'
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk2'
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk3'
|
||||
. $srcdir/diag.sh start-zookeeper '.multi'
|
||||
. $srcdir/diag.sh start-zookeeper '.dep_wrk1'
|
||||
. $srcdir/diag.sh start-zookeeper '.dep_wrk2'
|
||||
. $srcdir/diag.sh start-zookeeper '.dep_wrk3'
|
||||
. $srcdir/diag.sh start-kafka '.dep_wrk1'
|
||||
. $srcdir/diag.sh start-kafka '.dep_wrk2'
|
||||
. $srcdir/diag.sh start-kafka '.dep_wrk3'
|
||||
@ -31,7 +35,7 @@ export RSYSLOG_DEBUGLOG="log2"
|
||||
. $srcdir/diag.sh tcpflood -m$TESTMESSAGES -i1
|
||||
|
||||
echo \[sndrcv_kafka_multi.sh\]: Sleep to give rsyslog instances time to process data ...
|
||||
sleep 10
|
||||
sleep 20
|
||||
|
||||
echo \[sndrcv_kafka_multi.sh\]: Stopping sender instance [omkafka]
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
@ -49,4 +53,6 @@ echo \[sndrcv_kafka.sh\]: stop kafka instances
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk1'
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk2'
|
||||
. $srcdir/diag.sh stop-kafka '.dep_wrk3'
|
||||
. $srcdir/diag.sh stop-zookeeper '.multi'
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk1'
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk2'
|
||||
. $srcdir/diag.sh stop-zookeeper '.dep_wrk3'
|
||||
|
||||
@ -32,8 +32,8 @@ message.max.bytes=1000000
|
||||
|
||||
num.network.threads=2
|
||||
num.io.threads=2
|
||||
num.partitions=1
|
||||
#num.partitions=100
|
||||
#num.partitions=1
|
||||
num.partitions=100
|
||||
num.recovery.threads.per.data.dir=1
|
||||
|
||||
num.replica.fetchers=1
|
||||
@ -59,7 +59,7 @@ queued.max.requests=500
|
||||
|
||||
#zookeeper.connect=zoo1.internal:22181,zoo2.internal:22181,zoo3.internal:22181
|
||||
#zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.connect=localhost:22181/kafka
|
||||
zookeeper.connect=localhost:22181/kafka,localhost:22182/kafka,localhost:22183/kafka
|
||||
zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.session.timeout.ms=6000
|
||||
zookeeper.sync.time.ms=2000
|
||||
|
||||
@ -32,8 +32,8 @@ message.max.bytes=1000000
|
||||
|
||||
num.network.threads=2
|
||||
num.io.threads=2
|
||||
num.partitions=1
|
||||
#num.partitions=100
|
||||
#num.partitions=1
|
||||
num.partitions=100
|
||||
num.recovery.threads.per.data.dir=1
|
||||
|
||||
num.replica.fetchers=1
|
||||
@ -59,7 +59,7 @@ queued.max.requests=500
|
||||
|
||||
#zookeeper.connect=zoo1.internal:22181,zoo2.internal:22181,zoo3.internal:22181
|
||||
#zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.connect=localhost:22181/kafka
|
||||
zookeeper.connect=localhost:22181/kafka,localhost:22182/kafka,localhost:22183/kafka
|
||||
zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.session.timeout.ms=6000
|
||||
zookeeper.sync.time.ms=2000
|
||||
|
||||
@ -32,8 +32,8 @@ message.max.bytes=1000000
|
||||
|
||||
num.network.threads=2
|
||||
num.io.threads=2
|
||||
num.partitions=1
|
||||
#num.partitions=100
|
||||
#num.partitions=1
|
||||
num.partitions=100
|
||||
num.recovery.threads.per.data.dir=1
|
||||
|
||||
num.replica.fetchers=1
|
||||
@ -59,7 +59,7 @@ queued.max.requests=500
|
||||
|
||||
#zookeeper.connect=zoo1.internal:22181,zoo2.internal:22181,zoo3.internal:22181
|
||||
#zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.connect=localhost:22181/kafka
|
||||
zookeeper.connect=localhost:22181/kafka,localhost:22182/kafka,localhost:22183/kafka
|
||||
zookeeper.connection.timeout.ms=6000
|
||||
zookeeper.session.timeout.ms=6000
|
||||
zookeeper.sync.time.ms=2000
|
||||
|
||||
@ -9,8 +9,7 @@ template(name="outfmt" type="string" string="%msg%\n")
|
||||
ruleset(name="omkafka") {
|
||||
action( type="omkafka"
|
||||
name="kafka-fwd"
|
||||
# brokers=["localhost:29092", "localhost:29093", "localhost:29094"]
|
||||
broker="localhost:29092"
|
||||
broker=["localhost:29092", "localhost:29093", "localhost:29094"]
|
||||
topic="static"
|
||||
template="outfmt"
|
||||
partitions.auto="on"
|
||||
@ -24,9 +23,6 @@ ruleset(name="omkafka") {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ruleset(name="omkafka1") {
|
||||
action(name="kafka-fwd" type="omkafka" topic="static" broker="localhost:29092" template="outfmt" partitions.auto="on")
|
||||
}
|
||||
|
||||
@ -1,5 +1,20 @@
|
||||
#--- Do we need this for the test?
|
||||
#server.1=localhost:2889:3888
|
||||
#server.2=localhost:3889:4888
|
||||
#server.3=localhost:4889:5888
|
||||
#---
|
||||
|
||||
# The number of milliseconds of each tick
|
||||
tickTime=2000
|
||||
# The number of ticks that the initial
|
||||
# synchronization phase can take
|
||||
initLimit=10
|
||||
# The number of ticks that can pass between
|
||||
# sending a request and getting an acknowledgement
|
||||
syncLimit=5
|
||||
# the directory where the snapshot is stored.
|
||||
# do not use /tmp for storage, /tmp here is just
|
||||
# example sakes.
|
||||
dataDir=zk_data_dir
|
||||
clientPort=2181
|
||||
# the port at which the clients will connect
|
||||
clientPort=22181
|
||||
|
||||
@ -1,5 +1,20 @@
|
||||
#--- Do we need this for the test?
|
||||
#server.1=localhost:2889:3888
|
||||
#server.2=localhost:3889:4888
|
||||
#server.3=localhost:4889:5888
|
||||
#---
|
||||
|
||||
# The number of milliseconds of each tick
|
||||
tickTime=2000
|
||||
# The number of ticks that the initial
|
||||
# synchronization phase can take
|
||||
initLimit=10
|
||||
# The number of ticks that can pass between
|
||||
# sending a request and getting an acknowledgement
|
||||
syncLimit=5
|
||||
dataDir=zk_data_dir2
|
||||
clientPort=2182
|
||||
# the directory where the snapshot is stored.
|
||||
# do not use /tmp for storage, /tmp here is just
|
||||
# example sakes.
|
||||
dataDir=zk_data_dir
|
||||
# the port at which the clients will connect
|
||||
clientPort=22182
|
||||
|
||||
@ -1,5 +1,20 @@
|
||||
#--- Do we need this for the test?
|
||||
#server.1=localhost:2889:3888
|
||||
#server.2=localhost:3889:4888
|
||||
#server.3=localhost:4889:5888
|
||||
#---
|
||||
|
||||
# The number of milliseconds of each tick
|
||||
tickTime=2000
|
||||
# The number of ticks that the initial
|
||||
# synchronization phase can take
|
||||
initLimit=10
|
||||
# The number of ticks that can pass between
|
||||
# sending a request and getting an acknowledgement
|
||||
syncLimit=5
|
||||
dataDir=zk_data_dir3
|
||||
clientPort=2183
|
||||
# the directory where the snapshot is stored.
|
||||
# do not use /tmp for storage, /tmp here is just
|
||||
# example sakes.
|
||||
dataDir=zk_data_dir
|
||||
# the port at which the clients will connect
|
||||
clientPort=22183
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
#--- Do we need this for the test?
|
||||
#server.1=localhost:2889:3888
|
||||
#server.2=localhost:3889:4888
|
||||
#server.3=localhost:4889:5888
|
||||
#---
|
||||
|
||||
# The number of milliseconds of each tick
|
||||
tickTime=2000
|
||||
# The number of ticks that the initial
|
||||
# synchronization phase can take
|
||||
initLimit=10
|
||||
# The number of ticks that can pass between
|
||||
# sending a request and getting an acknowledgement
|
||||
syncLimit=5
|
||||
# the directory where the snapshot is stored.
|
||||
# do not use /tmp for storage, /tmp here is just
|
||||
# example sakes.
|
||||
dataDir=zk_data_dir
|
||||
# the port at which the clients will connect
|
||||
clientPort=22181
|
||||
Loading…
x
Reference in New Issue
Block a user