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

option to warm up local consensus database. #3981

Merged
merged 1 commit into from
May 13, 2024

Conversation

jgreat
Copy link
Contributor

@jgreat jgreat commented May 10, 2024

Motivation

It can take a long time to pull down and populate the consensus lmdb from S3. This adds an option to the container entrypoint scripts to just run ledger-from-archive in a loop and populate the local db without bringing consensus online.

in standalone container: set MC_LEDGER_FROM_ARCHIVE_ONLY to any value
or
in helm: --set node.config.ledgerFromArchiveOnly="true"

  • add MC_LEDGER_FROM_ARCHIVE_ONLY option
  • remove old ledger-distribution zero,next,last logic

Copy link

⚠️ Downstream repo mobilecoinofficial/full-service failed to build. Check actions status for details.

@jgreat jgreat merged commit 98229cc into release/v6.0 May 13, 2024
97 checks passed
@jgreat jgreat deleted the jgreat/warm-up-offline-consensus branch May 13, 2024 18:03
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

Successfully merging this pull request may close these issues.

2 participants