Closed loe closed 10 years ago
I should add my machine is quite fast. Core i7, 8GB RAM, SSDs. It is only the indices stats that are slow, all others (java, os, process, http etc. all return in a few milliseconds as before).
this might be related to https://github.com/elasticsearch/elasticsearch/issues/5201 ?
is it possible that you have some old Lucene 3 segments in your index that were created with 0.20
?
FYI: the segments API will give back the Lucene version the segment was created with
I do indeed have a variety of different "versions", 3.6, 3.6.2 and 4.3.
Is there a way to upgrade these?
@loe you can upgrade your segments which usually happens during a merge. If you optimize you index it will be the latest format. Yet this might take time and might even have an impact on your cluster while you run it so be careful with this - it really depends on how much data is in there though.
So I ran optimize against my indexes (curl -XPOST http://localhost:9200/_all/_optimize
) but I still have some 3.6.2 segments in my shards. Do I need to have more churn in order to trip merges?
hmm this is odd - what did the optimize call return?
total":36,"successful":36,"failed":0}}
hey @loe my assumption is that there is really just one segment and that means it will not re-write the segment. I don't think you have a chance to do that at this point.
The optimize call now supports a force
option #5293
curl http://localhost:9200/_cluster/nodes/_local/stats?all=true
used to take a few milliseconds against my development installation (0.90.2 on OS X). I upgraded to 1.0.0 and adjusted my URL, and now it takes anywhere from 2-4 full seconds.On production instances I scrape these stats with python and collectd to monitor my cluster.