Opensearch indexing occupying more space

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.18.0

Describe the issue: OpenSearch indexing occupying more space

We have Bitbucket with OpenSearch where we use Opensearch for search engine.

We recently moved from ES to opensearch. We see Indexing is occupying more space. Currently it is configured to OS drive.

Is there any option to move it to different drive, if possible, we need help in moving it.

Also can we disable it?

Configuration: Bitbucket with OpenSearch

Relevant Logs or Screenshots:

@kiran.su OpenSearch uses the `path.data` in opensearch.yml file to determine where to store the data folder. If you would like to move the data to for example a mounted volume, you would have to:

  1. Stop OpenSearch
  2. copy/move data folder to the desired location
  3. Update the opensearch.yml path.data configuration to point to the correct location.
  4. Start OpenSearch

The configuration is looking for the actual data folder, which should be included in the path.data string. So something like this:

path.data: /mnt/opensearch_data/data

I would recommend to try this in a test env first to fully understand the configuration required.

You should also perhaps examine the configuration of the indices themselves, to see if you can optimise it by:

  1. Removing unnecessary replicas.
  2. Not storing _source if not needed.
  3. Not analysing fields unless required for business reasons.

Hope this helps