Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

- automatic setting of peer-does-not-accept-remote-crawl - increased percentage of object cache to node cache to 30%

orbiterbd057b44ddd3
diff --git a/source/de/anomic/kelondro/kelondroTree.java b/source/de/anomic/kelondro/kelondroTree.java
index 5764fb8d6..19f3cf64a 100644
--- a/source/de/anomic/kelondro/kelondroTree.java
+++ b/source/de/anomic/kelondro/kelondroTree.java
@@ -81,7 +81,7 @@ public class kelondroTree extends kelondroRecords implements kelondroIndex {
private static int root = 0; // pointer for FHandles-array: pointer to root node
// calibration of cache
- public static int defaultObjectCachePercent = 10;
+ public static int defaultObjectCachePercent = 30;
// class variables
private Search writeSearchObj = new Search();
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java
index 16067b21c..c1c80982a 100644
--- a/source/de/anomic/plasma/plasmaSwitchboard.java
+++ b/source/de/anomic/plasma/plasmaSwitchboard.java
@@ -1730,9 +1730,10 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
* is also returned in lurl
*/
if ((page == null) || (page.get("delay") == null)) {
- log.logInfo("CRAWL: REMOTE CRAWL TO PEER " + remoteSeed.getName() + " FAILED. CAUSE: unknown (URL=" + urlEntry.url().toString() + ")");
- if (remoteSeed != null)
+ log.logInfo("CRAWL: REMOTE CRAWL TO PEER " + remoteSeed.getName() + " FAILED. CAUSE: unknown (URL=" + urlEntry.url().toString() + "). Removed peer.");
+ if (remoteSeed != null) {
yacyCore.peerActions.peerDeparture(remoteSeed);
+ }
return false;
} else
try {
@@ -1756,10 +1757,14 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
return true;
} else {
log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName() + " REJECTED. CAUSE: " + page.get("reason") + " (URL=" + urlEntry.url().toString() + ")");
+ remoteSeed.setFlagAcceptRemoteCrawl(false);
+ yacyCore.seedDB.update(remoteSeed.hash, remoteSeed);
return false;
}
} else {
log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName() + " DENIED. RESPONSE=" + response + ", CAUSE=" + page.get("reason") + ", URL=" + urlEntry.url().toString());
+ remoteSeed.setFlagAcceptRemoteCrawl(false);
+ yacyCore.seedDB.update(remoteSeed.hash, remoteSeed);
return false;
}
} catch (Exception e) {