Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- removed hardcoded load-test which is now handled in BusyQueues steering, see /PerformanceQueues_p.html - changed default values for crawler queue load limit (high, because these jobs are started upon user request)
Michael Peter Christenbe5e80823687
diff --git a/defaults/yacy.init b/defaults/yacy.initindex 615c69f14..b499a6ca9 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -610,22 +610,22 @@ collection=user50_localcrawl_idlesleep=200050_localcrawl_busysleep=1050_localcrawl_memprereq=12582912-50_localcrawl_loadprereq=2.0+50_localcrawl_loadprereq=8.050_localcrawl_isPaused=false60_remotecrawlloader_idlesleep=400060_remotecrawlloader_busysleep=80060_remotecrawlloader_memprereq=12582912-60_remotecrawlloader_loadprereq=2.0+60_remotecrawlloader_loadprereq=8.060_remotecrawlloader_isPaused=false62_remotetriggeredcrawl_idlesleep=200062_remotetriggeredcrawl_busysleep=20062_remotetriggeredcrawl_memprereq=12582912-62_remotetriggeredcrawl_loadprereq=2.0+62_remotetriggeredcrawl_loadprereq=8.062_remotetriggeredcrawl_isPaused=false70_surrogates_idlesleep=1000070_surrogates_busysleep=070_surrogates_memprereq=12582912-70_surrogates_loadprereq=2.0+70_surrogates_loadprereq=8.080_searchresult_idlesleep=1000080_searchresult_busysleep=20080_searchresult_memprereq=0@@ -860,7 +860,6 @@ indexControl.gzipBody = trueindexControl.timeout = 60000indexDistribution.timeout = 60000indexTransfer.timeout = 120000-indexTransfer.maxload = 2.2# defining max. allowed amount of open files during index- transfer/distributionindexDistribution.maxOpenFiles = 800diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.javaindex 2367105ae..94cf8667e 100644--- a/htroot/yacy/transferRWI.java+++ b/htroot/yacy/transferRWI.java@@ -127,7 +127,7 @@ public final class transferRWI {final StringBuilder unknownURLs = new StringBuilder(6000);double load = Memory.load();- float maxload = sb.getConfigFloat(SwitchboardConstants.INDEX_TRANSFER_MAXLOAD, 1.5f);+ float maxload = sb.getConfigFloat(SwitchboardConstants.INDEX_DIST_LOADPREREQ, 2.0f);if (load > maxload) {// too high local load. this is bad but we must reject this to protect ourself!sb.getLog().info("Rejecting RWIs from peer " + otherPeerName + ", system has too high load = " + load + ", maxload = " + maxload);diff --git a/source/net/yacy/peers/Dispatcher.java b/source/net/yacy/peers/Dispatcher.javaindex a5ee4a1e0..a59aef84a 100644--- a/source/net/yacy/peers/Dispatcher.java+++ b/source/net/yacy/peers/Dispatcher.java@@ -44,6 +44,8 @@ import net.yacy.kelondro.data.word.WordReference;import net.yacy.kelondro.index.RowHandleSet;import net.yacy.kelondro.rwi.ReferenceContainer;import net.yacy.kelondro.workflow.WorkflowProcessor;+import net.yacy.search.Switchboard;+import net.yacy.search.SwitchboardConstants;import net.yacy.search.index.Segment;public class Dispatcher {@@ -401,7 +403,9 @@ public class Dispatcher {// try to keep the system healthy; sleep as long as System load is too highwhile (Protocol.metadataRetrievalRunning.get() > 0) try {Thread.sleep(1000);} catch (InterruptedException e) {break;}- while (Memory.load() > 2.0) try {Thread.sleep(10000);} catch (InterruptedException e) {break;}++ // we must test this here again+ while (Memory.load() > Switchboard.getSwitchboard().getConfigFloat(SwitchboardConstants.INDEX_DIST_LOADPREREQ, 2.0f)) try {Thread.sleep(10000);} catch (InterruptedException e) {break;}// do the transmissionfinal boolean success = chunk.transmit();diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex aea45e0ca..734c8a114 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -3417,11 +3417,6 @@ public final class Switchboard extends serverSwitch {+ getIndexingProcessorsQueueSize();}- double load = Memory.load();- float maxload = getConfigFloat(SwitchboardConstants.INDEX_TRANSFER_MAXLOAD, 1.5f);- if (load > maxload) {- return "no DHT distribution: system has too high load = " + load + ", maxload = " + maxload;- }return null; // this means; yes, please do dht transfer}diff --git a/source/net/yacy/search/SwitchboardConstants.java b/source/net/yacy/search/SwitchboardConstants.javaindex ff6fb3908..0a41661af 100644--- a/source/net/yacy/search/SwitchboardConstants.java+++ b/source/net/yacy/search/SwitchboardConstants.java@@ -266,7 +266,6 @@ public final class SwitchboardConstants {public static final String INDEX_DIST_ALLOW_WHILE_CRAWLING = "allowDistributeIndexWhileCrawling";public static final String INDEX_DIST_ALLOW_WHILE_INDEXING = "allowDistributeIndexWhileIndexing";public static final String INDEX_TRANSFER_TIMEOUT = "indexTransfer.timeout";- public static final String INDEX_TRANSFER_MAXLOAD = "indexTransfer.maxload";public static final String INDEX_TRANSFER_GZIP_BODY = "indexTransfer.gzipBody";public static final String PARSER_MIME_DENY = "parser.mime.deny";public static final String PARSER_EXTENSIONS_DENY = "parser.extensions.deny";