|
@@ -29,14 +29,14 @@ void main(string[] args) {
|
|
|
version(POSTGRESQL) {
|
|
|
debug {
|
|
|
dbConnection = new Database("postgresql://benchmarkdbuser:[email protected]:5432/hello_world?charset=utf-8");
|
|
|
- dbConnection.getOption().setMinimumConnection(64);
|
|
|
+ dbConnection.getOption().setMinimumConnection(128);
|
|
|
} else {
|
|
|
dbConnection = new Database("postgresql://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world?charset=utf-8");
|
|
|
- dbConnection.getOption().setMinimumConnection(64);
|
|
|
+ dbConnection.getOption().setMinimumConnection(128);
|
|
|
}
|
|
|
- dbConnection.getOption().setMaximumConnection(64);
|
|
|
+ dbConnection.getOption().setMaximumConnection(128);
|
|
|
}
|
|
|
- HttpServer httpServer = new HttpServer("0.0.0.0", port, totalCPUs-1);
|
|
|
+ HttpServer httpServer = new HttpServer("0.0.0.0", port, totalCPUs);
|
|
|
httpServer.onProcessorCreate(delegate HttpProcessor (TcpStream client) {
|
|
|
return new DemoProcessor(client);
|
|
|
});
|