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:mpool: prune excess messages before selection #10648

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Apr 11, 2023

We have observed some very high buildup in the mpool, which cannot be cleared fast enough due to pruning cooldown.
This apparently results in messages selection taking too long (10-20s).

This attempts to resolve the issue by eagerly pruning (regardless of cooldown) before selecting, when we have excess messages.

@vyzo vyzo requested a review from arajasek April 11, 2023 10:14
@vyzo vyzo requested a review from a team as a code owner April 11, 2023 10:14
@yhio
Copy link
Contributor

yhio commented Apr 12, 2023

@vyzo Lock may results in messages selection taking too long: #10330

@vyzo
Copy link
Contributor Author

vyzo commented Apr 12, 2023

yes we have a separate fix for that.

This is to ensure you can't ever select in an inordinately large set.

@vyzo vyzo merged commit a7379e2 into master Apr 12, 2023
@vyzo vyzo deleted the vyzo/fix/mpool-prune-select branch April 12, 2023 07:51
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

4 participants