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

Fix(evm-block-recovery): Load block ids by small chunks. #354

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

Tirka
Copy link
Collaborator

@Tirka Tirka commented Aug 21, 2022

No description provided.

start_slot, limit
))?;
let mut start_slot = start_slot;
let mut limit = (end_slot - start_slot) as usize;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check overflow?

pub async fn find_native(ledger: LedgerStorage, start_slot: u64, limit: usize) -> Result<()> {
log::info!("Looking for missing Native Blocks. start slot {start_slot}, limit {limit}");
pub async fn find_native(ledger: LedgerStorage, start_slot: u64, end_slot: u64) -> Result<()> {
const LOAD_CHUNK_SIZE: usize = 500_000;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add metrics info for this constant:

  1. How much data bigtable produce in response?
  2. How long bigtable process request?
  3. How long local cpu process this chunk?
  4. What cpu is used vendor/clock.

@Tirka Tirka merged commit 4e0b471 into velas:develop Aug 24, 2022
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