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: EXC-1815: Fix sandbox processes metric #3527

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

berestovskyy
Copy link
Contributor

@berestovskyy berestovskyy commented Jan 20, 2025

The monitoring thread may collect information about each sandbox process for a few seconds. Consequently, metrics scraping might occur during this collection phase, leading to an underreporting of the number of sandboxes.

This PR addresses this issue by:

  1. Collecting metrics into small vectors of f64 values. This allows for more efficient and consistent data gathering.
  2. Observing the metrics within a tight loop. This ensures that the latest and most accurate data is captured.

While this approach may not completely eliminate the possibility of an incomplete sandbox count, it should significantly reduce the likelihood of this occurring.

The monitoring thread may collect information about each sandbox process for a few seconds.
Consequently, metrics scraping might occur during this collection phase,
leading to an underreporting of the number of sandboxes.

This PR addresses this issue by:

1. Collecting metrics into small vectors of `f64`` values. This allows for more efficient
   and consistent data gathering.
2. Observing the metrics within a tight loop. This ensures that the latest and most accurate
   data is captured.

While this approach may not completely eliminate the possibility of an incomplete sandbox count,
it should significantly reduce the likelihood of this occurring.
@github-actions github-actions bot added the fix label Jan 20, 2025
@berestovskyy berestovskyy marked this pull request as ready for review January 21, 2025 09:27
@berestovskyy berestovskyy requested a review from a team as a code owner January 21, 2025 09:27
@berestovskyy berestovskyy added this pull request to the merge queue Jan 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
@berestovskyy berestovskyy added this pull request to the merge queue Jan 22, 2025
Merged via the queue into master with commit 49e2de0 Jan 22, 2025
29 checks passed
@berestovskyy berestovskyy deleted the andriy/exc-1815-fix-sanbox-metrics branch January 22, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants