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

Too many forwards #27713

Closed
aeyakovenko opened this issue Sep 10, 2022 · 2 comments
Closed

Too many forwards #27713

aeyakovenko opened this issue Sep 10, 2022 · 2 comments
Assignees
Labels
stale [bot only] Added to stale content; results in auto-close after a week. validator Issues that relate to the validator

Comments

@aeyakovenko
Copy link
Member

Problem

Under load banking state is generating 100k+ forwards per second

Proposed Solution

Limit the forwarders rate to something reasonable like 10k per second

Discussion: https://discord.com/channels/428295358100013066/689412830075551748/1018215363068055562
image

@aeyakovenko
Copy link
Member Author

Tag @taozhu-chicago @sakridge

@tao-stones tao-stones self-assigned this Sep 11, 2022
@tao-stones
Copy link
Contributor

Maybe it is better to measure "number of CUs forwarded" instead of "number of Transactions forwarded", especially forwarding is by account CU limits.

Current static setting that impact forward rate are:

  1. forwarder buffer size: it is set to forward up to 50 blocks, equivalent up to 12K transactions all with default 200_000 CUs (mainly to accommodate txs without ComputeBudget::Requested_CU ix).
  2. max rate limit: 12 MB outbound limit per second const MAX_BYTES_PER_SECOND: usize = 12_000_000;, equivalent to ~10K TXs per sec.

Can reduce forward queue (#1) to 10 blocks, or even lower to just 4 blocks. Will look into rate limit.

@sakridge sakridge added the validator Issues that relate to the validator label Oct 21, 2022
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 23, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale [bot only] Added to stale content; results in auto-close after a week. validator Issues that relate to the validator
Projects
None yet
Development

No branches or pull requests

3 participants