lower Segment-size (hope to get Segments of 10GB)

see:
http://forum.yacy-websuche.de/viewtopic.php?f=5&t=5216&p=30036#p30034
pull/1/head
sixcooler 11 years ago
parent f91b2f51ae
commit 830057d788

@ -2337,7 +2337,7 @@ public final class Switchboard extends serverSwitch {
long idleAdmin = System.currentTimeMillis() - this.adminAuthenticationLastAccess;
long deltaOptimize = System.currentTimeMillis() - this.optimizeLastRun;
boolean optimizeRequired = deltaOptimize > 60000 * 60 * 2 && idleAdmin > 600000; // optimize if user is idle for 10 minutes and at most every 2 hours
int opts = Math.min(10, Math.max(1, (int) (fulltext.collectionSize() / 5000000)));
int opts = Math.min(10, Math.max(1, (int) (fulltext.collectionSize() / 1000000)));
if (proccount > 0) {
opts++; // have postprocessings will force optimazion with one more Segment which is small an quick
optimizeRequired = true;

Loading…
Cancel
Save