2018-09-27 12:15:48 +03:00
#
2021-01-11 13:42:16 +02:00
# Copyright © 2016-2021 The Thingsboard Authors
2018-09-27 12:15:48 +03:00
#
# Licensed 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.
#
2020-04-30 16:24:12 +03:00
queue_type : "TB_QUEUE_TYPE" #kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
2020-04-29 21:02:47 +03:00
request_topic : "REMOTE_JS_EVAL_REQUEST_TOPIC"
2021-06-08 20:14:10 +03:00
http_port : "HTTP_PORT" # /livenessProbe
2020-04-29 21:02:47 +03:00
js :
response_poll_interval : "REMOTE_JS_RESPONSE_POLL_INTERVAL_MS"
2018-09-27 12:15:48 +03:00
kafka :
bootstrap :
# Kafka Bootstrap Servers
servers : "TB_KAFKA_SERVERS"
2020-04-29 21:02:47 +03:00
replication_factor : "TB_QUEUE_KAFKA_REPLICATION_FACTOR"
2021-04-21 19:51:59 +03:00
acks : "TB_KAFKA_ACKS" # -1 = all; 0 = no acknowledgments; 1 = only waits for the leader to acknowledge
2021-05-28 09:41:35 +03:00
batch_size : "${TB_KAFKA_BATCH_SIZE:128}" # for producer
linger_ms : "${TB_KAFKA_LINGER_MS:1}" # for producer
2021-06-10 14:31:51 +03:00
partitions_consumed_concurrently : "${PARTITIONS_CONSUMED_CONCURRENTLY:1}" # increase this value if you are planning to handle more than one partition (scale up, scale down) - this will decrease the latency
2021-04-22 12:11:17 +03:00
requestTimeout : "TB_QUEUE_KAFKA_REQUEST_TIMEOUT_MS"
2021-04-22 15:02:53 +03:00
compression : "TB_QUEUE_KAFKA_COMPRESSION" # gzip or uncompressed
2020-04-30 16:24:12 +03:00
topic_properties : "TB_QUEUE_KAFKA_JE_TOPIC_PROPERTIES"
2020-08-11 11:15:41 +03:00
use_confluent_cloud : "TB_QUEUE_KAFKA_USE_CONFLUENT_CLOUD"
2021-04-21 17:03:50 +03:00
client_id : "KAFKA_CLIENT_ID" #inject pod name to easy identify the client using /opt/kafka/bin/kafka-consumer-groups.sh
2020-08-11 11:15:41 +03:00
confluent :
sasl :
mechanism : "TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM"
username : "TB_QUEUE_KAFKA_CONFLUENT_USERNAME"
password : "TB_QUEUE_KAFKA_CONFLUENT_PASSWORD"
2020-04-29 21:02:47 +03:00
pubsub :
project_id : "TB_QUEUE_PUBSUB_PROJECT_ID"
service_account : "TB_QUEUE_PUBSUB_SERVICE_ACCOUNT"
2020-04-30 16:24:12 +03:00
queue_properties : "TB_QUEUE_PUBSUB_JE_QUEUE_PROPERTIES"
2020-04-29 21:02:47 +03:00
aws_sqs :
access_key_id : "TB_QUEUE_AWS_SQS_ACCESS_KEY_ID"
secret_access_key : "TB_QUEUE_AWS_SQS_SECRET_ACCESS_KEY"
region : "TB_QUEUE_AWS_SQS_REGION"
2020-04-30 16:24:12 +03:00
queue_properties : "TB_QUEUE_AWS_SQS_JE_QUEUE_PROPERTIES"
2020-04-29 21:02:47 +03:00
rabbitmq :
host : "TB_QUEUE_RABBIT_MQ_HOST"
port : "TB_QUEUE_RABBIT_MQ_PORT"
virtual_host : "TB_QUEUE_RABBIT_MQ_VIRTUAL_HOST"
username : "TB_QUEUE_RABBIT_MQ_USERNAME"
password : "TB_QUEUE_RABBIT_MQ_PASSWORD"
2020-04-30 16:24:12 +03:00
queue_properties : "TB_QUEUE_RABBIT_MQ_JE_QUEUE_PROPERTIES"
2020-04-29 21:02:47 +03:00
service_bus :
namespace_name : "TB_QUEUE_SERVICE_BUS_NAMESPACE_NAME"
sas_key_name : "TB_QUEUE_SERVICE_BUS_SAS_KEY_NAME"
sas_key : "TB_QUEUE_SERVICE_BUS_SAS_KEY"
max_messages : "TB_QUEUE_SERVICE_BUS_MAX_MESSAGES"
2020-04-30 16:24:12 +03:00
queue_properties : "TB_QUEUE_SERVICE_BUS_JE_QUEUE_PROPERTIES"
2020-04-29 21:02:47 +03:00
2018-09-27 12:15:48 +03:00
logger :
level : "LOGGER_LEVEL"
path : "LOG_FOLDER"
filename : "LOGGER_FILENAME"
2019-02-12 17:17:50 +02:00
script :
2019-12-03 14:45:59 +02:00
use_sandbox : "SCRIPT_USE_SANDBOX"
2021-05-28 09:41:35 +03:00
stat_print_frequency : "SCRIPT_STAT_PRINT_FREQUENCY"
2019-02-12 17:17:50 +02:00
script_body_trace_frequency : "SCRIPT_BODY_TRACE_FREQUENCY"
2019-12-11 15:08:47 +02:00
max_active_scripts : "MAX_ACTIVE_SCRIPTS"
2021-04-21 18:53:37 +03:00
slow_query_log_ms : "SLOW_QUERY_LOG_MS" #1.123456
slow_query_log_body : "SLOW_QUERY_LOG_BODY" #true or false