Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- faster ping to clean up old peers faster - clean up more news
orbiterf9216e388ca5
diff --git a/defaults/yacy.init b/defaults/yacy.initindex e7b339808..22f6b622b 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -575,8 +575,8 @@ crawlingCountryMustMatch=AD,AL,AT,BA,BE,BG,BY,CH,CY,CZ,DE,DK,EE,ES,FI,FO,FR,GG,G20_dhtdistribution_idlesleep=1500020_dhtdistribution_busysleep=1000020_dhtdistribution_memprereq=12582912-30_peerping_idlesleep=60000-30_peerping_busysleep=60000+30_peerping_idlesleep=30000+30_peerping_busysleep=3000030_peerping_memprereq=209715240_peerseedcycle_idlesleep=180000040_peerseedcycle_busysleep=1200000diff --git a/source/net/yacy/peers/NewsPool.java b/source/net/yacy/peers/NewsPool.javaindex 0c3be4a15..c75f10c14 100644--- a/source/net/yacy/peers/NewsPool.java+++ b/source/net/yacy/peers/NewsPool.java@@ -257,7 +257,8 @@ public class NewsPool {categories.addAll(Arrays.asList(category));}- private final static long MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24;+ private final static long MILLISECONDS_PER_HOUR = 1000 * 60 * 60;+ private final static long MILLISECONDS_PER_DAY = MILLISECONDS_PER_HOUR * 24;private final NewsDB newsDB;private final NewsQueue outgoingNews, publishedNews, incomingNews, processedNews;@@ -401,7 +402,7 @@ public class NewsPool {if (record == null) return false;if (record.category() == null) return true;final long created = record.created().getTime();- if ((System.currentTimeMillis() - created) > (1L * MILLISECONDS_PER_DAY)) {+ if ((System.currentTimeMillis() - created) > (6L * MILLISECONDS_PER_HOUR)) {// remove everything after 1 dayreturn true;}diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex 56d472bce..4ed478ed6 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -777,7 +777,7 @@ public final class Switchboard extends serverSwitch {SwitchboardConstants.PEER_PING_METHOD_START,SwitchboardConstants.PEER_PING_METHOD_JOBCOUNT,SwitchboardConstants.PEER_PING_METHOD_FREEMEM,- 60000, Long.MAX_VALUE, 60000, Long.MAX_VALUE),+ 30000, Long.MAX_VALUE, 30000, Long.MAX_VALUE),2000);deployThread(SwitchboardConstants.INDEX_DIST, "DHT Distribution", "selection, transfer and deletion of index entries that are not searched on your peer, but on others", null,new InstantBusyThread(