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

Add GetWithRF() method to DynamicReplicationReadRing interface #304

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented May 31, 2023

What this PR does:

The newly created DynamicReplicationReadRing interfaces extends the ReadRing interface with the new function that allows for getting instances of the ring based on the provided replication factor, where in contrast the existing Get() function used the globally configured replication factor.

The new function allows for example for per-tenant replication factors.

Checklist

  • Tests updated
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

The newly created DynamicReplicationReadRing interfaces extends the
ReadRing interface with the new function that allows for getting
instances of the ring based on the provided replication factor, where in
contrast the existing Get() function used the globally configured
replication factor.

The new function allows for example for per-tenant replication factors.

Signed-off-by: Christian Haudum <[email protected]>
Signed-off-by: Christian Haudum <[email protected]>
chaudum added a commit to grafana/loki that referenced this pull request May 31, 2023
Pulls changes from grafana/dskit#304

Signed-off-by: Christian Haudum <[email protected]>
@chaudum chaudum marked this pull request as ready for review May 31, 2023 12:21
@@ -46,6 +46,7 @@
* [CHANGE] Cache: Remove the `context.Context` argument from the `Cache.Store` method and rename the method to `Cache.StoreAsync`. #273
* [FEATURE] Cache: Add support for configuring a Redis cache backend. #268 #271 #276
* [FEATURE] Add support for waiting on the rate limiter using the new `WaitN` method. #279
* [ENHANCEMENT] Add `GetWithRF()` function to DynamicReplicationReadRing interface. #304
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feature or Enhancement?

chaudum added a commit to grafana/loki that referenced this pull request Jun 1, 2023
Pulls changes from grafana/dskit#304

Signed-off-by: Christian Haudum <[email protected]>
@chaudum chaudum marked this pull request as draft June 20, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant