# Self-managed app search docker 7.4.0, -e worker.threads do not work

**URL:** <https://discuss.elastic.co/t/self-managed-app-search-docker-7-4-0-e-worker-threads-do-not-work/201941>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [October 2, 2019, 11:06am UTC](https://discuss.elastic.co/t/self-managed-app-search-docker-7-4-0-e-worker-threads-do-not-work/201941 "2019-10-02T11:06:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![axelhildingson](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@axelhildingson](https://discuss.elastic.co/u/axelhildingson)\
**Post date:** [October 2, 2019, 11:06am UTC](https://discuss.elastic.co/t/self-managed-app-search-docker-7-4-0-e-worker-threads-do-not-work/201941/1 "2019-10-02T11:06:34Z")

</div>

I am running the app search docker and trying to change the worker pool but it nothing happens when I set -e worker.threads=8. When I look at port 3003 is the worker count still 4.

`docker run -ti -p 3003:3003 -p 3002:3002 -e elasticsearch.host=<host> -e elasticsearch.password=<password> -e elasticsearch.username=<username> -e worker.threads=8 docker.elastic.co/app-search/app-search:7.4.0`

---

<div class="post-metadata">

**Author:** ![ioana.tagirta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ioana.tagirta/32/46368_2.png) [@ioana.tagirta](https://discuss.elastic.co/u/ioana.tagirta)\
**Post date:** [October 2, 2019, 3:15pm UTC](https://discuss.elastic.co/t/self-managed-app-search-docker-7-4-0-e-worker-threads-do-not-work/201941/2 "2019-10-02T15:15:03Z")

</div>

Thank you for reporting this issue.  
The `worker.threads` option cannot be configured this way for the docker image. We plan to fix it in the next patch release.  
In the meantime, the only way to configure `worker.threads` is to build a new docker image with a custom app-search.yml.

Example, for app-search.yml:

```auto
allow_es_settings_modification: true
app_search.listen_host: 0.0.0.0
elasticsearch.host: ${elasticsearch.host:"http://elasticsearch:9200"}
elasticsearch.username: ${elasticsearch.username:elastic}
elasticsearch.password: ${elasticsearch.password:changeme}
worker.threads: ${worker.threads:4}

```

If other options need to be passed with `-e`, they will need to be included in app-search.yml.  
In the same directory as app-search.yml, add a Dockerfile:

```auto
FROM docker.elastic.co/app-search/app-search:7.4.0
COPY app-search.yml /usr/share/app-search/config/app-search.yml

```

Build the docker image named `app-search-test`:

```auto
docker build -t app-search-test .

```

Finally, run the container with:

```auto
docker run -ti -p 3003:3003 -p 3002:3002 -e elasticsearch.host=<host> -e elasticsearch.password=<password> -e elasticsearch.username=<username> -e worker.threads=8 app-search-test

```

---

<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:** [October 30, 2019, 3:15pm UTC](https://discuss.elastic.co/t/self-managed-app-search-docker-7-4-0-e-worker-threads-do-not-work/201941/3 "2019-10-30T15:15:10Z")

</div>

Closed on October 30, 2019, 3:15pm UTC

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