Hello Jae,
Besides monitoring your IO, you can check out your merges through the Stats API:
http://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html
Please note that you would need to explicitly add merge=true as a
parameter to get the merge status.
Also, you might want to check out the number of segments before and
after optimization through the Indices Segments API:
http://www.elasticsearch.org/guide/reference/api/admin-indices-segments.html
AFAIK the Optimize API by default only does a merge if it's needed
according to your Merge Policy:
http://www.elasticsearch.org/guide/reference/index-modules/merge.html
And normally, this is done automatically in background, so in a lot
situations just calling the Optimize API wouldn't do anything. You
would probably want to specify a rather small number_of_segments value
there, like 5. But that would be pretty heavy on IO, so you might want
to schedule these optimizations for off-peak hours.
Best regards,
Radu
http://sematext.com/ -- ElasticSearch -- Solr -- Lucene
On Wed, Nov 7, 2012 at 3:40 AM, Jae metacret@gmail.com wrote:
Experimentally, I executed index optimization API but I am not seeing any
merging activities in elasticsearch side. I am watching the number of index
files in /<CLUSTER_NAME>/nodex/0/indices//<SHARD_ID>,
I don't see any changes.
How can I know what is happening for optimization in elasticsearch?
Thank you
Best, Jae
--
--