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:
- Stop OpenSearch
- copy/move
data
folder to the desired location
- Update the opensearch.yml
path.data
configuration to point to the correct location.
- 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:
- Removing unnecessary replicas.
- Not storing
_source
if not needed.
- Not analysing fields unless required for business reasons.
Hope this helps