|
@@ -52,9 +52,10 @@ public class FrameworkTest implements GreenApp {
|
|
|
public static String connectionDB = "testdb";
|
|
|
public static String connectionUser = "postgres";
|
|
|
public static String connectionPassword = "postgres";
|
|
|
-
|
|
|
- static final int c = 63;//125;//250 goal, //needed to reach 16K simultainious calls
|
|
|
-
|
|
|
+
|
|
|
+ //TODO: why is this multiplied by 2, remove this odd behavior and adjust the numbers...
|
|
|
+ static final int c = 274;// to reach 16K simultainious calls
|
|
|
+ //NOTE: plaintext is run with 16K connections but JSON test is only 512 (optimize for 512)
|
|
|
|
|
|
public FrameworkTest() {
|
|
|
|
|
@@ -64,17 +65,16 @@ public class FrameworkTest implements GreenApp {
|
|
|
|
|
|
//this server works best with -XX:+UseNUMA
|
|
|
this(System.getProperty("host","0.0.0.0"),
|
|
|
- 8080, //default port for test
|
|
|
+ 8080, //default port for test
|
|
|
c,//250 goal, //needed to reach 16K simultainious calls
|
|
|
- (c*2)*4,// c*2, //1<<14 (router to module) //TODO: do we have a minimum in place here?
|
|
|
+ c*4,// c*2, //1<<14 (router to module)
|
|
|
1<<11, //default total size of network buffer used by blocks
|
|
|
Integer.parseInt(System.getProperty("telemetry.port", "-1")),
|
|
|
"tfb-database", // jdbc:postgresql://tfb-database:5432/hello_world
|
|
|
"hello_world",
|
|
|
"benchmarkdbuser",
|
|
|
"benchmarkdbpass"
|
|
|
- );
|
|
|
-
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
public FrameworkTest(String host, int port,
|
|
@@ -164,9 +164,9 @@ public class FrameworkTest implements GreenApp {
|
|
|
.setMaxConnectionBits(maxConnectionBits) //8K max client connections.
|
|
|
.setConcurrentChannelsPerDecryptUnit(concurrentWritesPerChannel)
|
|
|
|
|
|
- //keep the outgoing pipe count small...
|
|
|
- .setConcurrentChannelsPerEncryptUnit(Math.max(4, concurrentWritesPerChannel/10))
|
|
|
-
|
|
|
+ //keep the outgoing pipe count smaller for less scan time...
|
|
|
+ .setConcurrentChannelsPerEncryptUnit(Math.max(4, concurrentWritesPerChannel/2))
|
|
|
+
|
|
|
.setMaxQueueIn(queueLengthOfPendingRequests)
|
|
|
.setMaxRequestSize(maxRequestSize)
|
|
|
|