You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/09/09 16:33:59 UTC
[camel-performance-tests] branch main updated (007269f -> 7034478)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git.
from 007269f Fixed README
new 1dfae36 Improved the burst script
new 7034478 Fixed README
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
profiling/kafka-minio/README.md | 6 ++++--
profiling/kafka-minio/script/burst.sh | 38 +++++++++++++++++++++++++++++++++--
2 files changed, 40 insertions(+), 4 deletions(-)
[camel-performance-tests] 01/02: Improved the burst script
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 1dfae363ec9c949537051d03aafbade3df8cbe3f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 9 18:15:04 2021 +0200
Improved the burst script
---
profiling/kafka-minio/script/burst.sh | 38 +++++++++++++++++++++++++++++++++--
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/profiling/kafka-minio/script/burst.sh b/profiling/kafka-minio/script/burst.sh
index bd0a3f8..0b50ae2 100755
--- a/profiling/kafka-minio/script/burst.sh
+++ b/profiling/kafka-minio/script/burst.sh
@@ -1,5 +1,39 @@
#!/bin/bash
-for i in {1..10000}
+
+POSITIONAL=()
+while [[ $# -gt 0 ]]; do
+ key="$1"
+
+ case $key in
+ -n|--number)
+ NUMBER="$2"
+ shift # past argument
+ shift # past value
+ ;;
+ -t|--topic)
+ TOPIC="$2"
+ shift # past argument
+ shift # past value
+ ;;
+ -p|--payload)
+ PAYLOAD="$2"
+ shift # past argument
+ shift # past value
+ ;;
+ --default)
+ DEFAULT=YES
+ shift # past argument
+ ;;
+ *) # unknown option
+ POSITIONAL+=("$1") # save it in an array for later
+ shift # past argument
+ ;;
+ esac
+done
+
+set -- "${POSITIONAL[@]}" # restore positional parameters
+
+for i in {1..$NUMBER}
do
- echo "payload" | $KAFKACAT_PATH -b localhost:9092 -t testtopic -H "file=$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1)"
+ echo $PAYLOAD | $KAFKACAT_PATH -b localhost:9092 -t $TOPIC -H "file=zzzz"
done
[camel-performance-tests] 02/02: Fixed README
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git
commit 7034478f55d61c31f5e11a3d710d49a0a7b0ed9e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 9 18:33:45 2021 +0200
Fixed README
---
profiling/kafka-minio/README.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/profiling/kafka-minio/README.md b/profiling/kafka-minio/README.md
index 790bebd..7c94dd4 100644
--- a/profiling/kafka-minio/README.md
+++ b/profiling/kafka-minio/README.md
@@ -56,11 +56,13 @@ You'll need also kafkacat to be able to inject the filename header and use the b
export KAFKACAT_PATH=<path_to_your_kafkacat>
```
-And now run the burst script
+And now run the burst script.
+
+This command for example will send 1000 messages with payload "payload" to the topic "testtopic"
```shell script
cd script/
-> ./burst.sh
+> ./burst.sh -n 1000 -t testtopic -p "payload"
```