Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed not-working kelondroRecords-Cache
orbiterba16da72b47d
diff --git a/htroot/Performance_p.java b/htroot/Performance_p.javaindex f79777696..4d2e1d2a2 100644--- a/htroot/Performance_p.java+++ b/htroot/Performance_p.java@@ -113,6 +113,9 @@ public class Performance_p {// load with new valuesidlesleep = Long.parseLong((String) post.get(threadName + "_idlesleep", "1")) * 1000;busysleep = Long.parseLong((String) post.get(threadName + "_busysleep", "1")) * 1000;++ // check values to prevent short-cut loops+ if (idlesleep == 0) idlesleep = 1000;// on-the-fly re-configurationswitchboard.setThreadSleep(threadName, idlesleep, busysleep);diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.htmlindex 601c9a385..54382a6e0 100644--- a/htroot/SettingsAck_p.html+++ b/htroot/SettingsAck_p.html@@ -49,7 +49,6 @@ You are now permanently <b>online</b>. After a short while you should see the ef::<b>Port is: #[port]#</b><br><b>PeerName is: #[peerName]#</b><br>-<b>Shutdown time is: #[shutdownWaiting]# seconds</b><br><u>if you changed the Port, you need to restart the Proxy.</u>::<b>SeedFTP Server Settings changed. You are now a principal peer.</b><br>diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.javaindex 3cccb1335..b8792e931 100644--- a/htroot/SettingsAck_p.java+++ b/htroot/SettingsAck_p.java@@ -190,7 +190,6 @@ public class SettingsAck_p {if (post.containsKey("generalsettings")) {String port = (String) post.get("port");String peerName = (String) post.get("peername");- String shutdownWaiting = (String) post.get("shutdownWaiting");// check if peer name already existsyacySeed oldSeed = yacyCore.seedDB.lookupByName(peerName);@@ -209,12 +208,10 @@ public class SettingsAck_p {// set valuesenv.setConfig("port", port);env.setConfig("peerName", peerName);- env.setConfig("shutdownWaiting", shutdownWaiting);prop.put("info", 12);//port or peername changedprop.put("info_port", port);prop.put("info_peerName", peerName);- prop.put("info_shutdownWaiting", shutdownWaiting);}} else {// deny changediff --git a/htroot/Settings_p.html b/htroot/Settings_p.htmlindex 23bb18a9d..aa02b634d 100644--- a/htroot/Settings_p.html+++ b/htroot/Settings_p.html@@ -37,14 +37,6 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root fold<td><input name="port" type="text" size="5" maxlength="5" value="#[port]#"></td><td><i>Changes will take effect after restart only.</i></td></tr>- <tr valign="top">- <td>Shutdown Time Limit:</td>- <td><input name="shutdownWaiting" type="text" size="5" maxlength="4" value="#[shutdownWaiting]#"></td>- <td>This is the time that a peer takes at most for shutdown.- The shutdown-procedure is difficult since there are many caches that must be flushed- first (seconds)- </td>- </tr><tr valign="top"><td>Peer Name:</td><td><input name="peername" type="text" size="32" maxlength="80" value="#[peerName]#"></td>diff --git a/htroot/Settings_p.java b/htroot/Settings_p.javaindex 8966f24cc..f15e4ac5b 100644--- a/htroot/Settings_p.java+++ b/htroot/Settings_p.java@@ -58,7 +58,6 @@ public class Settings_p {//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString());prop.put("port", env.getConfig("port", "8080"));- prop.put("shutdownWaiting", env.getConfig("shutdownWaiting", "120"));prop.put("peerName", env.getConfig("peerName", "nameless"));// set valuesString s;diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.javaindex 2070b16c3..9ee3bd23c 100644--- a/source/de/anomic/kelondro/kelondroRecords.java+++ b/source/de/anomic/kelondro/kelondroRecords.java@@ -322,7 +322,11 @@ public class kelondroRecords {if (cachesize == 0) return new Node(handle, parentNode, referenceInParent);Node n = (Node) cache.get(handle);if (n == null) {- return new Node(handle, parentNode, referenceInParent);+ n = new Node(handle, parentNode, referenceInParent);+ cache.put(handle, n);+ cacheScore.setScore(handle, (int) ((System.currentTimeMillis() - startup) / 1000));+ checkCacheSpace();+ return n;} else {cacheScore.setScore(handle, (int) ((System.currentTimeMillis() - startup) / 1000));return n;diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex d4ffd40b9..d49bd7197 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -281,11 +281,11 @@ public class plasmaSwitchboard extends serverAbstractSwitch implements serverSwideployThread("60_globalcrawl", "Global Crawl", "thread that performes a single crawl/indexing step of a web page for global crawling",new serverInstantThread(this, "globalCrawlJob", "globalCrawlJobSize"), log, 30000);deployThread("50_localcrawl", "Local Crawl", "thread that performes a single crawl step from the local crawl queue",- new serverInstantThread(this, "localCrawlJob", "localCrawlJobSize"), log, 20000);+ new serverInstantThread(this, "localCrawlJob", "localCrawlJobSize"), log, 10000);deployThread("40_peerseedcycle", "Seed-List Upload", "task that a principal peer performes to generate and upload a seed-list to a ftp account",new serverInstantThread(yc, "publishSeedList", null), yc.log, 180000);deployThread("30_peerping", "YaCy Core", "this is the p2p-control and peer-ping task",- new serverInstantThread(yc, "peerPing", null), yc.log, 4000);+ new serverInstantThread(yc, "peerPing", null), yc.log, 2000);indexDistribution = new distributeIndex(100 /*indexCount*/, 8000, 1 /*peerCount*/);deployThread("20_dhtdistribution", "DHT Distribution (currently by juniors only)", "selection, transfer and deletion of index entries that are not searched on your peer, but on others",new serverInstantThread(indexDistribution, "job", null), log, 120000);diff --git a/yacy.init b/yacy.initindex e41244f1d..0f30feecc 100644--- a/yacy.init+++ b/yacy.init@@ -375,13 +375,13 @@ xpstopw=true40_peerseedcycle_idlesleep=180000040_peerseedcycle_busysleep=120000050_localcrawl_idlesleep=5000-50_localcrawl_busysleep=1000+50_localcrawl_busysleep=060_globalcrawl_idlesleep=60000-60_globalcrawl_busysleep=5000+60_globalcrawl_busysleep=300070_cachemanager_idlesleep=10000-70_cachemanager_busysleep=4000+70_cachemanager_busysleep=080_dequeue_idlesleep=4000-80_dequeue_busysleep=1000+80_dequeue_busysleep=090_cleanup_idlesleep=30000090_cleanup_busysleep=300000