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

[BUG] Non remote indices can get allocated to nodes with search role and no data role #6418

Closed
dgilling opened this issue Feb 21, 2023 · 1 comment · Fixed by #6689
Closed
Assignees
Labels
bug Something isn't working distributed framework

Comments

@dgilling
Copy link

Describe the bug
A clear and concise description of what the bug is.
Using OS 2.4.1 with searchable snapshots enabled, if a cluster has a set of nodes with data role and a set of nodes with search role, non remote indices can get allocated to the search nodes.

To Reproduce
Steps to reproduce the behavior:

  1. Create cluster containing both search and data nodes (i.e one has node.roles=search and one has node.roles=data)
  2. Have no other allocation filters other than defaults
  3. Restore both local and remote indices initially to the respective nodes
  4. Reallocation will gradually rebalance non remote indices from the data nodes to the search role.

Expected behavior
A clear and concise description of what you expected to happen.
If a node only has the role search and does not also contain data, only remote indices should allocate to it.
While the search node can service the non remote indices fine, it's not well documented or expected this occurs. A user may have defined lower memory/hardware requirements for search nodes.

** As a workaround, one can set a custom attribute on search nodes and use that for index level allocation.**

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS] Ubuntu
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@kotwanikunal
Copy link
Member

Hey @dgilling! This issue was fixed with #6689 and backported to 2.x with #6718.
Please reopen if you still come across the issue post these fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants