limit the hold of tenant 500, add ctx_id UNEXPECTED_IN_500 to mark uncertain_hold label

This commit is contained in:
tushicheng
2023-06-19 11:42:13 +00:00
committed by ob-robot
parent 5c33a662ae
commit d06678002e
16 changed files with 82 additions and 28 deletions

View File

@ -122,6 +122,9 @@ public:
int64_t get_urgent() const;
void set_reserved(int64_t bytes);
int64_t get_reserved() const;
#ifdef ENABLE_500_MEMORY_LIMIT
int set_500_tenant_limit();
#endif
int set_tenant_limit(uint64_t tenant_id, int64_t bytes);
int64_t get_tenant_limit(uint64_t tenant_id);
int64_t get_tenant_hold(uint64_t tenant_id);