Skip to content

Commit

Permalink
add hotrod worker threads parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielBCN committed May 30, 2018
1 parent 7ed9753 commit 22f9a63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/main/java/org/infinispan/creson/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public class Server {
@Option(name = "-userLibs", usage = "directory containing the user libraries")
private String userLib = userLibraries;

@Option(name = "-wt", usage = "number of HotRod worker threads")
private int workerThreads = 100;

private volatile boolean running = false;

public Server() {
Expand Down Expand Up @@ -145,7 +148,7 @@ public void doMain(String[] args) {
hbuilder.proxyPort(proxyPort);
}

hbuilder.workerThreads(100);
hbuilder.workerThreads(workerThreads);
hbuilder.tcpNoDelay(true);

final HotRodServer server = new HotRodServer();
Expand Down

0 comments on commit 22f9a63

Please sign in to comment.