Skip to content
Discussion options

You must be logged in to vote

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:

  • two clients can evict, rewrite, or clean cache entries without coordinating with each other;
  • file locking and rename semantics depend on the shared filesystem, not just JuiceFS;
  • a shared cache backend usually has worse latency/metadata performance than local SSD/NVMe;
  • one broken or full shared cache path can affect every client using it;
  • trou…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@renshunhang
Comment options

Answer selected by renshunhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants