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

Randomize gossip node name by adding random suffix. #2715

Merged
merged 6 commits into from
Jun 15, 2020
Merged

Randomize gossip node name by adding random suffix. #2715

merged 6 commits into from
Jun 15, 2020

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Jun 11, 2020

This PR adds short random suffix to the memberlist node name. This helps with running multiple memberlist instances locally (node name defaults to hostname), or when using stateful sets, where pods reuse the names.

Gossip node name is mostly invisible to the user, but we log it, just in case it's logged by memberlist too.

Related to #2638

Checklist

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

Gossip node name is mostly invisible to the user,
but we log it, just in case it's logged by memberlist too.

This helps with running multiple memberlist instances locally,
or when using stateful sets.

Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
That plays nicely with our documentation tool.

Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM (modulo nit about the CHANGELOG)

@pstibrany pstibrany merged commit ee7bdb3 into cortexproject:master Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants