Skip to content

fix: diskspeed and metrics#4

Open
knudtty wants to merge 2 commits into
mainfrom
aaron/fix-diskspeed-and-metrics
Open

fix: diskspeed and metrics#4
knudtty wants to merge 2 commits into
mainfrom
aaron/fix-diskspeed-and-metrics

Conversation

@knudtty
Copy link
Copy Markdown
Contributor

@knudtty knudtty commented Mar 17, 2026

I had a twofold problem. 1 of the threads was pushing incredibly quickly, and this was caused by the reader being formed late and speed limit having a race condition. I fixed this by putting the new reader construction in the new worker constructor. Then metrics were messed up, due to the metrics queue buffer being too small. It's better to pull from the queue continuously rather than once per second, so I did that. Then the metrics are snapshotted and published async once per second, which should give a truer value

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.

1 participant