Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- new development cycle - removed temporary configuration with safe setting for indexer threads (=1) and replaced it with best value computed during performance tests (1/2 of number of processors)
orbiter27eb8d62cbaf
diff --git a/build.properties b/build.propertiesindex 76b88a275..09ae9905c 100644--- a/build.properties+++ b/build.properties@@ -3,7 +3,7 @@ javacSource=1.5javacTarget=1.5# Release Configuration-releaseVersion=0.80+releaseVersion=0.81stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzembReleaseFile=yacy_emb_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzproReleaseFile=yacy_pro_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gzdiff --git a/defaults/yacy.init b/defaults/yacy.initindex 4ef60b139..cb6da4117 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -688,7 +688,6 @@ crawler.MaxActiveThreads = 30# maximum size of indexing queueindexer.slots = 40-indexer.threads = 1# maximum size of stacker queuestacker.slots = 2000diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 0755d15b7..8c9421fdc 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -593,11 +593,11 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.// init robinson cluster// before we do that, we wait some time until the seed list is loaded.//while (((System.currentTimeMillis() - startedSeedListAquisition) < 8000) && (this.webIndex.seedDB.sizeConnected() == 0)) try {Thread.sleep(1000);} catch (final InterruptedException e) {}- try {Thread.sleep(1000);} catch (final InterruptedException e) {}+ //try {Thread.sleep(1000);} catch (final InterruptedException e) {}this.clusterhashes = this.webIndex.peers().clusterHashes(getConfig("cluster.peers.yacydomain", ""));// deploy blocking threads- int indexerThreads = (int) this.getConfigLong(plasmaSwitchboardConstants.INDEXER_THREADS, 1);+ int indexerThreads = Math.max(1, serverProcessor.useCPU / 2);indexingStorageProcessor = new serverProcessor<indexingQueueEntry>("storeDocumentIndex","This is the sequencing step of the indexing queue: no concurrency is wanted here, because the access of the indexer works better if it is not concurrent. Files are written as streams, councurrency would destroy IO performance. In this process the words are written to the RWI cache, which flushes if it is full.",diff --git a/source/de/anomic/plasma/plasmaSwitchboardConstants.java b/source/de/anomic/plasma/plasmaSwitchboardConstants.javaindex 3ba044963..ff52f1f2b 100644--- a/source/de/anomic/plasma/plasmaSwitchboardConstants.java+++ b/source/de/anomic/plasma/plasmaSwitchboardConstants.java@@ -123,7 +123,6 @@ public final class plasmaSwitchboardConstants {public static final String INDEXER_METHOD_JOBCOUNT = "queueSize";public static final String INDEXER_METHOD_FREEMEM = "deQueueFreeMem";public static final String INDEXER_SLOTS = "indexer.slots";- public static final String INDEXER_THREADS = "indexer.threads";// 90_cleanup/*** <p><code>public static final String <strong>CLEANUP</strong> = "90_cleanup"</code></p>