default configuration of MMapDirectoryFactory for solr, increased lock

timeout, less documents from remote searches (too many results had
easily blocked a peer)
pull/1/head
Michael Peter Christen 12 years ago
parent 0c1a018bbd
commit a8dc4346e8

@ -133,7 +133,7 @@
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
-->
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
<writeLockTimeout>20000</writeLockTimeout>
<!-- Expert: Enabling compound file will use less files for the index,
using fewer file descriptors on the expense of performance decrease.

@ -803,7 +803,7 @@ search.excludehosth=
search.verify.delete = true
# remote search details
remotesearch.maxcount = 20
remotesearch.maxcount = 10
remotesearch.maxtime = 1000
# specifies if yacy should set it's own referer if no referer URL

@ -623,6 +623,7 @@ public final class yacy {
if (args.length >= 1 && args[0].toLowerCase().equals("-gui")) headless = false;
System.setProperty("java.awt.headless", headless ? "true" : "false");
System.setProperty("java.net.preferIPv4Stack", "true");
System.setProperty("solr.directoryFactory","solr.MMapDirectoryFactory"); // should prevent ClosedChannelException
String s = ""; for (final String a: args) s += a + " ";
yacyRelease.startParameter = s.trim();

Loading…
Cancel
Save