Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
reduce remote crawl PPM for fresh peers in freeworld to 6 PPM
orbiter3288c19c1a19
diff --git a/defaults/yacy.init b/defaults/yacy.initindex 8fa709869..dc6bd3877 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -559,9 +559,7 @@ performanceSpeed=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=10000diff --git a/defaults/yacy.network.freeworld.unit b/defaults/yacy.network.freeworld.unitindex 3244ccf3e..d48becf50 100644--- a/defaults/yacy.network.freeworld.unit+++ b/defaults/yacy.network.freeworld.unit@@ -14,6 +14,7 @@ network.unit.search.time = 4network.unit.dht = truenetwork.unit.dhtredundancy.junior = 1network.unit.dhtredundancy.senior = 3+network.unit.remotecrawl.speed = 10network.unit.bootstrap.seedlist0 = http://www.yacy.net/seed.txtnetwork.unit.bootstrap.seedlist1 = http://home.arcor.de/hermens/yacy/seed.txtnetwork.unit.bootstrap.seedlist2 = http://low.audioattack.de/yacy/seed.txt@@ -26,5 +27,5 @@ network.unit.update.location1 = http://latest.yacy.denetwork.unit.update.location2 = http://www.findenstattsuchen.info/YaCy/latest/index.phpnetwork.unit.update.location3 = http://www.yacystats.de/yacybuild/-# properties for in-protocol response authentification:+# properties for in-protocol response authentication:network.unit.protocol.control = uncontrolled\ No newline at end of filediff --git a/defaults/yacy.network.group b/defaults/yacy.network.groupindex f5a6698fe..47455c9e1 100644--- a/defaults/yacy.network.group+++ b/defaults/yacy.network.group@@ -13,17 +13,17 @@# network.group.description = <any string, just informal; appears in network graphic># network.group.administration.control = 'uncontrolled'|'moderated'|'controlled'# network.group.administration.manager = <a .yacy or .yacyh - domain, naming the manager peer>-# network.group.administration.request.authentification.method = 'salted-magic'-# network.group.administration.request.authentification.essentials = <any string, a secret password>+# network.group.administration.request.authentication.method = 'salted-magic'+# network.group.administration.request.authentication.essentials = <any string, a secret password># -----------------------------------------------------------------## this is a work in progress. disabled properties are not yet used ## -----------------------------------------------------------------#-# properties for group access administrator-authentification:+# properties for group access administrator-authentication:#network.group.name = everybody#network.group.description = Our Peer-Group#network.group.administration.control = uncontrolled#network.group.administration.manager =-#network.group.administration.request.authentification.method = salted-magic-#network.group.administration.request.authentification.essentials =\ No newline at end of file+#network.group.administration.request.authentication.method = salted-magic+#network.group.administration.request.authentication.essentials =\ No newline at end of filediff --git a/defaults/yacy.network.intranet.unit b/defaults/yacy.network.intranet.unitindex 5ef5d5220..947c360e4 100644--- a/defaults/yacy.network.intranet.unit+++ b/defaults/yacy.network.intranet.unit@@ -13,6 +13,7 @@ network.unit.domain = localnetwork.unit.dht = falsenetwork.unit.dhtredundancy.junior = 1network.unit.dhtredundancy.senior = 1+network.unit.remotecrawl.speed = 600# each network may use different yacy distributions.# the auto-updater can access network-specific update locations@@ -21,5 +22,5 @@ network.unit.update.location1 = http://latest.yacy.denetwork.unit.update.location2 = http://www.findenstattsuchen.info/YaCy/latest/index.phpnetwork.unit.update.location3 = http://www.yacystats.de/yacybuild/-# properties for in-protocol response authentification:+# properties for in-protocol response authentication:network.unit.protocol.control = uncontrolled\ No newline at end of filediff --git a/defaults/yacy.network.readme b/defaults/yacy.network.readmeindex eda000c3d..dd97be776 100644--- a/defaults/yacy.network.readme+++ b/defaults/yacy.network.readme@@ -34,11 +34,11 @@# network.unit.dhtredundancy = <integer number, 0 means no DHT enabled># network.unit.bootstrap.seedlist<n> = <an url to a seedlists-file, which is stored by a principal peer># network.unit.protocol.control = 'uncontrolled'|'moderated'|'controlled'-# network.unit.protocol.request.authentification.method = 'salted-magic'-# network.unit.protocol.request.authentification.essentials = <any string, a secret password>-# network.unit.protocol.response.authentification.method = 'challenge-pwresponse'-# network.unit.protocol.response.authentification.essentials = <a challenge string>':'<a secret response-string>+# network.unit.protocol.request.authentication.method = 'salted-magic'+# network.unit.protocol.request.authentication.essentials = <any string, a secret password>+# network.unit.protocol.response.authentication.method = 'challenge-pwresponse'+# network.unit.protocol.response.authentication.essentials = <a challenge string>':'<a secret response-string># network.unit.administration.control = 'uncontrolled'|'moderated'|'controlled'# network.unit.administration.manager = <a .yacy or .yacyh - domain, naming the manager peer>-# network.unit.administration.request.authentification.method = 'salted-magic'-# network.unit.administration.request.authentification.essentials = <any string, a secret password>+# network.unit.administration.request.authentication.method = 'salted-magic'+# network.unit.administration.request.authentication.essentials = <any string, a secret password>diff --git a/defaults/yacy.network.webportal.unit b/defaults/yacy.network.webportal.unitindex 5180de255..943b2a652 100644--- a/defaults/yacy.network.webportal.unit+++ b/defaults/yacy.network.webportal.unit@@ -10,6 +10,7 @@ network.unit.search.time = 4network.unit.dht = falsenetwork.unit.dhtredundancy.junior = 1network.unit.dhtredundancy.senior = 1+network.unit.remotecrawl.speed = 1# each network may use different yacy distributions.# the auto-updater can access network-specific update locations@@ -18,5 +19,5 @@ network.unit.update.location1 = http://latest.yacy.denetwork.unit.update.location2 = http://www.findenstattsuchen.info/YaCy/latest/index.phpnetwork.unit.update.location3 = http://www.yacystats.de/yacybuild/-# properties for in-protocol response authentification:+# properties for in-protocol response authentication:network.unit.protocol.control = uncontrolled\ No newline at end of filediff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex c11f45bf8..d3f634e35 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -298,6 +298,15 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.(int) getConfigLong(plasmaSwitchboardConstants.WORDCACHE_MAX_COUNT, 20000));setConfig(plasmaSwitchboardConstants.WORDCACHE_MAX_COUNT, Integer.toString(wordCacheMaxCount));+ // set network-specific performance attributes+ if (this.firstInit) {+ int remotecrawl_ppm = Math.max(1, (int) getConfigLong("network.unit.remotecrawl.speed", 60));+ setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_BUSYSLEEP, 60000 / remotecrawl_ppm);+ setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_TRIGGERED_CRAWL_IDLESLEEP, Math.max(10000, 180000 / remotecrawl_ppm));+ setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER_BUSYSLEEP, Math.max(15000, 1800000 / remotecrawl_ppm));+ setConfig(plasmaSwitchboardConstants.CRAWLJOB_REMOTE_CRAWL_LOADER_IDLESLEEP, Math.max(30000, 3600000 / remotecrawl_ppm));+ }+// start indexing managementlog.logConfig("Starting Indexing Management");final String networkName = getConfig("network.unit.name", "");diff --git a/source/de/anomic/server/serverAbstractSwitch.java b/source/de/anomic/server/serverAbstractSwitch.javaindex c309a3ca9..104e0b06a 100644--- a/source/de/anomic/server/serverAbstractSwitch.java+++ b/source/de/anomic/server/serverAbstractSwitch.java@@ -41,6 +41,7 @@ public abstract class serverAbstractSwitch<E> implements serverSwitch<E> {private final File configFile;private final String configComment;private final File rootPath;+ protected boolean firstInit;protected serverLog log;protected int serverJobs;protected long maxTrackingTime;@@ -64,6 +65,7 @@ public abstract class serverAbstractSwitch<E> implements serverSwitch<E> {this.configComment = "This is an automatically generated file, updated by serverAbstractSwitch and initialized by " + initPath;final File initFile = new File(rootPath, initPath);this.configFile = new File(rootPath, configPath); // propertiesFile(config);+ firstInit = !configFile.exists(); // this is true if the application was started for the first timenew File(configFile.getParent()).mkdir();// predefine init's