Skip to content

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

Merge commit 'fa08ed5ae5d72bddc3cc6a662b23103579e86109' into quix0r

Michael Christenec26b2bea4b7
diff --cc source/de/anomic/crawler/CrawlQueues.java
index 1abc88867,5daaddad9..440b58fe0
--- a/source/de/anomic/crawler/CrawlQueues.java
+++ b/source/de/anomic/crawler/CrawlQueues.java
@@@ -196,9 -218,12 +218,11 @@@ public class CrawlQueues
return this.noticeURL.stackSize(NoticedURL.StackType.CORE) + this.noticeURL.stackSize(NoticedURL.StackType.NOLOAD);
}
-- public boolean coreCrawlJob() {
-
++ public boolean coreCrawlJob() {
+ final boolean robinsonPrivateCase = (this.sb.isRobinsonMode() &&
+ !this.sb.getConfig(SwitchboardConstants.CLUSTER_MODE, "").equals(SwitchboardConstants.CLUSTER_MODE_PUBLIC_CLUSTER));
- if (coreCrawlJobSize() <= 20 && limitCrawlJobSize() > 0) {
- if ((robinsonPrivateCase || coreCrawlJobSize() <= 20) && limitCrawlJobSize() > 0) {
++ if ((robinsonPrivateCase || coreCrawlJobSize() <= 20) && limitCrawlJobSize() > 0) {
// move some tasks to the core crawl job so we have something to do
final int toshift = Math.min(10, limitCrawlJobSize()); // this cannot be a big number because the balancer makes a forced waiting if it cannot balance
for (int i = 0; i < toshift; i++) {
@@@ -394,13 -434,16 +433,16 @@@
}
if (remoteTriggeredCrawlJobSize() > 200) {
- if (this.log.isFine()) this.log.logFine("remoteCrawlLoaderJob: the remote-triggered crawl job queue is filled, omitting processing");
+ if (this.log.isFine()) {
+ this.log.logFine("remoteCrawlLoaderJob: the remote-triggered crawl job queue is filled, omitting processing");
+ }
return false;
}
--
- // Determine ratio local/remote, if lower than 1000 do not do any remote jobs
- if (!isLocalRemoteRatioReached()) {
- if (this.log.isFine()) this.log.logFine("remoteCrawlLoaderJob: a local crawl is running, omitting processing");
++
+ if (coreCrawlJobSize() > 0 /*&& sb.indexingStorageProcessor.queueSize() > 0*/) {
+ if (this.log.isFine()) {
+ this.log.logFine("remoteCrawlLoaderJob: a local crawl is running, omitting processing");
- }
++ }
return false;
}
diff --cc source/net/yacy/kelondro/blob/ArrayStack.java
index e72fec70f,72d83e51f..72d83e51f
mode 100644,100755..100644
--- a/source/net/yacy/kelondro/blob/ArrayStack.java
+++ b/source/net/yacy/kelondro/blob/ArrayStack.java