# Elasticsearch processor environment variable

**URL:** <https://discuss.elastic.co/t/elasticsearch-processor-environment-variable/269089>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 2, 2021, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-processor-environment-variable/269089 "2021-04-02T08:32:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyquillus](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@nyquillus](https://discuss.elastic.co/u/nyquillus)\
**Post date:** [April 2, 2021, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-processor-environment-variable/269089/1 "2021-04-02T08:32:09Z")

</div>

Hi,

I recently posted a question about threadpools for my stack on kubernetes. ([Question about threadpools](https://discuss.elastic.co/t/question-about-threadpools/268888))  
I'm planning to manually increase the node processor count. On docker-compose i can just add "processors=x" to elasticsearch env section. Can it be done the same way on kubernetes or do i have to edit the yaml like shown in this link [Manage compute resources | Elastic Cloud on Kubernetes [1.5] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-managing-compute-resources.html) ?

the snippet from the link:

```
resources:
            requests:
              memory: 4Gi
              cpu: 8
```

---

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [April 7, 2021, 3:17pm UTC](https://discuss.elastic.co/t/elasticsearch-processor-environment-variable/269089/2 "2021-04-07T15:17:34Z")

</div>

Hi,

As the documentation [Manage compute resources | Elastic Cloud on Kubernetes [1.5] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-managing-compute-resources.html) mentions, you should first define `resources.requests.cpu` and the number of processors should be detected automatically.

If you want to set your own value for `node.processors`, it is a setting of the Elasticsearch configuration:

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: example
spec:
  version: 7.12.0
  nodeSets:
  - name: default
    count: 3
    config:
      node.processors: ?

```

---

<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:** [May 5, 2021, 3:18pm UTC](https://discuss.elastic.co/t/elasticsearch-processor-environment-variable/269089/3 "2021-05-05T15:18:27Z")

</div>

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