go-ds-s3 icon indicating copy to clipboard operation
go-ds-s3 copied to clipboard

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

Open stephgosling opened this issue 5 years ago • 2 comments

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!

stephgosling avatar Jun 28 '19 15:06 stephgosling

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 avatar Jun 28 '19 16:06 Stebalien

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

stephgosling avatar Jun 29 '19 22:06 stephgosling