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

Question: does/could the datastore support multiple ipfs instances? #19

Open
stephgosling opened this issue Jun 28, 2019 · 2 comments
Open
Labels
kind/support A question or request for support

Comments

@stephgosling
Copy link

Hi there,

Would the datastore support concurrent access (ether rw or ro) to a given bucket? that is to say, can two distinct ipfs processes (be they on the same computer, or in containers, different VMs etc.) share a bucket? In the js-ipfs implementation they apparently use an object within the bucket as a lockfile, but I've had a quick look at the code and don't really see why it would be the case here (tho I am no go programmer).

Any thoughts/guidance would be gratefully received!

@Stebalien
Copy link
Member

If it's read-only, yes. If it's read-write, you may run into issues with caching: go-ipfs will remember that you don't have a block and won't check again even if a different node wrote the block.

@Stebalien Stebalien added the kind/support A question or request for support label Jun 28, 2019
@stephgosling
Copy link
Author

@Stebalien thanks for the quick and succinct reply, I have a bunch more digging to do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants