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/16 11:48:31 UTC
[camel-performance-tests] 03/03: Kafka to Minio Example: Added more
docs
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 9a1a55b102386d7c5485287f7fb273a4630e1f38
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Sep 16 13:48:16 2021 +0200
Kafka to Minio Example: Added more docs
---
profiling/kafka-minio/README.md | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/profiling/kafka-minio/README.md b/profiling/kafka-minio/README.md
index c98ef3a..53fa8c0 100644
--- a/profiling/kafka-minio/README.md
+++ b/profiling/kafka-minio/README.md
@@ -75,6 +75,24 @@ and check the status
docker exec -it <container_id> jcmd 1 JFR.check
```
+## Tuning Container
+
+You could also modify the resources of your container with memory and cpu defined while running it
+
+docker:
+```shell script
+docker run --rm -ti \
+ -v $PWD/data:/etc/camel:Z \
+ -v $PWD/jfr:/work/jfr:Z \
+ -e CAMEL_K_CONF=/etc/camel/application.properties \
+ --network="host" \
+ -m 128m \
+ --cpu-quota="25000" \
+ quay.io/oscerd/kafka-minio:1.0-SNAPSHOT-jvm
+```
+
+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