mirror of
https://gitee.com/juicedata/JuiceFS.git
synced 2025-12-06 09:39:14 +08:00
docs: fix client parameter --write-back does not exist (#6082)
This commit is contained in:
@@ -147,7 +147,7 @@ The client will perform prefetch and cache automatically to improve sequence rea
|
||||
|
||||
Data downloaded from object storage, as well as small data (smaller than a single block) uploaded to object storage will be cached by JuiceFS Client, without compression or encryption. To achieve better performance on application's first read, use [`juicefs warmup`](../reference/command_reference.mdx#warmup) to cache data in advance.
|
||||
|
||||
When '--write-back' is not enabled, if the file system where the cache directory is located is not working properly, the JuiceFS client can return an error and downgrade to direct access to object storage. In the case of enable '--write-back', if the file system where the cache directory is located is abnormal and the read operation is stuck (such as some kernel-mode network file system), then JuiceFS will also get stuck together. This requires you to tune the underlying file system behavior of the cache directory to fail fast.
|
||||
When '--writeback' is not enabled, if the file system where the cache directory is located is not working properly, the JuiceFS client can return an error and downgrade to direct access to object storage. In the case of enable '--writeback', if the file system where the cache directory is located is abnormal and the read operation is stuck (such as some kernel-mode network file system), then JuiceFS will also get stuck together. This requires you to tune the underlying file system behavior of the cache directory to fail fast.
|
||||
|
||||
Below are some important options for cache configuration (see [`juicefs mount`](../reference/command_reference.mdx#mount) for complete reference):
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ JuiceFS 客户端会跟踪所有最近被打开的文件,要重复打开相同
|
||||
|
||||
JuiceFS 客户端会把从对象存储下载的数据,以及新上传的小于 1 个 block 大小的数据写入到缓存目录中,不做压缩和加密。如果希望保证应用程序首次访问数据的时候就能获得已缓存的性能,可以使用 [`juicefs warmup`](../reference/command_reference.mdx#warmup) 命令来对缓存数据进行预热。
|
||||
|
||||
在未开启 `--write-back` 时,如果缓存目录所在的文件系统无法正常工作时 JuiceFS 客户端能立刻返回错误,剔除缓存盘并降级成直接访问对象存储。但在开启 `--writeback` 的情况下,如果缓存目录所在的文件系统异常时体现为读操作卡死(如某些内核态的网络文件系统),那么 JuiceFS 也会随之一起卡住,这就要求你对缓存目录底层的文件系统行为进行调优,做到快速失败。
|
||||
在未开启 `--writeback` 时,如果缓存目录所在的文件系统无法正常工作时 JuiceFS 客户端能立刻返回错误,剔除缓存盘并降级成直接访问对象存储。但在开启 `--writeback` 的情况下,如果缓存目录所在的文件系统异常时体现为读操作卡死(如某些内核态的网络文件系统),那么 JuiceFS 也会随之一起卡住,这就要求你对缓存目录底层的文件系统行为进行调优,做到快速失败。
|
||||
|
||||
以下是缓存配置的关键参数(完整参数列表见 [`juicefs mount`](../reference/command_reference.mdx#mount)):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user