-
|
提出#3049的老哥自己找到了一个答案 #2644 —— 即umount可以阻塞等待所有writecache上传完成 那么在容器挂载(csi driver mount pod)场景下,挂载juicefs目录的容器(不是mount pod)内有没有手段等待指定目录的文件全部上传到远端对象存储?就比如#3049老哥问的sync这种命令。在容器内是无法执行umount的,也不适合直接进mount pod执行umount(可能有其他容器共用了这个mount pod) |
Beta Was this translation helpful? Give feedback.
Answered by
slimtom95
Jan 26, 2026
Replies: 2 comments 2 replies
-
|
可以通过调用fsync()来阻塞式的上传单个文件,此外,close()文件时也会把此文件的cache全部上传 |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
如果用sidecar + prestop结合一个很长的terminationGracePeriodSeconds,脚本再做些改造应该能基本满足需求了 https://juicefs.com/docs/csi/administration/going-production#client-write-cache |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
slimtom95
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果用sidecar + prestop结合一个很长的terminationGracePeriodSeconds,脚本再做些改造应该能基本满足需求了
https://juicefs.com/docs/csi/administration/going-production#client-write-cache