Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
performance settings based on network's remote crawl speed removed some _pro values from config
lotusb68d06a6e844
diff --git a/defaults/performance_dht.profile b/defaults/performance_dht.profileindex 34714babf..d174d27a6 100644--- a/defaults/performance_dht.profile+++ b/defaults/performance_dht.profile@@ -15,13 +15,10 @@20_dhtdistribution_memprereq=629145650_localcrawl_idlesleep=400050_localcrawl_busysleep=500-50_localcrawl_busysleep__pro=10050_localcrawl_memprereq=419430450_localcrawl_isPaused=false60_remotecrawlloader_idlesleep=60000-60_remotecrawlloader_idlesleep__pro=1000060_remotecrawlloader_busysleep=40000-60_remotecrawlloader_busysleep__pro=200060_remotecrawlloader_memprereq=209715260_remotecrawlloader_isPaused=false62_remotetriggeredcrawl_idlesleep=10000@@ -33,7 +30,6 @@70_cachemanager_memprereq=104857680_indexing_idlesleep=100080_indexing_busysleep=100-80_indexing_busysleep__pro=1080_indexing_memprereq=629145682_crawlstack_idlesleep=500082_crawlstack_busysleep=1diff --git a/defaults/yacy.init b/defaults/yacy.initindex dc6bd3877..48c1b9b6f 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -555,7 +555,6 @@ performanceSpeed=10040_peerseedcycle_memprereq=209715250_localcrawl_idlesleep=200050_localcrawl_busysleep=50-50_localcrawl_busysleep__pro=050_localcrawl_memprereq=419430450_localcrawl_isPaused=false60_remotecrawlloader_idlesleep=60000@@ -571,7 +570,6 @@ performanceSpeed=10070_cachemanager_memprereq=104857680_indexing_idlesleep=100080_indexing_busysleep=10-80_indexing_busysleep__pro=080_indexing_memprereq=629145682_crawlstack_idlesleep=500082_crawlstack_busysleep=0diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.javaindex 8cb3133f8..ae1abdcbf 100644--- a/htroot/PerformanceQueues_p.java+++ b/htroot/PerformanceQueues_p.java@@ -166,12 +166,15 @@ public class PerformanceQueues_p {// check values to prevent short-cut loopsif (idlesleep < 1000) idlesleep = 1000;if (threadName.equals("10_httpd")) { idlesleep = 0; busysleep = 0; memprereq = 0; }- if ((threadName.equals("50_localcrawl")) && (busysleep < 100)) busysleep = 100;- if ((threadName.equals("61_globalcrawltrigger")) && (busysleep < 100)) busysleep = 100;- if ((threadName.equals("62_remotetriggeredcrawl")) && (busysleep < 100)) busysleep = 100;+ if (threadName.equals(plasmaSwitchboardConstants.CRAWLJOB_LOCAL_CRAWL) && (busysleep < 50)) busysleep = 50;if (threadName.equals("autoReCrawl")) { idlesleep = 3600000; busysleep = 3600000; memprereq = -1; }-- onTheFlyReconfiguration(switchboard, threadName, idlesleep, busysleep, memprereq);++ if (threadName.equals(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER)+ || threadName.equals(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL)) {+ switchboard.setRemotecrawlPPM(Math.max(1, (int) (switchboard.getConfigLong("network.unit.remotecrawl.speed", 60) / multiplier)));+ } else {+ onTheFlyReconfiguration(switchboard, threadName, idlesleep, busysleep, memprereq);+ }}prop.put("table_" + c + "_idlesleep", idlesleep);prop.put("table_" + c + "_busysleep", busysleep);diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 8e31e2b68..d39da4668 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -763,7 +763,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.setRemotecrawlPPM(Math.max(1, (int) getConfigLong("network.unit.remotecrawl.speed", 60)));}- private void setRemotecrawlPPM(int ppm) {+ public void setRemotecrawlPPM(int ppm) {setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_BUSYSLEEP, 60000 / ppm);setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_IDLESLEEP, Math.max(10000, 180000 / ppm));setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER_BUSYSLEEP, Math.max(15000, 1800000 / ppm));diff --git a/source/de/anomic/plasma/plasmaSwitchboardConstants.java b/source/de/anomic/plasma/plasmaSwitchboardConstants.javaindex b024dab67..399da5f22 100644--- a/source/de/anomic/plasma/plasmaSwitchboardConstants.java+++ b/source/de/anomic/plasma/plasmaSwitchboardConstants.java@@ -86,7 +86,7 @@ public final class plasmaSwitchboardConstants {public static final String CRAWLJOB_LOCAL_CRAWL_METHOD_FREEMEM = null;public static final String CRAWLJOB_LOCAL_CRAWL_IDLESLEEP = "50_localcrawl_idlesleep";public static final String CRAWLJOB_LOCAL_CRAWL_BUSYSLEEP = "50_localcrawl_busysleep";- // 61_globalcawltrigger+ // 60_remotecrawlloader/*** <p><code>public static final String <strong>CRAWLJOB_REMOTE_CRAWL_LOADER</strong> = "60_remotecrawlloader"</code></p>* <p>Name of the remote crawl list loading thread</p>