What happens when multiple juicefs processes in different containers are mounted to the same directory #1054
-
Hi @davies, What happens when multiple juicefs processes in different containers on the same host are mounted to the same directory? Processes can use each other's caches or downloading the same data repeatedly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@chenshibin-vip When the processes use the same cache directories, they can share the cached data in theory. Because there is index of cached blocks in their memory, so they don't know whether a block a cached by other process or not. The process will scan the cached blocks in every N hours (hardcoded), after the re-scan, they can know the cached blocks from other processes. |
Beta Was this translation helpful? Give feedback.
@chenshibin-vip When the processes use the same cache directories, they can share the cached data in theory. Because there is index of cached blocks in their memory, so they don't know whether a block a cached by other process or not. The process will scan the cached blocks in every N hours (hardcoded), after the re-scan, they can know the cached blocks from other processes.