Repository navigation
Question about JuiceFS cache configuration #7146
|
I set the cache directory of JuiceFS to a shared file storage mounted on the server. Putting performance aside, are there any potential issues in actual usage? |
Replies: 1 comment 1 reply
|
I would avoid using one shared writable cache directory from multiple JuiceFS clients. The cache is not part of the consistency model; it is a local acceleration layer, and the client generally expects to own the files it creates under its cache directory. The main risks are not data loss in JuiceFS itself, but operational problems around the cache:
If you must put it on shared storage, I would at least give every client its own subdirectory, for example In short: shared storage is fine for the backing object/data store, but the client cache should normally be local or isolated per client. If that matches your setup, marking this as answered would help future readers. |
I would avoid using one shared writable cache directory from multiple JuiceFS clients. The cache is not part of the consistency model; it is a local acceleration layer, and the client generally expects to own the files it creates under its cache directory.
The main risks are not data loss in JuiceFS itself, but operational problems around the cache: