enable pkt-nio to separate RPC memory under tenants
This commit is contained in:
@ -393,7 +393,7 @@ OB_DEF_SERIALIZE_SIZE(ObServerConfig)
|
||||
} // end of namespace common
|
||||
namespace obrpc {
|
||||
bool enable_pkt_nio() {
|
||||
return GCONF._enable_pkt_nio && GET_MIN_CLUSTER_VERSION() >= CLUSTER_VERSION_4_1_0_0;
|
||||
return GCONF._enable_pkt_nio && GET_MIN_CLUSTER_VERSION() >= CLUSTER_VERSION_4_2_0_0;
|
||||
}
|
||||
}
|
||||
} // end of namespace oceanbase
|
||||
|
||||
@ -712,7 +712,7 @@ 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_BOOL(_enable_pkt_nio, OB_CLUSTER_PARAMETER, "False",
|
||||
DEF_BOOL(_enable_pkt_nio, OB_CLUSTER_PARAMETER, "True",
|
||||
"enable pkt-nio, the new RPC framework"
|
||||
"Value: True:turned on; False: turned off",
|
||||
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
|
||||
Reference in New Issue
Block a user