Skip to content

Commit

Permalink
[refactor]broker rpc timeout configuration parameterization (#10692)
Browse files Browse the repository at this point in the history
  • Loading branch information
hf200012 authored and morningman committed Jul 10, 2022
1 parent 2cb4939 commit a4b6c94
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/en/administrator-guide/config/fe_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,12 @@ MasterOnly:true

Default broker load timeout

### broker_timeout_ms

Default:10000 (10s)

Default broker RPC timeout

### load_running_job_num_limit

Default:0
Expand Down
6 changes: 6 additions & 0 deletions docs/zh-CN/administrator-guide/config/fe_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,12 @@ load 最大超时时间,适用于除 stream load 之外的所有类型的加

Broker load 的默认超时时间

### `broker_timeout_ms`

默认值:10000 (10秒)

Broker rpc 的默认超时时间

### `load_running_job_num_limit`

默认值:0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ClientPool {
}

static GenericKeyedObjectPoolConfig brokerPoolConfig = new GenericKeyedObjectPoolConfig();
static int brokerTimeoutMs = 10000;
static int brokerTimeoutMs = Config.broker_timeout_ms;

static {
brokerPoolConfig.setLifo(true); // set Last In First Out strategy
Expand Down
4 changes: 4 additions & 0 deletions fe/fe-core/src/main/java/org/apache/doris/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static int broker_load_default_timeout_second = 14400; // 4 hour

/**
* Broker rpc timeout
*/
@ConfField public static int broker_timeout_ms = 10000; // 10s
/**
* Default non-streaming mini load timeout
*/
Expand Down

0 comments on commit a4b6c94

Please sign in to comment.