ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #Changed timeout.
Date Wed, 10 Jun 2015 08:24:39 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-yardstick-client d4529025b -> 5f530f261


#Changed timeout.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5f530f26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5f530f26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5f530f26

Branch: refs/heads/ignite-yardstick-client
Commit: 5f530f261b9fe6a50f1bcacb67d8a2569ce9facf
Parents: d452902
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Wed Jun 10 11:24:40 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Wed Jun 10 11:24:40 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/yardstick/IgniteNode.java | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5f530f26/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java
index 51ce51f..3311138 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java
@@ -22,6 +22,7 @@ import org.apache.ignite.cache.eviction.lru.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.util.*;
 import org.apache.ignite.spi.communication.tcp.*;
+import org.apache.ignite.spi.discovery.tcp.*;
 import org.springframework.beans.*;
 import org.springframework.beans.factory.xml.*;
 import org.springframework.context.support.*;
@@ -127,7 +128,21 @@ public class IgniteNode implements BenchmarkServer {
         if (commSpi == null)
             commSpi = new TcpCommunicationSpi();
 
+        commSpi.setLocalPortRange(200);
+        commSpi.setSocketWriteTimeout(3000);
+
+        TcpDiscoverySpi spi = (TcpDiscoverySpi)c.getDiscoverySpi();
+
+        if (spi == null)
+            spi = new TcpDiscoverySpi();
+
+        spi.setNetworkTimeout(3000);
+        spi.setSocketTimeout(3000);
+        spi.setJoinTimeout(10_000);
+
         c.setCommunicationSpi(commSpi);
+        c.setDiscoverySpi(spi);
+        c.setTimeServerPortBase(200);
 
         ignite = Ignition.start(c);
     }


Mime
View raw message