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

Prevent duplicate MC search peers #867

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

jmeixensperger
Copy link
Contributor

Similar issue described in: #864

The monitoring console role performs 2 peering steps:

  1. When indexer clustering is enabled, peer the cluster master. This automatically registers indexers as search peers
  2. Manually add every instance as a search peer

This caused duplicate search peers for the indexers, where 1 set of search peers always has the status Down / Sick. This ultimately causes checks in adding_peers.yml to fail.

This PR makes the following changes:

  • change the order of above steps so that peering the cluster master happens first
  • before adding the remaining search peers, check for existing peers and remove them from our target list

@jmeixensperger jmeixensperger requested a review from a team as a code owner November 21, 2024 21:54
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