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

feat(distributor): add experimental memberlist kvStore for ha_tracker #10054

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NickAnge
Copy link
Contributor

@NickAnge NickAnge commented Nov 29, 2024

What this PR does

This PR enables experimental memberlist kvStore for the ha_tracker. We can change memberlist parameters through -memberlist-* flag

Important

Setting this PR to draft until we merge #10020 and grafana/dskit#612, and we can start testing

Which issue(s) this PR fixes or relates to

Part of https://github.com/grafana/pir-actions/issues/94

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@NickAnge NickAnge force-pushed the nickange/ha_tracker/enable_memberlist_experimental branch from 2d750f1 to 3b2f0db Compare November 29, 2024 10:40
CHANGELOG.md Outdated Show resolved Hide resolved
@NickAnge NickAnge force-pushed the nickange/ha_tracker/enable_memberlist_experimental branch from 3b2f0db to 3b4d8c7 Compare December 2, 2024 16:21
@NickAnge NickAnge requested a review from aldernero December 2, 2024 20:01
@@ -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())
Copy link
Contributor Author

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

@NickAnge NickAnge marked this pull request as ready for review December 3, 2024 08:25
@NickAnge NickAnge requested review from tacole02 and a team as code owners December 3, 2024 08:25
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@tacole02 tacole02 left a 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 !

CHANGELOG.md Outdated Show resolved Hide resolved
@NickAnge NickAnge force-pushed the nickange/ha_tracker/enable_memberlist_experimental branch from 94e86e8 to bc877f8 Compare December 4, 2024 09:12
@chencs
Copy link
Contributor

chencs commented Dec 10, 2024

The CHANGELOG has just been cut to prepare for the next release. Please rebase main and eventually move the CHANGELOG entry added / updated in this PR to the top of the CHANGELOG.md document. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants