# Es 5.4.2.0 how to set the th percolate.size

**URL:** <https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804>\
**Category:** Elasticsearch\
**Created:** [August 4, 2017, 3:44am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804 "2017-08-04T03:44:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 4, 2017, 3:44am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/1 "2017-08-04T03:44:58Z")

</div>

i can't add the flow config in elasticsearch.yml  
`thread_pool:`  
`percolate:`  
`size: 16`  
`queue_size: 2000`

the error is

```
**[2017-08-04T11:40:26,843][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]**
**org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [thread_pool.percolate.size] did you mean any of [thread_pool.get.size, thread_pool.search.size, thread_pool.force_merge.size]?**

```

\*\* at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
`**Caused by: java.lang.IllegalArgumentException: unknown setting [thread_pool.percolate.size] did you mean any of [thread_pool.get.size, thread_pool.search.size, thread_pool.force_merge.size]?**`  
\*\* at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:256) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:139) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.node.Node.(Node.java:343) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.node.Node.(Node.java:242) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:232) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:232) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:350) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.4.2.jar:5.4.2]\*\*  
\*\* ... 6 more\*\*

percolate  
For percolate operations. Thread pool type is fixed with a size of # of available processors, queue\_size of 1000.

thanks.

i flow:  
**[https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-threadpool.html#modules-threadpool](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-threadpool.html#modules-threadpool)**  
**percolate**  
**For percolate operations. Thread pool type is fixed with a size of # of available processors, queue\_size of 1000.**

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 4, 2017, 4:28am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/2 "2017-08-04T04:28:47Z")

</div>

and what this Meaning

**refresh**  
**For refresh operations. Thread pool type is scaling with a keep-alive of 5m and a max of min(10, (# of available processors)/2).**  
if cpu is 8 core, the min is 32 the max is 32\*(104)?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 5:13am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/3 "2017-08-04T05:13:12Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Wrong yml format here I think. Missing indentation?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 4, 2017, 5:19am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/4 "2017-08-04T05:19:27Z")

</div>

in elasticsearch.yml file,can tell me the write format.  
the set format is  
@dadoonet  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c89e178f5f7416a45e733bedbc893efecceff0e.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 5:36am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/5 "2017-08-04T05:36:44Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Don't post images for code.

I can suspect you are using tabs instead of spaces but that's just a guess.

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [August 4, 2017, 7:36am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/6 "2017-08-04T07:36:31Z")

</div>

So the percolate thread pool has been removed since 5.0 and the percolator uses the search thread pool instead. The reason behind this is that the percolate api has been replaced by the percolate query that can be used in the search api.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 4, 2017, 7:40am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/7 "2017-08-04T07:40:00Z")

</div>

@mvg  
where to see the thread pool set api ?  
thanks.

---

<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:** [September 1, 2017, 7:40am UTC](https://discuss.elastic.co/t/es-5-4-2-0-how-to-set-the-th-percolate-size/95804/8 "2017-09-01T07:40:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
