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

ci: db persistence for large index dbs #4603

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Conversation

conorsch
Copy link
Contributor

Describe your changes

Makes a few changes:

  • raises db storage 1GB -> 10GB
  • leaves db running in maintenanceMode, for dump/restore
  • increases available shm size for db container

Ideally we'd make the db persistence customizable, but this is good enough for now. Looks like 500k blocks maps to roughly 3.5GB of dbdump. We can adjust over time if we plan to keep running long-lived testnet chains.

The increased shm size is specifically to support large joins by e.g. the dex explorer frontend, otherwise db connection was reporting "could not resize shared memory segment".

Also includes indexing docs, to satisfy #4566.

Issue ticket number and link

Closes #4526. Closes #4566.

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    ci/docs only, no changes to app logic

Makes a few changes:

  * raises db storage 1GB -> 10GB
  * leaves db running in maintenanceMode, for dump/restore
  * increases available shm size for db container

Ideally we'd make the db persistence customizable, but this is good
enough for now. Looks like 500k blocks maps to roughly 3.5GB of dbdump.
We can adjust over time if we plan to keep running long-lived testnet
chains.

The increased shm size is specifically to support large joins by e.g.
the dex explorer frontend, otherwise db connection was reporting
"could not resize shared memory segment".

Refs #4526.
Collects some information from the cuiloa README [0], as well as some
generalized instructions captured in #4566, particularly the use of
`--ready-to-start` from #4499. Refs #4494, closes #4566.

[0] https://github.com/penumbra-zone/cuiloa/blob/dc4133f7b36706cdf5a3ee6b4e0fb2c09e5a8bb8/README.md
@conorsch conorsch merged commit 6f47537 into main Jun 13, 2024
13 checks passed
@conorsch conorsch deleted the make-testnet-dbs-persist branch June 13, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

document historical reindexing process for abci events ci: abci event databases do not persist
2 participants