2018-09-27 12:15:48 +03:00
#
2025-02-25 09:39:16 +02:00
# Copyright © 2016-2025 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.
#
2024-10-23 15:30:07 +03:00
queue_type : "TB_QUEUE_TYPE" #kafka (Apache Kafka)
2023-10-30 16:17:12 +02:00
queue_prefix : "TB_QUEUE_PREFIX"
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"
2022-10-03 15:22:11 +03:00
max_result_size : "JS_MAX_RESULT_SIZE"
2020-04-29 21:02:47 +03:00
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-06-10 16:05:50 +03:00
batch_size : "TB_KAFKA_BATCH_SIZE" # for producer
linger_ms : "TB_KAFKA_LINGER_MS" # for producer
2021-06-17 07:42:21 +03:00
partitions_consumed_concurrently : "TB_KAFKA_PARTITIONS_CONSUMED_CONCURRENTLY" # (EXPERIMENTAL) 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"
2023-01-25 11:06:23 +00:00
connectionTimeout : "TB_KAFKA_CONNECTION_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
2024-05-16 18:02:23 +03:00
ssl :
# Enable or disable SSL for Kafka communication.
enabled : "TB_KAFKA_SSL_ENABLED"
# Path to the server certificate file. This file can hold the server certificate or a certificate chain and may include the server private key.
cert_file : "TB_KAFKA_SSL_PEM_CERTIFICATE"
# Optional: Path to the server certificate private key file. Required if the private key is not included in the server certificate file.
key_file : "TB_KAFKA_SSL_PEM_KEY"
# Optional: Password for the server certificate private key, if applicable.
key_password : "TB_KAFKA_SSL_PEM_KEY_PASSWORD"
# Optional: Path to a custom CA certificate file. Defaults to trusting well-known CAs curated by Mozilla.
ca_file : "TB_KAFKA_SSL_PEM_TRUSTS_CERTIFICATE"
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
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"
2022-11-14 11:07:09 +01:00
memory_usage_trace_frequency : "MEMORY_USAGE_TRACE_FREQUENCY"
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