[FEAT MERGE] Add anti-fallback checks for the memory of 500 tenant

This commit is contained in:
obdev
2023-04-25 02:41:25 +00:00
committed by ob-robot
parent c317071f7e
commit fdcaa9a932
135 changed files with 936 additions and 660 deletions

View File

@ -3017,7 +3017,7 @@ int ObTenantDagScheduler::create_worker()
{
int ret = OB_SUCCESS;
// TODO add upper worker cnt limit, each tenant should have a max_worker_cnt
ObTenantDagWorker *worker = OB_NEW(ObTenantDagWorker, ObModIds::OB_SCHEDULER);
ObTenantDagWorker *worker = OB_NEW(ObTenantDagWorker, SET_USE_500(ObModIds::OB_SCHEDULER));
if (OB_ISNULL(worker)) {
ret = OB_ALLOCATE_MEMORY_FAILED;
COMMON_LOG(WARN, "failed to allocate ObTenantDagWorker", K(ret));