Repository navigation
Conversation
Fail early on settings that would break or silently lose data: - v1 and v2 storage both disabled (moved from NOTES.txt so it lives with the other checks) - in v1+v2 mode, ingesterWeight and segmentWriterWeight must be numbers in [0, 1], and at least one must be 1. The write path router sends a request to a path when rand[0,1) <= its weight, so if both are below 1 a share of writes goes nowhere. - in v1+v2 mode, queryBackendFrom must be "auto" or a time format accepted by -enable-query-backend-from. Fixes grafana#4473 Signed-off-by: Ankit Jha <jhaankit373@gmail.com>
|
|
1 similar comment
|
|
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.
fixes #4473
adds a
pyroscope.validateArchitecturehelper that failshelm template/helm installon badarchitecture.storagevalues:ingesterWeightandsegmentWriterWeightmust be numbers in [0, 1], and at least one has to be 1.sendToBothdraws onerin [0, 1) per write and sends to each path whose weight is >= r, so with e.g. 0.5/0.5 about half the writes go nowhere and the client still gets a 200queryBackendFrommust beautoor a format-enable-query-backend-fromcan parse, otherwise query-frontend crashes on startupthe migration values are only checked in v1+v2 mode, since that's the only mode where the chart uses them.
numbers set with
--set(like 0.1) come through as strings, so the helper checks the text form instead of the type.rendered outputs don't change. added
unit/architecture_test.gowith valid and invalid cases, run bymake helm/check.the
queryBackendFromcheck is a bit beyond what the issue lists, happy to drop it if you'd rather keep this smaller.