Is it possible to isolate search quesries to a single node

I have a job that makes heavy use to ES, to the point that it affects the
cluster. Is it possible to:

  • add a replica
  • force the extra replica to a specific node
  • isolate some of the queries to that particular node?

Thanks.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2815f221-4828-4382-a246-97973cd98709%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You're looking for custom
routing: Elasticsearch Platform — Find real-time answers at scale | Elastic

Some good blog posts on it here
too: http://exploringelasticsearch.com/book/advanced-techniques/routing.html
& Elasticsearch Platform — Find real-time answers at scale | Elastic

On Monday, March 10, 2014 3:39:06 PM UTC, Yves Dorfsman wrote:

I have a job that makes heavy use to ES, to the point that it affects the
cluster. Is it possible to:

  • add a replica
  • force the extra replica to a specific node
  • isolate some of the queries to that particular node?

Thanks.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b4ab46f3-b77b-41c6-b9e4-a405c2361cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You can dynamically add (or reduce) a replica on an index, like:

PUT localhost:9200/index/_settings
{ "index.number_of_replicas": 1 }

You can also force the _search to go to specific areas in your cluster
using the preference parameter:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-preference.html

Using the right cluster shard allocation awareness strategy, you might be
able to achieve forcing a replica to wherever you want:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-cluster.html#shards-allocation

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2144a720-d4b0-4740-bfd8-f71fa9403fb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.