Skip to content

Conversation

njgheorghita
Copy link
Contributor

@njgheorghita njgheorghita commented Apr 9, 2024

What was wrong?

Era1 files can get pretty large, and storing the entire deserialized object in memory can overwhelm our bridge nodes.

How was it fixed?

Iter over block tuples rather than store entire Era1 object in memory

Using kurtosis to gossip epoch #1601:

Bridge node ram usage w/ current master branch
Screenshot 2024-04-09 at 1 13 27 PM
Bridge node ram usage w/ this pr
Screenshot 2024-04-09 at 1 28 46 PM

To-Do

@njgheorghita njgheorghita force-pushed the stream-era1 branch 3 times, most recently from 67e830f to 9a4b6af Compare April 9, 2024 17:43
@njgheorghita njgheorghita marked this pull request as ready for review April 9, 2024 17:45
@njgheorghita njgheorghita requested a review from KolbyML April 9, 2024 17:45
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit:

Comment on lines 168 to 169
error!("Failed to get epoch from era1 file: {e}");
return;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
error!("Failed to get epoch from era1 file: {e}");
return;
panic!("Failed to get epoch from era1 file: {e}");

Wouldn't this make more sense as a panic! as this ends the program either way?

@njgheorghita njgheorghita merged commit 778415d into ethereum:master Apr 9, 2024
@njgheorghita njgheorghita deleted the stream-era1 branch April 9, 2024 18:06
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