Note
This parameter is deprecated in V4.0.0.
Description
global_major_freeze_residual_memory specifies the threshold of the remaining memory for triggering a global major freeze. When the remaining memory is less than this threshold, a global major freeze is triggered.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 40 |
| Value range | [1, 99] |
| Effective upon OBServer node restart | No |
Considerations
global_major_freeze_residual_memory specifies the threshold of the remaining memory for triggering a global major freeze. When the remaining memory is less than this threshold, a global major freeze is triggered. The remaining memory is calculated as memory_limit - system_memory, which excludes the memory reserved for the internal 500 tenant of OceanBase Database. After a MemStore is frozen, it can be released after the merge is completed. Therefore, the memory occupied by the frozen MemStore is considered as the memory available for active_memstore and blockcache.
Notice
The value of global_major_freeze_residual_memory must be greater than that of global_write_halt_residual_memory. Otherwise, the global freeze trigger will not take effect, and the global freeze will only be triggered by the tenant.