# Is it possible to isolate search quesries to a single node

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270>\
**Category:** Elasticsearch\
**Created:** [March 10, 2014, 3:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270 "2014-03-10T15:39:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yves_dorfsman/32/1106_2.png) [@Yves\_Dorfsman](https://discuss.elastic.co/u/Yves_Dorfsman)\
**Post date:** [March 10, 2014, 3:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270/1 "2014-03-10T15:39:06Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/2815f221-4828-4382-a246-97973cd98709%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![gkwelding](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gkwelding/32/1658_2.png) [@gkwelding](https://discuss.elastic.co/u/gkwelding)\
**Post date:** [March 10, 2014, 4:07pm UTC](https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270/2 "2014-03-10T16:07:42Z")

</div>

You're looking for custom  
routing: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-routing-field.html)

Some good blog posts on it here  
too: [http://exploringelasticsearch.com/book/advanced-techniques/routing.html](http://exploringelasticsearch.com/book/advanced-techniques/routing.html)  
& [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/customizing-your-document-routing/)

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/b4ab46f3-b77b-41c6-b9e4-a405c2361cef%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [March 10, 2014, 4:22pm UTC](https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270/3 "2014-03-10T16:22:08Z")

</div>

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](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](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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/2144a720-d4b0-4740-bfd8-f71fa9403fb0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:44am UTC](https://discuss.elastic.co/t/is-it-possible-to-isolate-search-quesries-to-a-single-node/16270/4 "2017-07-06T01:44:30Z")

</div>


