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 2022/01/20 17:36:21 UTC

[camel-performance-tests] branch camel-jbang-1 created (now aba2f4c)

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

acosentino pushed a change to branch camel-jbang-1
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git.


      at aba2f4c  Kafka to Mongo: Add camel-jbang route

This branch includes the following new commits:

     new 0fb004d  Kafka to Mongo: Added a camel-jbang section to the README
     new aba2f4c  Kafka to Mongo: Add camel-jbang route

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.


[camel-performance-tests] 02/02: Kafka to Mongo: Add camel-jbang route

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit aba2f4c8a3ba542c85cc55a06e4a3e7d8f8db8fd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 20 18:35:26 2022 +0100

    Kafka to Mongo: Add camel-jbang route
---
 .../data/sources/camel-jbang-route.yaml            | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/profiling/kafka/kafka-mongo/data/sources/camel-jbang-route.yaml b/profiling/kafka/kafka-mongo/data/sources/camel-jbang-route.yaml
new file mode 100644
index 0000000..3a5fcfc
--- /dev/null
+++ b/profiling/kafka/kafka-mongo/data/sources/camel-jbang-route.yaml
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+- route:
+    from: 
+      uri: "kamelet:kafka-not-secured-source"
+      parameters:
+        bootstrapServers: "localhost:9092"
+        topic: "testtopic"
+      steps:
+        - to: 
+            uri: "kamelet:mongodb-sink"
+            parameters:
+              collection: "log"
+              database: "test"
+              hosts: "127.0.0.1"
+              username: "mongoadmin"
+              password: "secret"
+

[camel-performance-tests] 01/02: Kafka to Mongo: Added a camel-jbang section to the README

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 0fb004d948207481eaef288400fbdc02d8661def
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 20 18:34:03 2022 +0100

    Kafka to Mongo: Added a camel-jbang section to the README
---
 profiling/kafka/kafka-mongo/README.md | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/profiling/kafka/kafka-mongo/README.md b/profiling/kafka/kafka-mongo/README.md
index 1ca0860..05edec6 100644
--- a/profiling/kafka/kafka-mongo/README.md
+++ b/profiling/kafka/kafka-mongo/README.md
@@ -135,6 +135,18 @@ docker run --rm -ti \
 
 In this case we are allocating 128 Mb Memory to the container and 0.25% cpus.
 
+## Running this profiling example with Camel-Jbang
+
+You could also leveraging the camel-jbang module. From Camel 3.15.0 (still to be released) it will support the profiling feature.
+
+What you need to do is simply running this commands:
+
+```shell script
+jbang  -Dcamel.jbang.version=3.15.0-SNAPSHOT  camel@apache/camel run --jfr-profile=profile data/sources/camel-jbang-route.yaml
+```
+
+You'll get at jfr recording file once the application will be stopped in your working directory.
+
 ## HEAP Sizing
 
 In the pom you can also set a different Heap Size. The default is 64 Mb.