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

statement-distribution high cpu usage #3744

Closed
sandreim opened this issue Mar 19, 2024 · 4 comments
Closed

statement-distribution high cpu usage #3744

sandreim opened this issue Mar 19, 2024 · 4 comments
Assignees
Labels
I2-bug The node fails to follow expected behavior.

Comments

@sandreim
Copy link
Contributor

This looks like a bug, the nodes aren't even in active set and still we see this usage pattern:

Screenshot 2024-03-19 at 14 23 41

https://grafana.teleport.parity.io/goto/UfZem2JIR?orgId=1

@sandreim sandreim added the I2-bug The node fails to follow expected behavior. label Mar 19, 2024
@alexggh
Copy link
Contributor

alexggh commented Mar 20, 2024

Interestingly enough after nodes have been restarted for upgrading to 1.9.0, statement-distribution looks unused.

Screenshot 2024-03-20 at 15 05 52

This feels like a small leak, unfortunately we don't have metrics going back, I'll keep on eye on the metric over-time to confirm it.

@alexggh
Copy link
Contributor

alexggh commented Apr 18, 2024

This seems to have happened again on one of our kusama validators after a few weeks

Screenshot 2024-04-18 at 12 57 27

I don't think it is a leak, looking at this dashboards it seems like we are doing a lot of polling somewhere, notice how the average poll time actually goes down and the number of them increases.

Screenshot 2024-04-18 at 13 02 05 Screenshot 2024-04-18 at 13 03 01

I suspect something is off with this next_retry and wakesup very often

let retry_request = v2::next_retry(request_manager).fuse();
,
although I don't have the data to back it up nor did I found any logic error that might get us into this state.

@alexggh alexggh self-assigned this Apr 18, 2024
@alexggh
Copy link
Contributor

alexggh commented Apr 18, 2024

And the fix: https://github.com/paritytech/polkadot-sdk/pull/4192/files

@sandreim
Copy link
Contributor Author

Fixed by #4192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior.
Projects
Status: Completed
Development

No branches or pull requests

2 participants