|
@@ -52,7 +52,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
public static String connectionDB = "testdb";
|
|
|
public static String connectionUser = "postgres";
|
|
|
public static String connectionPassword = "postgres";
|
|
|
-
|
|
|
+
|
|
|
public FrameworkTest() {
|
|
|
|
|
|
// use this in commit messages to narrow travis testing to just this project
|
|
@@ -61,15 +61,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
|
|
|
- 13, //13*2 for 26 default concurrency per track (needed to reach 512)
|
|
|
- 2*(1<<14), //request queue length
|
|
|
- 1<<22, //default total size of network buffer used by blocks
|
|
|
+ 391, //needed to reach 16K simultainious calls
|
|
|
+ 1<<10, // (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,
|
|
@@ -92,15 +93,14 @@ public class FrameworkTest implements GreenApp {
|
|
|
this.telemetryPort = telemetryPort;
|
|
|
this.pipelineBits = 14;//max concurrent in flight database requests 1<<pipelineBits
|
|
|
|
|
|
- this.dbCallMaxResponseCount = 1<<9;
|
|
|
- this.jsonMaxResponseCount = 3*(1<<14);
|
|
|
+ this.dbCallMaxResponseCount = 1<<6;
|
|
|
+ this.jsonMaxResponseCount = 1<<10;
|
|
|
|
|
|
this.dbCallMaxResponseSize = 20_000; //for 500 mult db call in JSON format
|
|
|
this.jsonMaxResponseSize = 1<<8;
|
|
|
|
|
|
- this.maxQueueOut = 64;
|
|
|
-
|
|
|
- this.maxConnectionBits = 14; //no need for more than 16K connections
|
|
|
+ this.maxQueueOut = 8;
|
|
|
+ this.maxConnectionBits = 15; //32K connections, default is larger but this is all we need
|
|
|
|
|
|
this.maxRequestSize = 1<<9;
|
|
|
|
|
@@ -153,7 +153,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
@Override
|
|
|
public void declareConfiguration(GreenFramework framework) {
|
|
|
|
|
|
- framework.setDefaultRate(20_000);
|
|
|
+ framework.setDefaultRate(200_000);
|
|
|
|
|
|
//for 14 cores this is expected to use less than 16G, must use next largest prime to ensure smaller groups are not multiples.
|
|
|
framework.useHTTP1xServer(bindPort, this::parallelBehavior) //standard auto-scale
|
|
@@ -212,7 +212,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
framework.enableTelemetryLogging();
|
|
|
}
|
|
|
|
|
|
- framework.setTimerPulseRate(20 * 1000);//3x per minute
|
|
|
+ framework.setTimerPulseRate(60 * 1000);//1x per minute
|
|
|
}
|
|
|
|
|
|
|