change cache_partition ratio
Format
change cache_partition ratio master_node_ratio=? default_partition_ratio=? max_memory_ratio=? write_ratio=? volume_ratio=? fs_cache_ratio=? san_cache_ratio=?
Parameters
Parameter |
Description |
Value |
---|---|---|
master_node_ratio=? | Ratio of the read partition used by the primary node in an engine to the total partition. | The value ranges from 0 to 99. |
default_partition_ratio=? | Ratio of the minimum partition capacity and partition capacity on the CMM page to the total capacity. | The value ranges from 0 to 99. |
max_memory_ratio=? | Ratio of maximum memory that can be used for partitions to the total memory. | The value ranges from 0 to 99. |
write_ratio=? | Ratio of write I/Os to the total I/Os. | The value ranges from 0 to 99. |
volume_ratio=? | Ratio of volume cache write quotas to the total write quotas. | The value ranges from 0 to 99. |
fs_cache_ratio=? | Volume cache ratio of file system and ROW LUN that can be used in cache partition. | The value ranges from 20 to 100. |
san_cache_ratio=? | Volume cache ratio of SAN that can be used in cache partition. | The value ranges from 20 to 100. |
Example
Change the read partition ratio of the primary node, default partition capacity ratio, ratio of maximum capacity for partitions, ratio of write I/Os, ratio of volume cache write quota, ratio of file system in volume cache and ratio of SAN in volume cache respectively to 50, 50, 50, 60, 17, 90 and 90.
developer:/>change cache_partition ratio master_node_ratio=50 default_partition_ratio=50 max_memory_ratio=50 write_ratio=60 volume_ratio=17 fs_cache_ratio=90 san_cache_ratio=90 WARNING:You are about to modify the quota ratio of SmartPartition. This operation will cause cache resource to be re-allocated, then system performance may be degraded. Suggestion:Before performing this operation, ensure that the correct parameter is configured. Have you read warning message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.