# Run a "lite" elasticsearch

**URL:** <https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 19, 2022, 5:08pm UTC](https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033 "2022-10-19T17:08:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [October 19, 2022, 5:08pm UTC](https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033/1 "2022-10-19T17:08:00Z")

</div>

We are using elasticsearch in CI jobs, so we want it as liter as possible. With only the desired features: "search" ! This is very serious problem, elasticsearch is looking too "big" and I see many people leaving it for simpler alternative, especially for prometheus or meili .

By instance how to disable unwanted stuff such as ILM ?

```auto
djobi-elasticsearch-1 | {"type": "server", "timestamp": "2022-10-19T16:41:10,107Z", "level": "INFO", "component": "o.e.c.m.MetadataCreateDataStreamService", "cluster.name": "docker-cluster", "node.name": "943593fca4ee", "message": "adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-2022.10.19-000001], backing indices [], and aliases []", "cluster.uuid": "Il-hmPHlTbmsle2LmRfUHA", "node.id": "0vGUSDYPQh2vJ2De5Vu9tw" }

```

We run elasticsearch like this:

```auto
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
    environment:
      - node.roles=master,data
      - xpack.security.enabled=false
      - xpack.monitoring.collection.enabled=false
      - xpack.monitoring.enabled=false
      - xpack.ml.enabled=false
      - ingest.geoip.downloader.enabled=false
      - bootstrap.memory_lock=true
      - discovery.type=single-node
      - http.cors.enabled=true
      - http.cors.allow-origin=*
      - ES_JAVA_OPTS=-Xms512m -Xmx512m -Dmapper.allow_dots_in_name=true

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 19, 2022, 9:44pm UTC](https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033/2 "2022-10-19T21:44:37Z")

</div>

You can [stop ILM](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/ilm-stop.html) but you cannot disable it unfortunately.

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [October 20, 2022, 12:36pm UTC](https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033/3 "2022-10-20T12:36:05Z")

</div>

Thanks you, finally we built a mock with nodejs.

So the elastic stack (ES + kibana) will become bigger and bigger every year, very sad

---

<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:** [November 17, 2022, 12:37pm UTC](https://discuss.elastic.co/t/run-a-lite-elasticsearch/317033/4 "2022-11-17T12:37:04Z")

</div>

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