This topic describes monitoring metrics related to the MemStore within an OceanBase Database tenant. You can specify a statistical period to query the MemStore statistics in a single zone or on a single OBServer of an OceanBase Database tenant.
total
Definition
The MemStore size prepared for a tenant in the specified statistical period.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| total | total_memstore_used | Megabytes |
Calculation expression
sum(ob_sysstat{stat_id="130001",@LABELS}) by (@GBLABELS) / 1048576
active
Definition
The size of active MemStores in the specified statistical period.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| active | active_memstore_used | Megabytes |
Calculation expression
sum(ob_sysstat{stat_id="130000",@LABELS}) by (@GBLABELS) / 1048576
trigger
Definition
The MemStore size that triggers a major compaction in the specified statistical period. If the active MemStore size reaches this metric value, a major compaction is triggered.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| trigger | major_freeze_trigger | Megabytes |
Calculation expression
sum(ob_sysstat{stat_id="130002",@LABELS}) by (@GBLABELS) / 1048576
limit
Definition
The maximum MemStore size allowed to be used. If the value of the total_memstore_used metric field is greater than or equal to this metric value, data cannot be written to the MemStores.
Description
| Metric | Metric field name | Unit |
|---|---|---|
| limit | memstore_limit | Megabytes |
Calculation expression
sum(ob_sysstat{stat_id="130004",@LABELS}) by (@GBLABELS) / 1048576