Commit 898297737248818cd79fa65a819cfc4543939fa8

Authored by 芯火源
1 parent d81bdbc9

fix: 设备接入服务TCP配置项修复

@@ -22,7 +22,7 @@ import org.thingsboard.common.util.AbstractListeningExecutor; @@ -22,7 +22,7 @@ import org.thingsboard.common.util.AbstractListeningExecutor;
22 @Component 22 @Component
23 public class TkScriptExecutorService extends AbstractListeningExecutor { 23 public class TkScriptExecutorService extends AbstractListeningExecutor {
24 24
25 - @Value("${js.js_thread_pool_size}") 25 + @Value("${actors.rule.js_thread_pool_size}")
26 private int jsExecutorThreadPoolSize; 26 private int jsExecutorThreadPoolSize;
27 27
28 @Override 28 @Override
@@ -83,9 +83,14 @@ redis: @@ -83,9 +83,14 @@ redis:
83 numberTestsPerEvictionRun: "${REDIS_POOL_CONFIG_NUMBER_TESTS_PER_EVICTION_RUN:3}" 83 numberTestsPerEvictionRun: "${REDIS_POOL_CONFIG_NUMBER_TESTS_PER_EVICTION_RUN:3}"
84 blockWhenExhausted: "${REDIS_POOL_CONFIG_BLOCK_WHEN_EXHAUSTED:true}" 84 blockWhenExhausted: "${REDIS_POOL_CONFIG_BLOCK_WHEN_EXHAUSTED:true}"
85 85
86 - 86 +# Actor system parameters
  87 +actors:
  88 + rule:
  89 +# # Specify thread pool size for database request callbacks executor service
  90 +# db_callback_thread_pool_size: "${ACTORS_RULE_DB_CALLBACK_THREAD_POOL_SIZE:50}"
  91 + # Specify thread pool size for javascript executor service
  92 + js_thread_pool_size: "${ACTORS_RULE_JS_THREAD_POOL_SIZE:50}"
87 js: 93 js:
88 - js_thread_pool_size: "${ACTORS_RULE_JS_THREAD_POOL_SIZE:50}"  
89 evaluator: "${JS_EVALUATOR:local}" # local/remote 94 evaluator: "${JS_EVALUATOR:local}" # local/remote
90 # Built-in JVM JavaScript environment properties 95 # Built-in JVM JavaScript environment properties
91 local: 96 local: