add _stream_rpc_max_wait_timeout to avoid tenant worker hung for waiting next request
This commit is contained in:
@ -768,6 +768,9 @@ DEF_TIME(_ob_get_gts_ahead_interval, OB_CLUSTER_PARAMETER, "0s", "[0s, 1s]",
|
||||
DEF_TIME(rpc_timeout, OB_CLUSTER_PARAMETER, "2s",
|
||||
"the time during which a RPC request is permitted to execute before it is terminated",
|
||||
ObParameterAttr(Section::RPC, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
DEF_TIME(_stream_rpc_max_wait_timeout, OB_TENANT_PARAMETER, "30s", "[1s,)",
|
||||
"the maximum timeout for a tenant worker thread to wait for the next request while processing streaming RPC",
|
||||
ObParameterAttr(Section::RPC, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
DEF_BOOL(_enable_pkt_nio, OB_CLUSTER_PARAMETER, "True",
|
||||
"enable pkt-nio, the new RPC framework"
|
||||
"Value: True:turned on; False: turned off",
|
||||
|
||||
Reference in New Issue
Block a user