Creating an Index with one Segment

I would like to make sure when creating my Index and ingesting data I only have one segment. My ingestion speed is slowed down heavily due to segment merging and from my performance monitoring I can see that it merges the segments == refreshInterval set in the elasticsearch.yml file.

I would like to prevent this frequest disk I/O specially since my elasticsearch runs on a VM. Any pointers to this would be great.

I have tried as per what this thread suggests, but it doesnt work

This is not something you are going to be able to directly control during indexing. I'd suggest having a read through the definitive guide section on tuning indexing. Particularly, if you aren't searching, just disable the refresh interval.

Alright, thanks for confirming the same.