[config] Add backend_rpc_timeout_second in FE config (#9779)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user