You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2023/07/27 03:12:36 UTC

[doris] branch master updated: [enhancement](default_config) change default value of rpc related (#22149)

This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 31c856351a [enhancement](default_config) change default value of rpc related (#22149)
31c856351a is described below

commit 31c856351af3a9157505da48d48de4487f365618
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Thu Jul 27 11:12:26 2023 +0800

    [enhancement](default_config) change default value of rpc related (#22149)
    
    configs
    
    Bdbje elect timeout is 30 seconds, so we enlarge thrift_rpc_timeout_ms
    and txn_commit_rpc_timeout_ms to 60s.
    
    BTW: enlarge bdbje_lock_timeout_second from 1 to 5.
---
 be/src/common/config.cpp                                       | 4 ++--
 docs/en/docs/admin-manual/config/be-config.md                  | 4 ++--
 docs/en/docs/admin-manual/config/fe-config.md                  | 2 +-
 docs/zh-CN/docs/admin-manual/config/be-config.md               | 4 ++--
 docs/zh-CN/docs/admin-manual/config/fe-config.md               | 2 +-
 fe/fe-common/src/main/java/org/apache/doris/common/Config.java | 2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 7bea40cd92..a74b7af584 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -581,10 +581,10 @@ DEFINE_mInt32(priority_queue_remaining_tasks_increased_frequency, "512");
 DEFINE_mBool(sync_tablet_meta, "false");
 
 // default thrift rpc timeout ms
-DEFINE_mInt32(thrift_rpc_timeout_ms, "20000");
+DEFINE_mInt32(thrift_rpc_timeout_ms, "60000");
 
 // txn commit rpc timeout
-DEFINE_mInt32(txn_commit_rpc_timeout_ms, "10000");
+DEFINE_mInt32(txn_commit_rpc_timeout_ms, "60000");
 
 // If set to true, metric calculator will run
 DEFINE_Bool(enable_metric_calculator, "true");
diff --git a/docs/en/docs/admin-manual/config/be-config.md b/docs/en/docs/admin-manual/config/be-config.md
index 29bb732caa..8ab61da608 100644
--- a/docs/en/docs/admin-manual/config/be-config.md
+++ b/docs/en/docs/admin-manual/config/be-config.md
@@ -250,7 +250,7 @@ There are two ways to configure BE configuration items:
 #### `thrift_rpc_timeout_ms`
 
 * Description: thrift default timeout time
-* Default value: 10000
+* Default value: 60000
 
 #### `thrift_client_retry_interval_ms`
 
@@ -275,7 +275,7 @@ There are two ways to configure BE configuration items:
 #### `txn_commit_rpc_timeout_ms`
 
 * Description:txn submit rpc timeout
-* Default value: 10,000 (ms)
+* Default value: 60,000 (ms)
 
 #### `txn_map_shard_size`
 
diff --git a/docs/en/docs/admin-manual/config/fe-config.md b/docs/en/docs/admin-manual/config/fe-config.md
index 3ea9052c84..3820d72fc4 100644
--- a/docs/en/docs/admin-manual/config/fe-config.md
+++ b/docs/en/docs/admin-manual/config/fe-config.md
@@ -181,7 +181,7 @@ The replica ack timeout when writing to bdbje , When writing some relatively l
 
 #### `bdbje_lock_timeout_second`
 
-Default:1
+Default:5
 
 The lock timeout of bdbje operation, If there are many LockTimeoutException in FE WARN log, you can try to increase this value
 
diff --git a/docs/zh-CN/docs/admin-manual/config/be-config.md b/docs/zh-CN/docs/admin-manual/config/be-config.md
index fd4ac79b74..c044319a8d 100644
--- a/docs/zh-CN/docs/admin-manual/config/be-config.md
+++ b/docs/zh-CN/docs/admin-manual/config/be-config.md
@@ -261,7 +261,7 @@ BE 重启后该配置将失效。如果想持久化修改结果,使用如下
 #### `thrift_rpc_timeout_ms`
 
 * 描述:thrift默认超时时间
-* 默认值:10000
+* 默认值:60000
 
 #### `thrift_client_retry_interval_ms`
 
@@ -286,7 +286,7 @@ BE 重启后该配置将失效。如果想持久化修改结果,使用如下
 #### `txn_commit_rpc_timeout_ms`
 
 * 描述:txn 提交 rpc 超时
-* 默认值:10000 (ms)
+* 默认值:60000 (ms)
 
 #### `txn_map_shard_size`
 
diff --git a/docs/zh-CN/docs/admin-manual/config/fe-config.md b/docs/zh-CN/docs/admin-manual/config/fe-config.md
index c990a17177..5dfc74798b 100644
--- a/docs/zh-CN/docs/admin-manual/config/fe-config.md
+++ b/docs/zh-CN/docs/admin-manual/config/fe-config.md
@@ -181,7 +181,7 @@ Doris 元数据将保存在这里。 强烈建议将此目录的存储为:
 
 #### `bdbje_lock_timeout_second`
 
-默认值:1
+默认值:5
 
 bdbje 操作的 lock timeout  如果 FE WARN 日志中有很多 LockTimeoutException,可以尝试增加这个值
 
diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
index eef6268911..e7fdaa5f08 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
@@ -223,7 +223,7 @@ public class Config extends ConfigBase {
             + "可以适当增大这个值",
             "The lock timeout of bdbje operation, in seconds. "
                     + "If there are many LockTimeoutException in FE WARN log, you can try to increase this value"})
-    public static int bdbje_lock_timeout_second = 1;
+    public static int bdbje_lock_timeout_second = 5;
 
     @ConfField(description = {"BDBJE 主从节点间同步的超时时间,单位为秒。如果出现大量的 ReplicaWriteException,"
             + "可以适当增大这个值",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org