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

Allow to disable shard allocations #1358

Closed
kimchy opened this issue Sep 23, 2011 · 0 comments
Closed

Allow to disable shard allocations #1358

kimchy opened this issue Sep 23, 2011 · 0 comments

Comments

@kimchy
Copy link
Member

kimchy commented Sep 23, 2011

Allow to suspend (replica) shard allocations using a specific setting. This can help with restarting a node. The setting will be updated using the cluster update settings API, and then the node can be restarted, and once it has joined back the cluster, enable it back.

Two settings will be exposed:

  • cluster.routing.allocation.disable_allocation: Allows to disable either primary or replica allocation. Note, a replica will still be promoted to primary if one does not exists.
  • cluster.routing.allocation.disable_replica_allocation: Allows to disable only replica allocation.

Both settings can be updated using the cluster update settings API.

@kimchy kimchy closed this as completed in d9d452a Sep 23, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant