|
@@ -16,6 +16,7 @@ import com.ociweb.pronghorn.network.ServerSocketWriterStage;
|
|
|
|
|
|
import io.reactiverse.pgclient.PgClient;
|
|
|
import io.reactiverse.pgclient.PgPoolOptions;
|
|
|
+import io.vertx.core.VertxOptions;
|
|
|
|
|
|
public class FrameworkTest implements GreenApp {
|
|
|
|
|
@@ -51,15 +52,16 @@ 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
|
|
|
// rebase before using this: [ci fw-only Java/greenlightning]
|
|
|
|
|
|
//this server works best with -XX:+UseNUMA
|
|
|
this(System.getProperty("host","0.0.0.0"),
|
|
|
8080, //default port for test
|
|
|
- 13, //default concurrency per track
|
|
|
+ 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
|
|
|
Integer.parseInt(System.getProperty("telemetry.port", "-1")),
|
|
@@ -67,7 +69,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
"hello_world",
|
|
|
"benchmarkdbuser",
|
|
|
"benchmarkdbpass"
|
|
|
- );
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
public FrameworkTest(String host, int port,
|
|
@@ -89,7 +91,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
this.minMemoryOfInputPipes = minMemoryOfInputPipes;
|
|
|
this.telemetryPort = telemetryPort;
|
|
|
this.pipelineBits = 14;//max concurrent in flight database requests 1<<pipelineBits
|
|
|
-
|
|
|
+
|
|
|
this.dbCallMaxResponseCount = 1<<9;
|
|
|
this.jsonMaxResponseCount = 3*(1<<14);
|
|
|
|
|
@@ -97,7 +99,9 @@ public class FrameworkTest implements GreenApp {
|
|
|
this.jsonMaxResponseSize = 1<<8;
|
|
|
|
|
|
this.maxQueueOut = 64;
|
|
|
- this.maxConnectionBits = 10;
|
|
|
+
|
|
|
+ this.maxConnectionBits = 14; //no need for more than 16K connections
|
|
|
+
|
|
|
this.maxRequestSize = 1<<9;
|
|
|
|
|
|
if (!"127.0.0.1".equals(System.getProperty("host",null))) {
|
|
@@ -149,7 +153,7 @@ public class FrameworkTest implements GreenApp {
|
|
|
@Override
|
|
|
public void declareConfiguration(GreenFramework framework) {
|
|
|
|
|
|
- framework.setDefaultRate(10_000);
|
|
|
+ framework.setDefaultRate(20_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
|