From 1ebab356f3e431237524537a6fedd26590ff24ce Mon Sep 17 00:00:00 2001 From: wind Date: Thu, 4 Nov 2021 22:31:13 +0800 Subject: [PATCH] [DS-6660][Improvement] Change the registry default timeout (#6663) * [DS-6660][Improvement] Change the registry default timeout * [DS-6660][Improvement] Change the registry default timeout * fix Double to Integer Co-authored-by: caishunfeng <534328519@qq.com> --- .../plugin/registry/zookeeper/ZookeeperConfiguration.java | 5 ++--- .../src/main/resources/registry.properties | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperConfiguration.java b/dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperConfiguration.java index 7abc859bf3..ffe1f0edbd 100644 --- a/dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperConfiguration.java +++ b/dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperConfiguration.java @@ -34,9 +34,8 @@ public enum ZookeeperConfiguration { MAX_RETRIES("max.retries", 5, Integer::valueOf), - //todo - SESSION_TIMEOUT_MS("session.timeout.ms", 1000, Integer::valueOf), - CONNECTION_TIMEOUT_MS("connection.timeout.ms", 1000, Integer::valueOf), + SESSION_TIMEOUT_MS("session.timeout.ms", 30000, Integer::valueOf), + CONNECTION_TIMEOUT_MS("connection.timeout.ms", 7500, Integer::valueOf), BLOCK_UNTIL_CONNECTED_WAIT_MS("block.until.connected.wait", 600, Integer::valueOf), ; diff --git a/dolphinscheduler-service/src/main/resources/registry.properties b/dolphinscheduler-service/src/main/resources/registry.properties index 4da2ec3e55..b00dfc0533 100644 --- a/dolphinscheduler-service/src/main/resources/registry.properties +++ b/dolphinscheduler-service/src/main/resources/registry.properties @@ -25,3 +25,8 @@ registry.servers=127.0.0.1:2181 #registry.plugin.binding config the Registry Plugin need be load when development and run in IDE #registry.plugin.binding=./dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/pom.xml + +#registry timeout +#registry.session.timeout.ms=30000 +#registry.connection.timeout.ms=7500 +#registry.block.until.connected.wait=600 \ No newline at end of file