[config] Add backend_rpc_timeout_second in FE config (#9779)

This commit is contained in:
pengxiangyu
2022-05-27 21:58:09 +08:00
committed by GitHub
parent 77de4869ed
commit ee1bed46be
4 changed files with 26 additions and 3 deletions

View File

@ -2155,3 +2155,13 @@ Default: 10
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: false
### backend_rpc_timeout_ms
Timeout millisecond for Fe sending rpc request to BE
Default: 60000
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: true

View File

@ -2200,3 +2200,13 @@ load 标签清理器将每隔 `label_clean_interval_second` 运行一次以清
是否可以动态配置:false
是否为 Master FE 节点独有的配置项:false
### backend_rpc_timeout_ms
FE向BE的BackendService发送rpc请求时的超时时间,单位:毫秒。
默认值:60000
是否可以动态配置:false
是否为 Master FE 节点独有的配置项:true

View File

@ -30,7 +30,6 @@ public class ClientPool {
static int heartbeatTimeoutMs = FeConstants.heartbeat_interval_second * 1000;
static GenericKeyedObjectPoolConfig backendConfig = new GenericKeyedObjectPoolConfig();
static int backendTimeoutMs = 60000; // 1min
static {
heartbeatConfig.setLifo(true); // set Last In First Out strategy
@ -68,10 +67,10 @@ public class ClientPool {
new GenericPool<>("FrontendService", heartbeatConfig, heartbeatTimeoutMs,
Config.thrift_server_type.equalsIgnoreCase(ThriftServer.THREADED_SELECTOR));
public static GenericPool<FrontendService.Client> frontendPool =
new GenericPool("FrontendService", backendConfig, backendTimeoutMs,
new GenericPool("FrontendService", backendConfig, Config.backend_rpc_timeout_ms,
Config.thrift_server_type.equalsIgnoreCase(ThriftServer.THREADED_SELECTOR));
public static GenericPool<BackendService.Client> backendPool =
new GenericPool("BackendService", backendConfig, backendTimeoutMs);
new GenericPool("BackendService", backendConfig, Config.backend_rpc_timeout_ms);
public static GenericPool<TPaloBrokerService.Client> brokerPool =
new GenericPool("TPaloBrokerService", brokerPoolConfig, brokerTimeoutMs);
}

View File

@ -1651,4 +1651,8 @@ public class Config extends ConfigBase {
@ConfField
public static boolean enable_vectorized_load = false;
@ConfField(mutable = false, masterOnly = true)
public static int backend_rpc_timeout_ms = 60000; // 1 min
}