Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exchanging Ceph for SeaweedFS #9

Open
c4lliope opened this issue Jan 13, 2024 · 4 comments
Open

Exchanging Ceph for SeaweedFS #9

c4lliope opened this issue Jan 13, 2024 · 4 comments

Comments

@c4lliope
Copy link

Hello @astro !
Also cc @spacekitteh

I am a member of HacDC, an american hackerspace inspired by the CCC. I had seen @astro's NixCon talk regarding microvm.nix, and i am searching for how to run the skyflake code in my company's lab - also in the hackerspace soon if possible.

As the talk ends, @astro says 'One does not simply do a major-version upgrade of Ceph'. This is similar to my experience, and Ceph seems to be a large and cumbersome dependency for this code.

Since i had no luck launching Ceph locally on my 3 nodes, i am choosing to use [SeaweedFS]; the commands to run a HA cluster are super simple and i accomplished them in less than an hour. My seaweed systemd config is here:
https://base.bingo/code/build/src/branch/mesh/nixos/process.nix#L31
[SeaweedFS]: https://github.com/seaweedfs/seaweedfs

Can you help me remake skyflake to run on the much simpler seaweedFS, and drop ceph as a dependency?

I looked around the nix modules, and my guess is the host nodes only need shared volumes for the nix store and the garbage collection roots. Are these volumes also shared inside the microVMs, or only used during the original vm builds? There should also be persistent VM storage, and that is a secondary concern.

I plan to spend some more days on this though I'm in a hurry to be back to application programming; i could use as much help as possible. Your approach seems much more dependable than kubernetes and i think reducing your dependency on Ceph can make your program much more accessible.

Glad for your help!
Callie

@astro
Copy link
Owner

astro commented Jan 14, 2024

Cool, I haven't had SeaweedFS on my radar! If you don't do the PR yourself, I would like to steal from your nix config.

Does SeaweedFS perform well for you? Does anything hang when one node disappears?

My intention behind this project's directory hierarchy was that there is space for more than one network filesystem in nixos-modules/storage/. Everything else should not require Ceph.

@c4lliope
Copy link
Author

c4lliope commented Jan 18, 2024

@astro - I lag a small number of hours behind you on our globe;
can you and I manage a call tomorrow during your early afternoon?

@astro
Copy link
Owner

astro commented Jan 18, 2024

I don't have Discord as there is no NixOS module for Discord servers yet. Are you on Matrix? microvm.nix has its own room: https://matrix.to/#/#microvm.nix:envs.net

@astro
Copy link
Owner

astro commented May 12, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants