Repository navigation
[prober] Improve inter-probe wait for large interval probes - #1071
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The way we spread probes is like this:
We arrange probes into interval buckets. Then:
This behavior was initially introduced for high frequency native probes (<2s interval) that's why we capped inter-probe gap at 2s and interval bucket start delay at 10s. Idea was that 2s gap should be good enough for native probe types (e.g. HTTP) from performance impact point of view.
Now, with the introduction of browser probe types, this doesn't hold true. Browser probes require a ton of memory and CPU, and they usually have a higher interval, say 2-15min. If we have 6 browser probes as 10 min interval, we don't want them to start at 2s gap. This PR raise the max gap from 2s to 1min. We don't want this gap to be too high as the last probe in the interval bucket will start after (n-1)*gapDuration, moreover we may not benefit from a gap greater than 1m.
(Note to self: We should probably make this inter probe gap configurable.)
Fixes: #1070