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/27 09:38:15 UTC

[camel-performance-tests] 05/06: Kafka-S3 Sample: Sending message to Kafka instructions

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch kafka-s3-fix
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git

commit 1d8f953c2fcb713473f4556a38fbd5cc5a8da5c0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Sep 27 11:37:04 2021 +0200

    Kafka-S3 Sample: Sending message to Kafka instructions
---
 profiling/kafka-s3/README.md | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/profiling/kafka-s3/README.md b/profiling/kafka-s3/README.md
index b5a5eba..ace83b1 100644
--- a/profiling/kafka-s3/README.md
+++ b/profiling/kafka-s3/README.md
@@ -113,3 +113,29 @@ docker run --rm -ti \
 
 In this case we are allocating 128 Mb Memory to the container and 0.25% cpus.
 
+## Send messages to Kafka
+
+You'll need also kafkacat to be able to inject the filename header and use the burst script
+
+```shell script
+export KAFKACAT_PATH=<path_to_your_kafkacat>
+```
+
+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 -b localhost:9092 -n 1000 -t testtopic -p "payload"
+```
+
+You could also tests this approach with multiple producers, through the multiburst script
+
+```shell script
+cd script/
+> ./multiburst.sh -s 5 -b localhost:9092 -n 1000 -t testtopic -p "payload"
+```
+
+This command will run 5 burst script with 1000 messages each one with payload "payload" to the Kafka instance running on localhost:9092 and the topic "testtopic"
+