Skip to content

Commit

Permalink
[refactor]broker rpc timeout configuration parameterization (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
hf200012 authored Jul 8, 2022
1 parent ed4b214 commit 3229730
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/en/docs/admin-manual/config/fe-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,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/docs/admin-manual/config/fe-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,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 @@ -547,6 +547,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 3229730

Please sign in to comment.