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

separate ipfs mount into its own separate binary #2148

Open
whyrusleeping opened this issue Jan 2, 2016 · 3 comments
Open

separate ipfs mount into its own separate binary #2148

whyrusleeping opened this issue Jan 2, 2016 · 3 comments
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue

Comments

@whyrusleeping
Copy link
Member

It might be nice to have ipfs-mount be a separate binary called through the same mechanism as ipfs update. I don't think we will hit any performance issues with all I/O being done through http rpc, but it might be worth the effort to separate out that code from the rest of the daemon.

@RichardLitt RichardLitt added help wanted Seeking public contribution on this issue difficulty: moderate labels Jan 6, 2016
@jbenet
Copy link
Member

jbenet commented Jan 13, 2016

I like the idea in general.

It will be painful unless we use some sort of no copy ipc. Fuse is already
slow and will get slower piping through another rpc later. It will get bad
because Kernel scheduling is now he arbiter not golang runtime.

Let's investigate ipc-- I want it for exo transports in libp2p
On Sat, Jan 2, 2016 at 06:30 Jeromy Johnson [email protected]
wrote:

It might be nice to have ipfs-mount be a separate binary called through
the same mechanism as ipfs update. I don't think we will hit any
performance issues with all I/O being done through http rpc, but it might
be worth the effort to separate out that code from the rest of the daemon.


Reply to this email directly or view it on GitHub
#2148.

@RichardLitt RichardLitt added exp/expert Having worked on the specific codebase is important and removed difficulty: moderate labels Feb 2, 2016
@RichardLitt RichardLitt added help wanted Seeking public contribution on this issue and removed help wanted Seeking public contribution on this issue labels May 31, 2016
@elitak
Copy link

elitak commented Sep 21, 2017

I'd like this for purposes of sharing a repository on the same host between VMs/containers. They can already connect to the same API endpoint, using the --api option, but ipfs mount mounts locally to the daemon, when it should instead mount wherever the command is run.

Also, the binary does not have to be independent of the main one. The "mount-daemon" mode could be invoked via something like ipfs --api <remote-api-endpoint> mount-daemon --ipfs-mtpt=/ipfs --ipns-mtpt=/ipns --allowOther. Probably this mode should use none of the config file, if possible, and not require local initialization. Wrapping this invocation in a systemd unit (or whatever downstream maintainers want to do to manage the daemon) would be ideal, I think.

@whyrusleeping
Copy link
Member Author

@elitak I like that idea a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/expert Having worked on the specific codebase is important help wanted Seeking public contribution on this issue
Projects
None yet
Development

No branches or pull requests

4 participants