Note
This parameter is deprecated starting from V4.0.0.
Description
global_major_freeze_residual_memory specifies the threshold of the remaining memory for triggering a global major freeze. That is, when the remaining memory is less than this percentage, a global major freeze is triggered.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Int |
| Default value | 40 |
| Value range | [1, 99] |
| Effective upon OBServer node restart | No |
Considerations
global_major_freeze_residual_memory is a percentage. The base of the percentage is memory_limit - system_memory, which excludes the memory reserved for the internal 500 tenant of OceanBase Database. After a MemStore is frozen, the memory 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. Additionally, the memory that can be occupied by blockcache is also considered as the memory available for MemStore.
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.