文档中心>数据加速器 GooseFS

数据缓存和元数据缓存

最近更新时间:2024-10-30 11:43:43

我的收藏

操作场景

本文介绍如何选择数据缓存和元数据缓存方面的参数。

操作步骤

打开/关闭数据缓存

在 GooseFSRuntime 中,打开数据缓存时 goosefs.worker.ufs.instream.cache.enabled: "true",该属性默认为 true。
可通过在 Runtime 中指定 goosefs.worker.ufs.instream.cache.enabled: "false" 来关闭缓存,如下所示:
apiVersion: data.fluid.io/v1alpha1
kind: GooseFSRuntime
metadata:
name: hadoop
spec:
replicas: 1
tieredstore:
levels:
- mediumtype: SSD
path: /mnt/disk1/
quota: 290G
high: "0.9"
low: "0.8"
properties:
goosefs.worker.ufs.instream.cache.enabled: "false"

打开元数据缓存

在 GooseFSRuntime 中,可以通过元数据缓存元数据信息。打开元数据缓存数可以指定 goosefs.user.metadata.cache.enabled: "true" ,该属性默认是 false。
具体如下:
apiVersion: data.fluid.io/v1alpha1
kind: GooseFSRuntime
metadata:
name: hadoop
spec:
replicas: 1
tieredstore:
levels:
- mediumtype: SSD
path: /mnt/disk1/
quota: 290G
high: "0.9"
low: "0.8"
properties:
goosefs.worker.ufs.instream.cache.enabled: "true"
goosefs.user.metadata.cache.enabled: "true"