
As shown in the preceding figure, the total memory of OceanBase Database is a proportion of the memory of the server and can be configured to an absolute value. Some of the memory is used for system running, which indicates the reserved memory space on the OBServer node, and some for tenants. A tenant is equivalent to an instance in a conventional database. Except for the sys tenant, other tenants share the same memory modules. The sys tenant does not have a corresponding meta tenant and its memory consists of a MemStore for storing incremental data and a KVCache. Each user tenant has a corresponding meta tenant. Therefore, the memory for a user tenant consists of the memory for the user tenant and the memory for the corresponding meta tenant. Both the memory for the user tenant and the memory for the corresponding meta tenant consist of a MemStore for storing incremental data and a KVCache.