This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 0ea7de03f37 Increase the default upper bound for ClientManager #14325
0ea7de03f37 is described below
commit 0ea7de03f37e095120b7d007b309999bbb4bbec9
Author: Potato <[email protected]>
AuthorDate: Fri Dec 6 09:12:35 2024 +0800
Increase the default upper bound for ClientManager #14325
Signed-off-by: OneSizeFitQuorum <[email protected]>
---
.../src/assembly/resources/conf/iotdb-system.properties.template | 4 ++--
.../org/apache/iotdb/commons/client/property/ClientPoolProperty.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties.template
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties.template
index 103f26df3ce..c7b9115eea0 100644
---
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties.template
+++
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties.template
@@ -456,7 +456,7 @@ cn_selector_thread_nums_of_client_manager=1
# for a while, then ClientManager will throw ClientManagerException if there
are no clients after the block time.
# effectiveMode: restart
# Datatype: int
-cn_max_client_count_for_each_node_in_client_manager=300
+cn_max_client_count_for_each_node_in_client_manager=1000
# The maximum session idle time. unit: ms
# Idle sessions are the ones that performs neither query or non-query
operations for a period of time
@@ -516,7 +516,7 @@ dn_selector_thread_count_of_client_manager=1
# for a while, then ClientManager will throw ClientManagerException if there
are no clients after the block time.
# effectiveMode: restart
# Datatype: int
-dn_max_client_count_for_each_node_in_client_manager=300
+dn_max_client_count_for_each_node_in_client_manager=1000
####################
### REST Service Configuration
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/property/ClientPoolProperty.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/property/ClientPoolProperty.java
index c4cd930ec00..5bb7c22ee49 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/property/ClientPoolProperty.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/property/ClientPoolProperty.java
@@ -101,9 +101,9 @@ public class ClientPoolProperty<V> {
private DefaultProperty() {}
- public static final long WAIT_CLIENT_TIMEOUT_MS =
TimeUnit.SECONDS.toMillis(10);
+ public static final long WAIT_CLIENT_TIMEOUT_MS =
TimeUnit.SECONDS.toMillis(30);
public static final long MIN_IDLE_TIME_FOR_CLIENT_MS =
TimeUnit.MINUTES.toMillis(1);
public static final long TIME_BETWEEN_EVICTION_RUNS_MS =
TimeUnit.MINUTES.toMillis(1);
- public static final int MAX_CLIENT_NUM_FOR_EACH_NODE = 300;
+ public static final int MAX_CLIENT_NUM_FOR_EACH_NODE = 1000;
}
}