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

Loki: Remove ring client from the distributor #6622

Merged
merged 2 commits into from
Jul 11, 2022

Conversation

DylanGuedes
Copy link
Contributor

@DylanGuedes DylanGuedes commented Jul 7, 2022

What this PR does / why we need it:
Removes the ring client from the distributor.

It was originally added on #4938 because it was the only ring implementation with a HTTPHandler support (used for the ring page). Now that DSKit has support for the ring implementations (including the lifecycler) this isn't necessary anymore.

On a side note, I accidentally attached the IgnoreUnhealthyInstancesReplicationStrategy to it, which makes no sense to distributors.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
N/A

Checklist

  • Documentation added
  • Tests updated
  • Is this an important fix or new feature? Add an entry in the CHANGELOG.md.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md

@DylanGuedes DylanGuedes requested a review from a team as a code owner July 7, 2022 21:12
@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
-        distributor	-2.1%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

@DylanGuedes DylanGuedes merged commit 2bb2a2c into grafana:main Jul 11, 2022
lxwzy pushed a commit to lxwzy/loki that referenced this pull request Nov 7, 2022
Removes the ring client from the distributor.
- It was originally added on PR grafana#4938 because it was the only ring implementation with HTTPHandler support (used for the ring page). Now that DSKit has support for the other ring implementations (including the lifecycler) this isn't necessary anymore.
- It had an IgnoreUnhealthyInstancesReplicationStrategy attached to it, added by mistake
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.

3 participants