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

Add new FramedWrite with buffer limits and stats #4012

Merged
merged 11 commits into from
Mar 3, 2021
Merged

Add new FramedWrite with buffer limits and stats #4012

merged 11 commits into from
Mar 3, 2021

Conversation

pmnoxx
Copy link
Contributor

@pmnoxx pmnoxx commented Feb 25, 2021

We should limit the amount of memory each peer is using by limiting size of it's FrameWrite's buffer.
In addition for each PeerActor we will print stats to detect whenever we are not draining it.

@pmnoxx
Copy link
Contributor Author

pmnoxx commented Feb 25, 2021

I extracted unrelated changes into #4015

neard/src/config.rs Outdated Show resolved Hide resolved
chain/network/src/peer.rs Outdated Show resolved Hide resolved
utils/near-performance-metrics/src/stats_enabled.rs Outdated Show resolved Hide resolved
chain/jsonrpc/src/lib.rs Outdated Show resolved Hide resolved
chain/network/src/codec.rs Show resolved Hide resolved
chain/network/src/codec.rs Outdated Show resolved Hide resolved
chain/network/src/peer.rs Show resolved Hide resolved
Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

@pmnoxx
Copy link
Contributor Author

pmnoxx commented Mar 3, 2021

Please address https://github.com/near/nearcore/pull/4012/files#r585101813

done, all checks also pass

@pmnoxx pmnoxx self-assigned this Mar 3, 2021
@near-bulldozer near-bulldozer bot merged commit ef13a78 into near:master Mar 3, 2021
@pmnoxx pmnoxx deleted the piotr-monitor-write-buffer branch March 3, 2021 18:42
@pmnoxx
Copy link
Contributor Author

pmnoxx commented Mar 3, 2021

@bowenwang1996 bowenwang1996 mentioned this pull request Mar 8, 2021
3 tasks
bowenwang1996 pushed a commit that referenced this pull request Mar 11, 2021
We should limit the amount of memory each peer is using by limiting size of it's `FrameWrite's` buffer.
In addition for each `PeerActor` we will print stats to detect whenever we are not draining it.
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.

None yet

3 participants