2018-09-27 12:15:48 +03:00
|
|
|
#
|
2020-01-06 16:52:41 +02:00
|
|
|
# Copyright © 2016-2020 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: "kafka"
|
2020-04-29 21:02:47 +03:00
|
|
|
request_topic: "js_eval.requests"
|
|
|
|
|
|
|
|
|
|
js:
|
|
|
|
|
response_poll_interval: "25"
|
|
|
|
|
|
2018-09-27 12:15:48 +03:00
|
|
|
kafka:
|
|
|
|
|
bootstrap:
|
|
|
|
|
# Kafka Bootstrap Servers
|
|
|
|
|
servers: "localhost:9092"
|
2020-04-29 21:02:47 +03:00
|
|
|
replication_factor: "1"
|
2020-04-30 16:24:12 +03:00
|
|
|
topic_properties: "retention.ms:604800000;segment.bytes:26214400;retention.bytes:104857600"
|
2020-08-11 11:15:41 +03:00
|
|
|
use_confluent_cloud: false
|
|
|
|
|
confluent:
|
|
|
|
|
sasl:
|
|
|
|
|
mechanism: "PLAIN"
|
2020-04-29 21:02:47 +03:00
|
|
|
|
|
|
|
|
pubsub:
|
2020-04-30 16:24:12 +03:00
|
|
|
queue_properties: "ackDeadlineInSec:30;messageRetentionInSec:604800"
|
2020-04-29 21:02:47 +03:00
|
|
|
|
|
|
|
|
aws_sqs:
|
2020-04-30 16:24:12 +03:00
|
|
|
queue_properties: "VisibilityTimeout:30;MaximumMessageSize:262144;MessageRetentionPeriod:604800"
|
2020-04-29 21:02:47 +03:00
|
|
|
|
|
|
|
|
rabbitmq:
|
|
|
|
|
host: "localhost"
|
|
|
|
|
port: "5672"
|
|
|
|
|
virtual_host: "/"
|
|
|
|
|
username: "admin"
|
|
|
|
|
password: "password"
|
2020-04-30 16:24:12 +03:00
|
|
|
queue_properties: "x-max-length-bytes:1048576000;x-message-ttl:604800000"
|
2020-04-29 21:02:47 +03:00
|
|
|
|
|
|
|
|
service_bus:
|
2020-04-30 16:24:12 +03:00
|
|
|
queue_properties: "lockDurationInSec:30;maxSizeInMb:1024;messageTimeToLiveInSec:604800"
|
2018-09-27 12:15:48 +03:00
|
|
|
|
|
|
|
|
logger:
|
|
|
|
|
level: "info"
|
|
|
|
|
path: "logs"
|
|
|
|
|
filename: "tb-js-executor-%DATE%.log"
|
2019-02-12 17:17:50 +02:00
|
|
|
|
|
|
|
|
script:
|
2019-12-03 14:45:59 +02:00
|
|
|
use_sandbox: "true"
|
2019-02-12 17:17:50 +02:00
|
|
|
script_body_trace_frequency: "1000"
|
2019-12-11 15:08:47 +02:00
|
|
|
max_active_scripts: "1000"
|