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

Is there a way for multiple instances to share the snapshots folder? #8374

Open
dreadedhamish opened this issue Oct 5, 2023 · 3 comments
Open
Labels
imp3 Low importance

Comments

@dreadedhamish
Copy link

I have multiple instances running on the same machine, with snapshots stored on another drive. Currently when I point them both to the snapshots folder (using docker-compose - /mnt/12TB/blockchain/snapshots:/blockchain/execution/snapshots).
When I point them at the same folder the second erigon node will fail with:
openClient: mdbx_env_open: resource temporarily unavailable, label: downloader, trace: [kv_mdbx.go:262 downloader.go:471 downloader.go:90 backend.go:994 backend.go:298 node.go:115 main.go:70 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:38 proc.go:250 asm_amd64.s:1598]

Is there a way to share the snahshots folder?

@AskAlexSharov
Copy link
Collaborator

I will move downloader database out of snapshots folder.

@AskAlexSharov
Copy link
Collaborator

done: #8375
but still - I don't have any "receipt" on how 2 erigon instances can share snapshots folder. unless both of them using --snap.stop

External RPCDaemon can use same snapshots folder - because it subscribing to Erigon-events-stream about snapshots creation/deletion. But 2nd erigon node will not subscribe to this events-stream - unless - I implement this feature. Need to think about it.

@dreadedhamish
Copy link
Author

done: #8375 but still - I don't have any "receipt" on how 2 erigon instances can share snapshots folder. unless both of them using --snap.stop

running the second with snap.stop will be fine?

@yperbasis yperbasis added the imp3 Low importance label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imp3 Low importance
Projects
None yet
Development

No branches or pull requests

3 participants