Can I lock the repo only during only while writing to the repo?

Hi,

I am trying to create an IPFS node and to change the repo to S3 while referring to the following example.

In the example, the repo is locked when the IPFS node starts and unlocked when the IPFS node stop. Can I lock the repo only during only while writing to the repo? Is such control possible in the first place? I’d be glad to know.

IPFS client locks the repo, so you should start changing IPFS today and make a pull request, introduce a feature to make it ok to not lock the repo

It is not possible and would multiply by 3 the write operations to S3. If you want to run several nodes with the same backend, you might as well modify them to not use locking at all (or ignore it), but they might break when concurrently operating over the same blocks, if they ever do that.

Thank you all for your kind answers. I understand.

1 Like