-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrun.sh
77 lines (73 loc) · 3.01 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
echo "${CONTAINER_NAME} version ${JMETER_CONTAINER_VERSION}"
echo
echo Image built date: $(cat ${JMETER_HOME}/build-date.txt)
echo
mkdir -p $JMETER_RESULTS
echo
echo "Current HEAP settings ..."
echo "HEAP=$HEAP"
echo
for FILE in $JMETER_TESTPLANS/*;
do
echo
echo "Executing test plan: $FILE ..."
echo
echo "Running command ... "
echo
echo "jmeter -n -t $FILE \ "
echo "-Jjmeter.threads=$JMETER_THREADS \ "
echo "-Jbootstrap.servers=$BOOTSTRAP_SERVERS \ "
echo "-Jbatch.size=$BATCH_SIZE \ "
echo "-Jlinger.ms=$LINGER_MS \ "
echo "-Jbuffer.memory=$BUFFER_MEMORY \ "
echo "-Jacks=$ACKS \ "
echo "-Jcompression.type=$COMPRESSION_TYPE \ "
echo "-Jsend_buffer.bytes=$SEND_BUFFER \ "
echo "-Jreceive_buffer.bytes=$RECEIVE_BUFFER \ "
echo "-Jkafka.topic=$KAFKA_TOPIC \ "
echo "-Jpartition.no=$PARTITION_NO \ "
echo "-Jramup.period=$RAMUP_PERIOD \ "
echo "-Jloop.count=$LOOP_COUNT \ "
echo "\"-Jsampler.label=$SAMPLER_LABEL\" \ "
echo "\"-Jkafka.message=$KAFKA_MESSAGE\" \ "
echo "-Jthreadgroup.scheduler=$THREADGROUP_SCHEDULER \ "
echo "-Jthreadgroup.duration=$THREADGROUP_DURATION \ "
echo "-Jthreadgroup.delay=$THREADGROUP_DELAY \ "
echo "-Jthreadgroup.same_user_on_each_iteration=$THREADGROUP_SAME_USER_EACH_ITERATION \ "
echo "-Jthreadgroup.delaystart=$THREADGROUP_DELAYSTART \ "
echo "-Jmax.block.ms=$MAX_BLOCK_MS \ "
echo "-Jdelivery.timeout.ms=$DELIVERY_TIMEOUT_MS \ "
echo "-Jrecord.size=$RECORD_SIZE \ "
echo "-Jthrottle.record.size=$THROTTLE_RECORD_SIZE \ "
echo "-Jthrottle.message.num=$THROTTLE_MESSAGE_NUM \ "
echo "-Jnumber.records=$NUMBER_RECORDS; "
echo
jmeter -n -t $FILE \
-Jjmeter.threads=$JMETER_THREADS \
-Jbootstrap.servers=$BOOTSTRAP_SERVERS \
-Jbatch.size=$BATCH_SIZE \
-Jlinger.ms=$LINGER_MS \
-Jbuffer.memory=$BUFFER_MEMORY \
-Jacks=$ACKS \
-Jcompression.type=$COMPRESSION_TYPE \
-Jsend_buffer.bytes=$SEND_BUFFER \
-Jreceive_buffer.bytes=$RECEIVE_BUFFER \
-Jkafka.topic=$KAFKA_TOPIC \
-Jpartition.no=$PARTITION_NO \
-Jramup.period=$RAMUP_PERIOD \
-Jloop.count=$LOOP_COUNT \
"-Jsampler.label=$SAMPLER_LABEL" \
"-Jkafka.message=$KAFKA_MESSAGE" \
-Jthreadgroup.scheduler=$THREADGROUP_SCHEDULER \
-Jthreadgroup.duration=$THREADGROUP_DURATION \
-Jthreadgroup.delay=$THREADGROUP_DELAY \
-Jthreadgroup.same_user_on_next_iteration=$THREADGROUP_SAME_USER_NEXT_ITERATION \
-Jthreadgroup.delaystart=$THREADGROUP_DELAYSTART \
-Jmax.block.ms=$MAX_BLOCK_MS \
-Jdelivery.timeout.ms=$DELIVERY_TIMEOUT_MS \
-Jrecord.size=$RECORD_SIZE \
-Jthrottle.record.size=$THROTTLE_RECORD_SIZE \
-Jthrottle.message.num=$THROTTLE_MESSAGE_NUM \
-Jnumber.records=$NUMBER_RECORDS;
done