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