[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

@ -131,6 +131,7 @@ public:
void print_tenant_ctx_memory_usage(uint64_t tenant_id) const;
void print_tenant_memory_usage(uint64_t tenant_id) const;
void print_malloc_sample(uint64_t tenant_id) const;
int set_tenant_ctx_idle(
const uint64_t tenant_id, const uint64_t ctx_id, const int64_t size, const bool reserve = false);
int64_t sync_wash(uint64_t tenant_id, uint64_t from_ctx_id, int64_t wash_size);
@ -252,6 +253,8 @@ public:
bool restore_;
};
extern int64_t mtl_id();
} // end of namespace lib
} // end of namespace oceanbase