enable pkt-nio to separate RPC memory under tenants

This commit is contained in:
liucc1997
2023-05-11 10:19:11 +00:00
committed by ob-robot
parent caaed5132f
commit 4ead928e53
9 changed files with 51 additions and 16 deletions

View File

@ -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

View File

@ -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));