Defragmentation Configuration
Global Cache provides the defragmentation function for read cache drive space to improve the read cache hit ratio in some scenarios. You can enable this function as required. To enable this function, perform the following steps:
- Change the value of smart_cache_defragment_switch in /opt/gcache/node_config.xml from 0 to 1.
<smart_cache_defragment_switch>1</smart_cache_defragment_switch>
- Restart the Global Cache service on the corresponding node.
sudo systemctl restart globalcache.service
Parent topic: Using Global Cache