Skip to content

Comments

Enable HATracker memberlist#7284

Open
SungJin1212 wants to merge 5 commits intocortexproject:masterfrom
SungJin1212:Enable-HATracker-memberlist
Open

Enable HATracker memberlist#7284
SungJin1212 wants to merge 5 commits intocortexproject:masterfrom
SungJin1212:Enable-HATracker-memberlist

Conversation

@SungJin1212
Copy link
Member

This PR enables memberlist on HATracker.
It includes the implementations of a mergeable interface of ReplicaDesc.

Which issue(s) this PR fixes:
Fixes #7220

Checklist

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

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
EnableStartupSync bool `yaml:"enable_startup_sync"`

KVStore kv.Config `yaml:"kvstore" doc:"description=Backend storage to use for the ring. Please be aware that memberlist is not supported by the HA tracker since gossip propagation is too slow for HA purposes."`
KVStore kv.Config `yaml:"kvstore" doc:"description=Backend storage to use for the ring. Please be aware that memberlist support in the HA tracker is currently experimental since gossip propagation is too slow for HA purposes."`
Copy link
Contributor

Choose a reason for hiding this comment

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

We should reword it again. since gossip propagation is too slow for HA purposes is more for why we didn't allow memberlist before


// Tracker kv store only supports consul and etcd.
storeAllowedList := []string{"consul", "etcd"}
if slices.Contains(storeAllowedList, cfg.KVStore.Store) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This PR should only just extend allow list to memberlist instead of allowing all stores

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212
Copy link
Member Author

@yeya24
I updated the PR.
To allow for zero-downtime migrations when moving from consul/etcd to memberlist, I also included the multi.

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.

Enable Memberlist as valid HA-tracker store

2 participants