You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ku...@apache.org on 2008/02/07 22:32:08 UTC

svn commit: r619648 - in /lucene/nutch/trunk: CHANGES.txt conf/nutch-default.xml src/java/org/apache/nutch/searcher/DistributedSearch.java

Author: kubes
Date: Thu Feb  7 13:32:06 2008
New Revision: 619648

URL: http://svn.apache.org/viewvc?rev=619648&view=rev
Log:
NUTCH-602 - Allow configurable number of handlers for search servers.  Thanks to Seth Hartbecke from Search Wikia for spotting this.

Modified:
    lucene/nutch/trunk/CHANGES.txt
    lucene/nutch/trunk/conf/nutch-default.xml
    lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java

Modified: lucene/nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/CHANGES.txt?rev=619648&r1=619647&r2=619648&view=diff
==============================================================================
--- lucene/nutch/trunk/CHANGES.txt (original)
+++ lucene/nutch/trunk/CHANGES.txt Thu Feb  7 13:32:06 2008
@@ -197,6 +197,9 @@
 
 69. NUTCH-604 - Upgrade to Lucene 2.3.0 (ab)
 
+70. NUTCH-602 - Allow configurable number of handlers for search servers
+    (hartbecke via kubes)
+
 Release 0.9 - 2007-04-02
 
  1. Changed log4j confiquration to log to stdout on commandline

Modified: lucene/nutch/trunk/conf/nutch-default.xml
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/conf/nutch-default.xml?rev=619648&r1=619647&r2=619648&view=diff
==============================================================================
--- lucene/nutch/trunk/conf/nutch-default.xml (original)
+++ lucene/nutch/trunk/conf/nutch-default.xml Thu Feb  7 13:32:06 2008
@@ -804,6 +804,13 @@
   </description>
 </property>
 
+<property>
+  <name>searcher.num.handlers</name>
+  <value>10</value>
+  <description>The number of handlers for the distributed search server.
+  </description>
+</property>
+
 <!-- URL normalizer properties -->
 
 <property>

Modified: lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java
URL: http://svn.apache.org/viewvc/lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java?rev=619648&r1=619647&r2=619648&view=diff
==============================================================================
--- lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java (original)
+++ lucene/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java Thu Feb  7 13:32:06 2008
@@ -80,7 +80,8 @@
     
     static org.apache.hadoop.ipc.Server getServer(Configuration conf, Path directory, int port) throws IOException{
       NutchBean bean = new NutchBean(conf, directory);
-      return RPC.getServer(bean, "0.0.0.0", port, 10, true, conf);
+      int numHandlers = conf.getInt("searcher.num.handlers", 10);      
+      return RPC.getServer(bean, "0.0.0.0", port, numHandlers, true, conf);
     }
 
   }