# Problem controlling searching thread-pool

**URL:** <https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087>\
**Category:** Elasticsearch\
**Created:** [March 10, 2013, 3:30pm UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087 "2013-03-10T15:30:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomivaknin](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shlomivaknin](https://discuss.elastic.co/u/shlomivaknin)\
**Post date:** [March 10, 2013, 3:30pm UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/1 "2013-03-10T15:30:51Z")

</div>

Hey,

I followed this [http://www.elasticsearch.org/guide/reference/modules/threadpool.html](http://www.elasticsearch.org/guide/reference/modules/threadpool.html)to  
try and set a fixed thread-pool for queries. I put this snippet in  
elasticsearch.yml (using elastic 0.20.5):

threadpool:  
search:  
type: fixed  
size: 200  
queue\_size: 100  
reject\_policy: caller

The numbers are not final, just for testing.

In any case elastic didnt start up and nothing useful appeared in the  
logs.. am I missing something trivial?

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 10, 2013, 3:47pm UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/2 "2013-03-10T15:47:10Z")

</div>

try size less than queue\_size

On Sun, Mar 10, 2013 at 9:00 PM, Shlomi [shlomivaknin@gmail.com](mailto:shlomivaknin@gmail.com) wrote:

> Hey,
> 
> I followed this [http://www.elasticsearch.org/guide/reference/modules/threadpool.html](http://www.elasticsearch.org/guide/reference/modules/threadpool.html)to  
> try and set a fixed thread-pool for queries. I put this snippet in  
> elasticsearch.yml (using elastic 0.20.5):
> 
> threadpool:  
> search:  
> type: fixed  
> size: 200  
> queue\_size: 100  
> reject\_policy: caller
> 
> The numbers are not final, just for testing.
> 
> In any case elastic didnt start up and nothing useful appeared in the  
> logs.. am I missing something trivial?
> 
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![shlomivaknin](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shlomivaknin](https://discuss.elastic.co/u/shlomivaknin)\
**Post date:** [March 10, 2013, 5:02pm UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/3 "2013-03-10T17:02:24Z")

</div>

Hey, sorry, that was a typo..

threadpool:  
search:  
type: fixed  
size: 200  
queue\_size: 1000  
reject\_policy: caller

in my test, i want 100 threads, and a queue of 1000 requests.

Anything else?

On Sunday, March 10, 2013 5:47:10 PM UTC+2, Vineeth Mohan wrote:

> try size less than queue\_size
> 
> On Sun, Mar 10, 2013 at 9:00 PM, Shlomi \<[shlomi...@gmail.com](mailto:shlomi...@gmail.com) \<javascript:\>
> 
> > wrote:
> 
> > Hey,
> > 
> > I followed this [http://www.elasticsearch.org/guide/reference/modules/threadpool.html](http://www.elasticsearch.org/guide/reference/modules/threadpool.html)to  
> > try and set a fixed thread-pool for queries. I put this snippet in  
> > elasticsearch.yml (using elastic 0.20.5):
> > 
> > threadpool:  
> > search:  
> > type: fixed  
> > size: 200  
> > queue\_size: 100  
> > reject\_policy: caller
> > 
> > The numbers are not final, just for testing.
> > 
> > In any case elastic didnt start up and nothing useful appeared in the  
> > logs.. am I missing something trivial?
> > 
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 11, 2013, 8:28am UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/4 "2013-03-11T08:28:58Z")

</div>

I tried this on my machine and it worked well

threadpool:  
index:  
type: fixed  
size: 10  
queue\_size: 1000  
reject\_policy: caller

I know it sounds stupid , but can you make sure there is no white space  
before threadpool.

Thanks  
Vineeth

On Sun, Mar 10, 2013 at 10:32 PM, Shlomi [shlomivaknin@gmail.com](mailto:shlomivaknin@gmail.com) wrote:

> Hey, sorry, that was a typo..
> 
> threadpool:  
> search:  
> type: fixed  
> size: 200  
> queue\_size: 1000  
> reject\_policy: caller
> 
> in my test, i want 100 threads, and a queue of 1000 requests.
> 
> Anything else?
> 
> On Sunday, March 10, 2013 5:47:10 PM UTC+2, Vineeth Mohan wrote:
> 
> > try size less than queue\_size
> > 
> > On Sun, Mar 10, 2013 at 9:00 PM, Shlomi [shlomi...@gmail.com](mailto:shlomi...@gmail.com) wrote:
> > 
> > > Hey,
> > > 
> > > I followed this [http://www.elasticsearch.org/guide/reference/modules/threadpool.html](http://www.elasticsearch.org/guide/reference/modules/threadpool.html)to  
> > > try and set a fixed thread-pool for queries. I put this snippet in  
> > > elasticsearch.yml (using elastic 0.20.5):
> > > 
> > > threadpool:  
> > > search:  
> > > type: fixed  
> > > size: 200  
> > > queue\_size: 100  
> > > reject\_policy: caller
> > > 
> > > The numbers are not final, just for testing.
> > > 
> > > In any case elastic didnt start up and nothing useful appeared in the  
> > > logs.. am I missing something trivial?
> > > 
> > > 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 elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > 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).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![shlomivaknin](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shlomivaknin](https://discuss.elastic.co/u/shlomivaknin)\
**Post date:** [March 11, 2013, 2:04pm UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/5 "2013-03-11T14:04:21Z")

</div>

Thanks Vineeth,

the trivial thing that i missed was indeed whitespaces, not before the  
thread, but on the search line...

works now

On Monday, March 11, 2013 10:28:58 AM UTC+2, Vineeth Mohan wrote:

> I tried this on my machine and it worked well
> 
> threadpool:  
> index:  
> type: fixed  
> size: 10  
> queue\_size: 1000  
> reject\_policy: caller
> 
> I know it sounds stupid , but can you make sure there is no white space  
> before threadpool.
> 
> Thanks  
> Vineeth
> 
> On Sun, Mar 10, 2013 at 10:32 PM, Shlomi \<[shlomi...@gmail.com](mailto:shlomi...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hey, sorry, that was a typo..
> > 
> > threadpool:  
> > search:  
> > type: fixed  
> > size: 200  
> > queue\_size: 1000  
> > reject\_policy: caller
> > 
> > in my test, i want 100 threads, and a queue of 1000 requests.
> > 
> > Anything else?
> > 
> > On Sunday, March 10, 2013 5:47:10 PM UTC+2, Vineeth Mohan wrote:
> > 
> > > try size less than queue\_size
> > > 
> > > On Sun, Mar 10, 2013 at 9:00 PM, Shlomi [shlomi...@gmail.com](mailto:shlomi...@gmail.com) wrote:
> > > 
> > > > Hey,
> > > > 
> > > > I followed this [http://www.elasticsearch.org/guide/reference/modules/threadpool.html](http://www.elasticsearch.org/guide/reference/modules/threadpool.html)to  
> > > > try and set a fixed thread-pool for queries. I put this snippet in  
> > > > elasticsearch.yml (using elastic 0.20.5):
> > > > 
> > > > threadpool:  
> > > > search:  
> > > > type: fixed  
> > > > size: 200  
> > > > queue\_size: 100  
> > > > reject\_policy: caller
> > > > 
> > > > The numbers are not final, just for testing.
> > > > 
> > > > In any case elastic didnt start up and nothing useful appeared in the  
> > > > logs.. am I missing something trivial?
> > > > 
> > > > 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 elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > > .
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:47am UTC](https://discuss.elastic.co/t/problem-controlling-searching-thread-pool/11087/6 "2017-07-06T02:47:12Z")

</div>


