Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added configuration option for maxmimum load and minimum ram for postprocessing
Michael Peter Christen229f2248b800
diff --git a/defaults/yacy.init b/defaults/yacy.initindex 17098d70d..02e540d88 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -1231,3 +1231,7 @@ browser.load4everyone = false# with some heuristics like: loading linked documents and adding a twitter search.# When the learning mode is finished, the user may switch on individual heuristics by himself.greedylearning.active = true++# postprocessing steering+postprocessing.maximum_load = 2.5+postprocessing.minimum_ram = 536870912diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex 5fe44bcd3..e0466b219 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -2307,8 +2307,8 @@ public final class Switchboard extends serverSwitch {boolean postprocessing =collection1Configuration.contains(CollectionSchema.process_sxt) &&(index.connectedCitation() || fulltext.useWebgraph()) &&- MemoryControl.available() > 512L * 1024L * 1024L &&- Memory.load() < 2.5f;+ MemoryControl.available() > getConfigLong("postprocessing.minimum_ram", 0) &&+ Memory.load() < getConfigFloat("postprocessing.maximum_load", 0);if (allCrawlsFinished) {if (postprocessing) {