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: not owned stream count #13030

Merged
merged 1 commit into from
May 24, 2024

Conversation

vlad-diachenko
Copy link
Contributor

@vlad-diachenko vlad-diachenko commented May 24, 2024

What this PR does / why we need it:

added an additional field to track the count of not-owned streams count, otherwise when recalculating job updates ownedStreamCount and not-owned streams are actually flushed, and the counter will contain the wrong value because it's decremented every time the stream is flushed.

… otherwise when recalculating job updates ownedStreamCount and not owned streams are actually flushed, the counter will contain wrong value because it's decremented every time the stream is flushed.

Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
@vlad-diachenko vlad-diachenko requested a review from a team as a code owner May 24, 2024 10:17
@vlad-diachenko vlad-diachenko changed the title vlad.diachenko/not-owned-stream-counter fix: not owned stream count May 24, 2024
@vlad-diachenko vlad-diachenko enabled auto-merge (squash) May 24, 2024 12:20
Copy link
Contributor

@JordanRushing JordanRushing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vlad-diachenko vlad-diachenko merged commit 4901a5c into main May 24, 2024
60 checks passed
@vlad-diachenko vlad-diachenko deleted the vlad.diachenko/not-owned-stream-counter branch May 24, 2024 20:53
JordanRushing added a commit to JordanRushing/loki that referenced this pull request Jul 15, 2024
Ingester stream limits now take into account "owned streams" and periodically
update when the Ingester ring is changed. Non-owned streams are now also
flushed when this update takes place. The stream limit calculation has also been updated for improved
accuracy in multi-zone ingester deployments.

Relevant PRs:
- grafana#13006
- grafana#13030
- grafana#13232
- grafana#13103
- grafana#13231
- grafana#13254
- grafana#13314
- grafana#13321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants