碎片整理配置
GlobalCache提供读缓存磁盘空间碎片整理功能,可以提升部分场景的读缓存命中率,建议在需要提升读缓存命中率时开启。开启方法如下:
- 修改/opt/gcache/node_config.xml中smart_cache_defragment_switch配置项,把0修改为1。
<smart_cache_defragment_switch>1</smart_cache_defragment_switch>
- 重启对应节点的GlobalCache服务。
sudo systemctl restart globalcache.service
父主题: 使用Global Cache