-
Notifications
You must be signed in to change notification settings - Fork 544
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
feat(distributor): add experimental memberlist
kvStore for ha_tracker
#10054
feat(distributor): add experimental memberlist
kvStore for ha_tracker
#10054
Conversation
2d750f1
to
3b2f0db
Compare
3b2f0db
to
3b4d8c7
Compare
@@ -1023,6 +1023,7 @@ func (t *Mimir) initMemberlistKV() (services.Service, error) { | |||
// Append to the list of codecs instead of overwriting the value to allow third parties to inject their own codecs. | |||
t.Cfg.MemberlistKV.Codecs = append(t.Cfg.MemberlistKV.Codecs, ring.GetCodec()) | |||
t.Cfg.MemberlistKV.Codecs = append(t.Cfg.MemberlistKV.Codecs, ring.GetPartitionRingCodec()) | |||
t.Cfg.MemberlistKV.Codecs = append(t.Cfg.MemberlistKV.Codecs, distributor.GetReplicaDescCodec()) |
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.
FYI: Without adding the ReplicaDescCodec
and initializing the singleton for HATrackerConfig.KVStore.MemberlistKV
, it throws a panic error when using memberlist as a KV store.
Validated locally
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.
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.
Looks good! A few very minor suggestions. Thanks, @NickAnge !
94e86e8
to
bc877f8
Compare
The CHANGELOG has just been cut to prepare for the next release. Please rebase |
027b70f
to
5cd0b8f
Compare
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.
thanks again
…er (grafana#10054) * feat(distributor): add experimental `memberlist` kvStore for ha_tracker * enable memberlistKV singleton and add ReplicaDesc Codec * docs: add experimental information * docs: address PR comments * add information about non provided cleanup
What this PR does
This PR enables
experimental
memberlist
kvStore for the ha_tracker. We can change memberlist parameters through-memberlist-*
flagWhich issue(s) this PR fixes or relates to
Part of https://github.com/grafana/pir-actions/issues/94
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.