[ https://issues.apache.org/jira/browse/HDFS-16848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17654444#comment-17654444 ]
ASF GitHub Bot commented on HDFS-16848: --------------------------------------- howzi commented on code in PR #5147: URL: https://github.com/apache/hadoop/pull/5147#discussion_r1061436260 ########## hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/driver/impl/StateStoreZooKeeperImpl.java: ########## @@ -63,8 +72,17 @@ public class StateStoreZooKeeperImpl extends StateStoreSerializableImpl { RBFConfigKeys.FEDERATION_STORE_PREFIX + "driver.zk."; public static final String FEDERATION_STORE_ZK_PARENT_PATH = FEDERATION_STORE_ZK_DRIVER_PREFIX + "parent-path"; + public static final String FEDERATION_STORE_ZK_CLIENT_THREADS_SIZE = + FEDERATION_STORE_ZK_DRIVER_PREFIX + "client.size"; + public static final int FEDERATION_STORE_ZK_CLIENT_THREADS_SIZE_DEFAULT = 10; + public static final String FEDERATION_STORE_ZK_CLIENT_CONCURRENT = + FEDERATION_STORE_ZK_DRIVER_PREFIX + "client.concurrent"; + public static final boolean FEDERATION_STORE_ZK_CLIENT_CONCURRENT_DEFAULT = false; Review Comment: Thank you very much for your help! Just fixed all above problems, please check it again~ > RBF: Improve StateStoreZookeeperImpl > ------------------------------------- > > Key: HDFS-16848 > URL: https://issues.apache.org/jira/browse/HDFS-16848 > Project: Hadoop HDFS > Issue Type: Improvement > Components: rbf > Reporter: Sun Hao > Priority: Major > Labels: pull-request-available > Fix For: 3.4.0 > > > Currently, router is getting/updating state from zk sequentially. It will > slowdown router load/update state cache especially for a large cluster or a > multi region cluster. > We propose adding a threadpool to deal with zk state synchronization。 -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org