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

Track num deleted batches with counter rather than num active batches #115

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Dec 8, 2023

Why are these changes needed?

The num of active batches can go up and down, so it has to be a Gauge.

However, Gauge isn't really a good fit for tracking active batches, because it will get set to 0 at Node start, which is wrong for accounting.

Here we track two things:

  • Accumulated batches added
  • Accumulated batches deleted

Both of them are counters (avoid using Gauge)

On the dashboard, the diff between the two is the num of active batches.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix jianoaix merged commit 319d87c into Layr-Labs:master Dec 12, 2023
5 checks passed
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.

2 participants