Browse Source
* added other parameters for queue kafka * Added support Confluent Cloud * fix js executor kafka connection * refactoredpull/3287/head
committed by
GitHub
11 changed files with 166 additions and 20 deletions
@ -0,0 +1,57 @@ |
|||
# |
|||
# Copyright © 2016-2020 The Thingsboard Authors |
|||
# |
|||
# 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. |
|||
# |
|||
|
|||
version: '2.2' |
|||
|
|||
services: |
|||
tb-js-executor: |
|||
env_file: |
|||
- queue-confluent.env |
|||
tb-core1: |
|||
env_file: |
|||
- queue-confluent.env |
|||
depends_on: |
|||
- redis |
|||
tb-core2: |
|||
env_file: |
|||
- queue-confluent.env |
|||
depends_on: |
|||
- redis |
|||
tb-rule-engine1: |
|||
env_file: |
|||
- queue-confluent.env |
|||
depends_on: |
|||
- redis |
|||
tb-rule-engine2: |
|||
env_file: |
|||
- queue-confluent.env |
|||
depends_on: |
|||
- redis |
|||
tb-mqtt-transport1: |
|||
env_file: |
|||
- queue-confluent.env |
|||
tb-mqtt-transport2: |
|||
env_file: |
|||
- queue-confluent.env |
|||
tb-http-transport1: |
|||
env_file: |
|||
- queue-confluent.env |
|||
tb-http-transport2: |
|||
env_file: |
|||
- queue-confluent.env |
|||
tb-coap-transport: |
|||
env_file: |
|||
- queue-confluent.env |
|||
@ -0,0 +1,18 @@ |
|||
TB_QUEUE_TYPE=kafka |
|||
|
|||
TB_KAFKA_SERVERS=confluent.cloud:9092 |
|||
TB_QUEUE_KAFKA_REPLICATION_FACTOR=3 |
|||
|
|||
TB_QUEUE_KAFKA_USE_CONFLUENT_CLOUD=true |
|||
TB_QUEUE_KAFKA_CONFLUENT_SSL_ALGORITHM=https |
|||
TB_QUEUE_KAFKA_CONFLUENT_SASL_MECHANISM=PLAIN |
|||
TB_QUEUE_KAFKA_CONFLUENT_SASL_JAAS_CONFIG=org.apache.kafka.common.security.plain.PlainLoginModule required username="CLUSTER_API_KEY" password="CLUSTER_API_SECRET"; |
|||
TB_QUEUE_KAFKA_CONFLUENT_SECURITY_PROTOCOL=SASL_SSL |
|||
TB_QUEUE_KAFKA_CONFLUENT_USERNAME=CLUSTER_API_KEY |
|||
TB_QUEUE_KAFKA_CONFLUENT_PASSWORD=CLUSTER_API_SECRET |
|||
|
|||
TB_QUEUE_KAFKA_RE_TOPIC_PROPERTIES=retention.ms:604800000;segment.bytes:52428800;retention.bytes:1048576000 |
|||
TB_QUEUE_KAFKA_CORE_TOPIC_PROPERTIES=retention.ms:604800000;segment.bytes:52428800;retention.bytes:1048576000 |
|||
TB_QUEUE_KAFKA_TA_TOPIC_PROPERTIES=retention.ms:604800000;segment.bytes:52428800;retention.bytes:1048576000 |
|||
TB_QUEUE_KAFKA_NOTIFICATIONS_TOPIC_PROPERTIES=retention.ms:604800000;segment.bytes:52428800;retention.bytes:1048576000 |
|||
TB_QUEUE_KAFKA_JE_TOPIC_PROPERTIES=retention.ms:604800000;segment.bytes:52428800;retention.bytes:104857600 |
|||
Loading…
Reference in new issue