From 08f71aa207f21e7e31627dfa0f14c68c1aa51c3f Mon Sep 17 00:00:00 2001 From: Stanislav Hejny Date: Mon, 5 May 2025 13:24:22 +0100 Subject: [PATCH] #12 - add comments to properties to complete the documentation of AMQ Adapter --- amqp/config/application.properties | 31 ++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/amqp/config/application.properties b/amqp/config/application.properties index 5bed8bd..fdfa5a8 100644 --- a/amqp/config/application.properties +++ b/amqp/config/application.properties @@ -2,30 +2,41 @@ # CleverMicro AMQ Adapter settings # ==================================================================== [CleverMicro-AMQ] -cm.amq-adapter.service-name=amq-adapter-python -cm.amq-adapter.generator-id=164 -cm.amq-adapter.route-mapping=amq-cleverswarm::amq-cleverswarm:cleverswarm.localhost.#:5:0 +# CleverMicro AMQ Adapter settings that identify this AMQ Adapter instance to other adapters + +# A name to identify this service for the AMQ Adapter +cm.amq-adapter.service-name=cleverthis-service-name +# The CleverMicro AMQ Adapter instance ID, used to identify this instance in the CleverMicro AMQ Adapter cluster +cm.amq-adapter.generator-id=1 +# Route mapping. For route detail description see section 3.1 in Onboarding Guide for Python: +# https://docs.cleverthis.com/en/architecture/microservices/onboarding/python +# NOTE: this is a comma-separated list of route mappings (multiple, comma-separated routes are allowed here) +cm.amq-adapter.route-mapping= +# Indicate if AMQ Adapter should respond with HTTP 401 Unauthorized if the request does not contain valid JWT token cm.amq-adapter.require-authenticated-user=false +# CleverMicro AMQ Adapter dispatcher, settings related to RabbitMQ connection and optional REST forwarding cm.dispatch.use-dlq=true -cm.dispatch.use-confirms=false cm.dispatch.amq-host=rabbitmq cm.dispatch.amq-port=5672 cm.dispatch.amq-port-tls=5671 cm.dispatch.download-dir=/tmp/downloaded_files -# Not used for CleverSwarm nor CleverBRAG or in tight coupling mode. +# Not used for CleveSwarm nor CleverBRAG or in tight coupling mode. # applicable only in loose coupling mode, specify the destination where to forward the REST request -#cm.dispatch.service-host=cleverswarm.localhost +#cm.dispatch.service-host=cleverthis-service-name.localhost #cm.dispatch.service-port=8080 -# + +# Backpressure monitor settings # Define maximum number of messages of being processed in parallel before triggering backpressure OVERLOAD alert cm.backpressure.threshold=5 -# Define maximum CPU usage before triggering backpressure OVERLOAD alert -cm.backpressure.threshold-cpu=90 +# Define maximum CPU usage (%) before triggering backpressure OVERLOAD alert +cm.backpressure.threshold-cpu-overload=90 +# Define maximum CPU usage (%) before triggering backpressure IDLE alert +cm.backpressure.threshold-cpu-idle=10 # Define the time window between the Backpressure reports, in seconds cm.backpressure.time-window=10 # Define the time window length, in seconds, during which, if CPU usage is consistently above the threshold, the system will trigger OVERLOAD alert cm.backpressure.cpu-overload-duration=30 # Define the time window length, in seconds, during which, if no request is made to the Service, the system will trigger IDLE alert -cm.backpressure.idle-duration=30 +cm.backpressure.cpu-idle-duration=30