hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1559986 - in /hama/trunk: conf/hama-default.xml core/src/main/java/org/apache/hama/bsp/GroomServer.java core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java
Date Tue, 21 Jan 2014 11:48:04 GMT
Author: edwardyoon
Date: Tue Jan 21 11:48:04 2014
New Revision: 1559986

URL: http://svn.apache.org/r1559986
Log:
HAMA-819: Make number of RPC Server threads configurable

Modified:
    hama/trunk/conf/hama-default.xml
    hama/trunk/core/src/main/java/org/apache/hama/bsp/GroomServer.java
    hama/trunk/core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java

Modified: hama/trunk/conf/hama-default.xml
URL: http://svn.apache.org/viewvc/hama/trunk/conf/hama-default.xml?rev=1559986&r1=1559985&r2=1559986&view=diff
==============================================================================
--- hama/trunk/conf/hama-default.xml (original)
+++ hama/trunk/conf/hama-default.xml Tue Jan 21 11:48:04 2014
@@ -158,6 +158,12 @@
     </description>
   </property>
   <property>
+    <name>hama.default.messenger.handler.threads.num</name>
+    <value>5</value>
+    <description>The number of method handler threads to run.</description>
+  </property>
+  
+  <property>
     <name>bsp.input.runtime.partitioning</name>
     <value>true</value>
     <description>Basically, we provides a data partitioning program based on BSP job,


Modified: hama/trunk/core/src/main/java/org/apache/hama/bsp/GroomServer.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/bsp/GroomServer.java?rev=1559986&r1=1559985&r2=1559986&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/bsp/GroomServer.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/bsp/GroomServer.java Tue Jan 21 11:48:04
2014
@@ -352,9 +352,9 @@ public class GroomServer implements Runn
     int tmpPort = socAddr.getPort();
 
     // RPC initialization
-    // TODO Make number of RPC Server threads configurable
-    this.taskReportServer = RPC.getServer(this, bindAddress, tmpPort, 10,
-        false, this.conf);
+    this.taskReportServer = RPC.getServer(this, bindAddress, tmpPort,
+        conf.getInt("hama.groom.report.server.handler.threads.num", 5), false,
+        this.conf);
 
     this.taskReportServer.start();
 

Modified: hama/trunk/core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java?rev=1559986&r1=1559985&r2=1559986&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java
(original)
+++ hama/trunk/core/src/main/java/org/apache/hama/bsp/message/HamaMessageManagerImpl.java
Tue Jan 21 11:48:04 2014
@@ -81,7 +81,7 @@ public final class HamaMessageManagerImp
 
       // TODO Make number of RPC Server threads configurable
       this.server = RPC.getServer(this, selfAddress.getHostName(),
-          selfAddress.getPort(), conf);
+          selfAddress.getPort(), conf.getInt("hama.default.messenger.handler.threads.num",
5), false, conf);
       server.start();
       
       LOG.info(" BSPPeer address:" + server.getListenerAddress().getHostName()



Mime
View raw message