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(blooms): Initialize bloom gateway client only once (backport release-3.4.x) #16268

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

loki-gh-app[bot]
Copy link
Contributor

@loki-gh-app loki-gh-app bot commented Feb 14, 2025

Backport e271e22 from #15994


What this PR does / why we need it:

The bloom gateway client is used both in the bloom builder and in the index gateways. When running Loki in SSD mode, both services are part of the backend target, and therefore the client is initialised twice, leading to duplicate metrics registration and a subsequent panic.

This commit extracts the initialisation of the bloom gateway client into a separate service that is started once and becomes a dependency of both bloom builder and index gateway.

Which issue(s) this PR fixes:

Fixes: #14083

The bloom gateway client is used both in the bloom builder and in the index gateways. When running Loki in SSD mode, both services are part of the backend target, and therefore the client is initialised twice, leading to duplicate metrics registration and a subsequent panic.

This commit extracts the initialisation of the bloom gateway client into a separate service that is started once and becomes a dependency of both bloom builder and index gateway.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
(cherry picked from commit e271e22)
@loki-gh-app loki-gh-app bot requested a review from a team as a code owner February 14, 2025 05:08
@loki-gh-app loki-gh-app bot added backport size/M type/bug Somehing is not working as expected labels Feb 14, 2025
@loki-gh-app loki-gh-app bot requested a review from chaudum February 14, 2025 05:08
@ashwanthgoli ashwanthgoli merged commit 1b9829b into release-3.4.x Feb 14, 2025
64 checks passed
@ashwanthgoli ashwanthgoli deleted the backport-15994-to-release-3.4.x branch February 14, 2025 06:44
@Nimesh199398
Copy link

backport-15994-to-release-3.4.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport size/M type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants