feat: only enalbe stress relief for the entire cluster together #1413
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.
Which problem is this PR solving?
When making distributed trace decisions, load is more evenly balanced across nodes in the cluster. This balanced load means that, ideally, each node should experience a similar level of stress.
Because of this, the entire cluster should activate stress relief mode collectively, rather than allowing individual nodes to enter stress relief independently. If a single node goes into stress relief on its own, it will lead to missing span information across the cluster. This discrepancy would result in inconsistent trace decisions between the stressed node and the rest of the cluster, potentially impacting the reliability of trace sampling decisions.
Short description of the changes
cluster_stress_level