-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add distributor ring page #4938
Conversation
pkg/distributor/http.go
Outdated
<p>Not running with Global Rating Limit - ring not being used by the Distributor.</p> | ||
</body> | ||
</html>` | ||
cortex_util.WriteHTMLResponse(w, noRingPage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanGuedes Can you please copy the WriteHTMLResponse
to our loki's util
package and use that instead?
Rationale is to avoid introducing anymore dependency from Cortex. Also we are trying to remove existing dependencies incrementally.
Particularly this PR tries to remove cortex/util
package dependency completely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, good catch! I just pushed a new commit fixing that, lmk what you think.
Need a lint on the new util. |
- This new IngestionRateStrat is used internally to represent the chosen ingestion rate strategy, to avoid using plain strings.
As of now, the distributor only has a pointer to its lifecycler. Since the ring HTTP handler isn't implemented for the lifecycler but it is for the ruler, this extends the distributor by also holding a ring instance.
0dbb7f1
to
d0f2417
Compare
Removes the ring client from the distributor. - It was originally added on PR #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
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
What this PR does / why we need it:
distributorsRing
todistributorsLifecycler
to avoid misleadWhich issue(s) this PR fixes:
Fixes #4937
Special notes for your reviewer:
Checklist
CHANGELOG.md
about the changes.