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

Document and reduce time to sync for AWS images #5

Open
sbs2001 opened this issue Oct 17, 2023 · 3 comments
Open

Document and reduce time to sync for AWS images #5

sbs2001 opened this issue Oct 17, 2023 · 3 comments

Comments

@sbs2001
Copy link

sbs2001 commented Oct 17, 2023

Currently it takes significant time to sync the node.

@wileyj suggested to bootstrap the node from chainstate archive to speed up the process.

@wileyj
Copy link
Collaborator

wileyj commented Oct 17, 2023

Thanks for the issue!

This repo essentially uses this repo here to run the Stacks blockchain with an API: https://github.com/stacks-network/stacks-blockchain-docker

after this machine-image was created - Hiro added some public chainstate archives, which I've scripted as part of the docker repo: https://github.com/stacks-network/stacks-blockchain-docker/blob/master/scripts/seed-chainstate.sh

I think it would be trivial to trigger that script to run if and env var is added to the instance when it starts, i.e. SEED_CHAINSTATE=true etc.

@wileyj
Copy link
Collaborator

wileyj commented Oct 17, 2023

long term, i think we can use webhooks to trigger some builds (i.e. when there is a new version of the api or blockchain)

@sbs2001
Copy link
Author

sbs2001 commented Oct 17, 2023

Do you think we should have a github action to build+publish the image to AWS ? We could start by manually triggering it and eventually have webhooks triggering it as you said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants