2018-09-27 12:15:48 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# 
 
							 
						 
					
						
							
								
									
										
										
										
											2022-01-17 14:07:46 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# Copyright © 2016-2022 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" 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-06-08 20:14:10 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								http_port :   "8888"   # /livenessProbe 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-29 21:02:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								js : 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   response_poll_interval :   "25" 
 
							 
						 
					
						
							
								
									
										
										
										
											2022-10-03 15:22:11 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   max_result_size :   "300000" 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-29 21:02:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											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" 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-22 12:11:17 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   acks :   "1"   # -1 = all; 0 = no acknowledgments; 1 = only waits for the leader to acknowledge 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-28 09:41:35 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   batch_size :   "128"   # for producer 
 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-27 13:16:25 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   linger_ms :   "5"   # for producer 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-06-17 07:42:21 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   partitions_consumed_concurrently :   "1"   # (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 :   "30000"   # The default value in kafkajs is: 30000 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-22 15:02:53 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   compression :   "gzip"   # gzip or uncompressed 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-02 10:04:51 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   topic_properties :   "retention.ms:604800000;segment.bytes:26214400;retention.bytes:104857600;partitions:100;min.insync.replicas:1" 
 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-11 11:15:41 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   use_confluent_cloud :   false 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-21 17:03:50 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   client_id :   "kafkajs"   #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 :   "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" 
 
							 
						 
					
						
							
								
									
										
										
										
											2022-11-14 11:28:30 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   memory_usage_trace_frequency :   "1000" 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-28 09:41:35 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   script_body_trace_frequency :   "10000" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								   stat_print_frequency :   "10000" 
 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-11 15:08:47 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   max_active_scripts :   "1000" 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-28 09:41:35 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   slow_query_log_ms :   "5.000000"   #millis 
 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-22 16:44:25 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								   slow_query_log_body :   "false"