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

[RW Separation] Assigned Replica Should Be Unassigned When Node Becomes Search dedicated and cluster lacks Sufficient Nodes #17423

Open
vinaykpud opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@vinaykpud
Copy link
Contributor

Describe the bug

When a node is designated as a search-dedicated node via cluster settings, any non-search replica shards assigned to that node should either be unassigned or moved to other available nodes in the cluster. However, currently, the replicas remain assigned to the search-dedicated node.

Related component

Search:Performance

To Reproduce

  1. Create a cluster with two nodes: node-0 and node-1.
  2. Create an index with 1 primary (P) and 1 replica (R). The shards will be assigned as follows:
    • P on node-0
    • R on node-1
  3. Make node-1 a search-dedicated node by running:
    curl -X PUT "http://localhost:9200/_cluster/settings" \
    -H "Content-Type: application/json" \
    -d '{
      "persistent": {
        "cluster.routing.allocation.search.replica.dedicated.include._name": "node-1"
      }
    }'
  4. Observe that the replica shard remains assigned to node-1 instead of being unassigned

Expected behavior

  • When a node is designated as a search-dedicated node, any non-search replica shards on that node should:
    • Be unassigned or
    • Be moved to an eligible node in the cluster.

Additional Details

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]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant