I was able to achieve it myself. In case it might be useful for someone
else looking for an answer.
Found 2 ways of doing it.
1. Disable cluster routing and manually assign index to a node
- cluster.routing.allocation.enable: none
- POST _cluster/reroute
{
"commands" : [
{
"allocate" : {
"index" : "98", "shard" : 0, "node" : "Amphibius",
"allow_primary":true
}
}
]
}
2. Using routing
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/index-modules-allocation.html
This will make sure the index is created only on a node with a specific
tag.
- cluster.routing.allocation.enable:"all"
- set the node.tag.. say appUUID229, and create an index with
appropriate routing
GET /229
{
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index.routing.allocation.include.tag":"appUUID229"
}
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6e4b75b0-7a48-4c3a-accf-bd17f406d2e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.