-
Notifications
You must be signed in to change notification settings - Fork 546
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
Internal docs for archive db apps #14269
Changes from 2 commits
ea79544
0ce11c8
27bac98
dbd5895
203fcfe
902efee
1cb8681
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,18 @@ | ||||||||||||||
Replayer cron jobs | ||||||||||||||
================== | ||||||||||||||
|
||||||||||||||
There are replayer cron jobs for mainnet, devnet, and berkeley. These | ||||||||||||||
jobs are run daily, to replayer a day's worth of transactions. | ||||||||||||||
|
||||||||||||||
Each cron job downloads the most recent archive dump corresponding to | ||||||||||||||
a network, and loads the data into Postgresql. That results in an | ||||||||||||||
archive database. The most recent replayer checkpoint file is | ||||||||||||||
downloaded, which provides the starting point for the replayer. When | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in my commit. |
||||||||||||||
the replayer runs, it creates new checkpoint files every 50 | ||||||||||||||
blocks. When the replayer finishes, it uploads the most recent | ||||||||||||||
checkpoint file, so it can be used in the following day's run. If | ||||||||||||||
there are any errors, the replayer logs are also uploaded. | ||||||||||||||
|
||||||||||||||
There is a separate checkpoint file bucket for each network. Bot the | ||||||||||||||
checkpoint files and error files for a given network are uploaded to | ||||||||||||||
the same bucket. | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in my own commit. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,4 +1,13 @@ | ||||||
(* missing_blocks_auditor.ml -- report missing blocks from an archive db *) | ||||||
(* missing_blocks_auditor.ml *) | ||||||
|
||||||
(* missing_blocks_auditor looks for blocks without parent blocks in an | ||||||
archive database. | ||||||
|
||||||
The app also looks for blocks marked as pending that are lower | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "The app" is the ML file that is the missing blocks auditor app? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The .ml file gets compiled to an executable program. "The app" is the executable. |
||||||
(have a lesser height) than the highest (most recent) canonical | ||||||
block. There can be such blocks if blocks are added when there are | ||||||
missing blocks in the database. | ||||||
*) | ||||||
|
||||||
open Core_kernel | ||||||
open Async | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in my own commit. I'm keeping the comma, though :-)