Replies: 3 comments 1 reply
-
If nothing has been documented, I'd be happy to work on this with other Juicers as a side project..... |
Beta Was this translation helpful? Give feedback.
-
FWIW - I've been using Juicefs home dir (AWS S3 bucket) for about a year with no noticeable issues. Also, have stored many binaries in a sw/ directory (docker, flyio, java, linux tools, lua, node, tailscale, tcl, vim, etc), and using those binaries for day to day development. Paths are managed with modulefiles. In a similar way, could be nice to have juicefs make their binaries, docs, tools, available from an S3 bucket we could mount. |
Beta Was this translation helpful? Give feedback.
-
long reply.... I love it; it's become my household (and more) standard file system. The setup is pretty simple - just get a juicefs cloud account, juicefs script, S3 bucket, and attach as a Linux FUSE filesystem. Done. With this, I have access to exact same cloud filesystem from all my Linux and Windows devices. My linux devices include at home, at a cloud provider, I've also attached from e.g. google cloud shell, my fly.io dev deployments, and even WSL. Note this means that I don't "deploy" code to google cloud shell or fly.io, I just have to configure a run script to run whatever software I want. I have a spare Linux notebook server at home running Samba which is how my family general Windows machines can access all their files, our shared files, from one well known mount. Again performance is fine. Media files play with no problem. I have three buckets I make available from a single top-level directory, e.g. /jfs : /jfs/home, /jfs/sw, and /jfs/media -- home directories, installed software, media photos, music, movies. Some use cases:
Notes:
As far as it goes, my S3 buckets are in AWS, which suffices. Performance is fine, and the durability is unmatched (eleven 9s if fully configured). For my household stuff, durability is more important than just uptime, though I don't recall any problem ever reading/writing Juicefs due to AWS. I could conceivably get better performance with a more local (NYC area) cloud S3 provider but haven't needed to check this out. As far as paying juicefs.com for their metadata database, I'd rather pay the nominal monthly fee so as to reduce the number of services I have to admin at home. Setting up a redis or postgres cluster just isn't worth it - and I'd still need to back that up somewhere as well.
Note that the /jfs/sw filesystem is designed (manually) to be be append only - in other words, add new software, add new versions of software, effectively never update software, so local RO caching in theory should work. (With so many versions of software, that's what envmodules/modules helps with) And, finally, there is some software with hardcoded configurations that just doesn't fit in to my /jfs. Sometimes I have to install local; mostly I just drop that software and find something else.
So, working great for me. Don't even think about it much. Saves a lot of time when the files are just where you left them. (All that said, I've been using distributed file systems for 40 years and just expect it to work. Have installed enterprise DFS several times. Can't live without it. And interesting to see so many tools these days try to internalize file copying and caching - from npx copying scripts into your ~/.npm dir, etc, etc.) |
Beta Was this translation helpful? Give feedback.
-
Does anyone have an example/best-practices for having a home directory stored in JuiceFS?
Beta Was this translation helpful? Give feedback.
All reactions