generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [juicefs] fix worker cache when set option (#2563) * fix worker cache when set option Signed-off-by: zwwhdls <[email protected]> * update changelog in chart Signed-off-by: zwwhdls <[email protected]> * fix unittest Signed-off-by: zwwhdls <[email protected]> --------- Signed-off-by: zwwhdls <[email protected]> Signed-off-by: cheyang <[email protected]> * fix multi cache dir (#2639) * fix multi cache dir Signed-off-by: zwwhdls <[email protected]> * fix unit test --------- Signed-off-by: zwwhdls <[email protected]> Signed-off-by: cheyang <[email protected]> * [Enhancement]CSI plugin checks mount point liveness before binding mount points (#2703) * Clean up broken mount point when NodeStageVolume Signed-off-by: dongyun.xzh <[email protected]> * Check mount point aliveness when NodePublishVolume Signed-off-by: dongyun.xzh <[email protected]> * Clean up broken mount point when NodeStageVolume Signed-off-by: dongyun.xzh <[email protected]> * Fix cleaning logic Signed-off-by: dongyun.xzh <[email protected]> --------- Signed-off-by: dongyun.xzh <[email protected]> Signed-off-by: cheyang <[email protected]> * Prettify error messages for exec.Commands in Fluid (#2718) * Prettify error log message when calling NodePublishVolume Signed-off-by: dongyun.xzh <[email protected]> * Prettify error logs when calling helm-related funcs Signed-off-by: dongyun.xzh <[email protected]> * Use instead `errors.As` Signed-off-by: dongyun.xzh <[email protected]> * Use instead `errors.As` Signed-off-by: dongyun.xzh <[email protected]> * Set higher log level for helm exec Signed-off-by: dongyun.xzh <[email protected]> --------- Signed-off-by: dongyun.xzh <[email protected]> Signed-off-by: cheyang <[email protected]> * update mount to check mountinfo, To #48327952 Signed-off-by: cheyang <[email protected]> * update mount to check mountinfo, To #48327952 Signed-off-by: cheyang <[email protected]> * Build docker images for v0.8.5, To #48327952 Signed-off-by: cheyang <[email protected]> --------- Signed-off-by: zwwhdls <[email protected]> Signed-off-by: cheyang <[email protected]> Signed-off-by: dongyun.xzh <[email protected]> Co-authored-by: Weiwei <[email protected]> Co-authored-by: TzZtzt <[email protected]>
- Loading branch information
1 parent
d8a8bba
commit 5aae5a0
Showing
25 changed files
with
1,083 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# JuiceFSRuntime 缓存配置 | ||
|
||
如何在 Fluid 中使用 JuiceFS,请参考文档[示例 - 如何在 Fluid 中使用 JuiceFS](juicefs_runtime.md)。本文讲述所有在 Fluid 中有关 JuiceFS 的缓存相关配置。 | ||
|
||
## 设置多个路径缓存 | ||
|
||
缓存路径在 JuiceFSRuntime 中的 tiredstore 设置,worker 和 fuse pod 共享相同的配置。 | ||
|
||
注意:JuiceFS 支持多路径缓存,不支持多级缓存。 | ||
|
||
```yaml | ||
apiVersion: data.fluid.io/v1alpha1 | ||
kind: JuiceFSRuntime | ||
metadata: | ||
name: jfsdemo | ||
spec: | ||
replicas: 1 | ||
tieredstore: | ||
levels: | ||
- mediumtype: SSD | ||
path: /mnt/cache1:/mnt/cache2 | ||
quota: 40Gi | ||
low: "0.1" | ||
``` | ||
其中: | ||
- `spec.tiredstore.levels.path` 可设置为多个路径,以 `:` 分隔,缓存会被分配在这里设置的所有路径下;但不支持通配符; | ||
- `spec.tiredstore.levels.quota` 为缓存对象的总大小,与路径多少无关; | ||
- `spec.tiredstore.levels.low` 为缓存路径的最小剩余空间比例,无论缓存是否达到限额,都会保证缓存路径的剩余空间; | ||
- `spec.tiredstore.levels.mediumtype` 为缓存路径的类型,目前支持 `SSD` 和 `MEM`。 | ||
|
||
|
||
## 单独设置 worker 的缓存路径 | ||
|
||
默认情况下,worker 和 fuse 的缓存路径都在 `spec.tiredstore.levels.path` 中设置,但是也可以单独设置 worker 的缓存路径。 | ||
|
||
```yaml | ||
apiVersion: data.fluid.io/v1alpha1 | ||
kind: JuiceFSRuntime | ||
metadata: | ||
name: jfsdemo | ||
spec: | ||
worker: | ||
options: | ||
"cache-dir": "/mnt/cache1:/mnt/cache2" | ||
tieredstore: | ||
levels: | ||
- mediumtype: MEM | ||
path: /dev/shm | ||
quota: 500Mi | ||
low: "0.1" | ||
``` | ||
|
||
其中: | ||
- `spec.worker.options` 为 worker 的挂载参数,缓存路径以 `cache-dir` 为 key,以 `:` 分隔的多个路径; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.