Browse Source

[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>
2.0.7-release
wind 3 years ago committed by lenboo
parent
commit
855c4b7561
  1. 5
      dolphinscheduler-registry-plugin/dolphinscheduler-registry-zookeeper/src/main/java/org/apache/dolphinscheduler/plugin/registry/zookeeper/ZookeeperConfiguration.java
  2. 5
      dolphinscheduler-service/src/main/resources/registry.properties

5
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),
;

5
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
Loading…
Cancel
Save