don't do solr optimization, this create high IO load. We should leave

this task to solr to do that on it's own instead of forcing it.
pull/68/head
Michael Peter Christen 8 years ago
parent 103a8348b3
commit efeb592661

@ -164,7 +164,7 @@ public class ResourceObserver {
// run a solr optimize // run a solr optimize
this.sb.index.fulltext().commit(false); this.sb.index.fulltext().commit(false);
this.sb.index.fulltext().optimize(1); //this.sb.index.fulltext().optimize(1);
if (getNormalizedDiskFree() == Space.AMPLE && getNormalizedDiskUsed(false) == Space.AMPLE) break shrinkmethods; if (getNormalizedDiskFree() == Space.AMPLE && getNormalizedDiskUsed(false) == Space.AMPLE) break shrinkmethods;
/* /*

@ -2568,6 +2568,7 @@ public final class Switchboard extends serverSwitch {
this.crawlQueues.noticeURL.clear(); this.crawlQueues.noticeURL.clear();
// do solr optimization // do solr optimization
/*
long idleSearch = System.currentTimeMillis() - this.localSearchLastAccess; long idleSearch = System.currentTimeMillis() - this.localSearchLastAccess;
long idleAdmin = System.currentTimeMillis() - this.adminAuthenticationLastAccess; long idleAdmin = System.currentTimeMillis() - this.adminAuthenticationLastAccess;
long deltaOptimize = System.currentTimeMillis() - this.optimizeLastRun; long deltaOptimize = System.currentTimeMillis() - this.optimizeLastRun;
@ -2577,7 +2578,6 @@ public final class Switchboard extends serverSwitch {
opts++; // have postprocessings will force optimazion with one more Segment which is small an quick opts++; // have postprocessings will force optimazion with one more Segment which is small an quick
optimizeRequired = true; optimizeRequired = true;
} }
log.info("Solr auto-optimization: idleSearch=" + idleSearch + ", idleAdmin=" + idleAdmin + ", deltaOptimize=" + deltaOptimize + ", proccount=" + proccount); log.info("Solr auto-optimization: idleSearch=" + idleSearch + ", idleAdmin=" + idleAdmin + ", deltaOptimize=" + deltaOptimize + ", proccount=" + proccount);
if (optimizeRequired) { if (optimizeRequired) {
if (idleSearch < 600000) opts++; // < 10 minutes idle time will cause a optimization with one more Segment which is small an quick if (idleSearch < 600000) opts++; // < 10 minutes idle time will cause a optimization with one more Segment which is small an quick
@ -2585,6 +2585,7 @@ public final class Switchboard extends serverSwitch {
fulltext.optimize(opts); fulltext.optimize(opts);
this.optimizeLastRun = System.currentTimeMillis(); this.optimizeLastRun = System.currentTimeMillis();
} }
*/
} }
// write statistics // write statistics

Loading…
Cancel
Save