We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e971df3 commit 672e43aCopy full SHA for 672e43a
1 file changed
src/main/java/opendota/Main.java
@@ -227,7 +227,7 @@ public void run() {
227
// Otherwise, use hostname -i to get internal IP
228
ip = RegisterTask.shellExec("hostname -i");
229
}
230
- long nproc = Math.max(Runtime.getRuntime().availableProcessors(), 10);
+ long nproc = Math.max(Runtime.getRuntime().availableProcessors(), 8);
231
String postCmd = "curl -X POST --max-time 60 -L " + System.getenv().get("SERVICE_REGISTRY_HOST")
232
+ "/register/parser/" + ip + ":5600" + "?size=" + nproc + "&key="
233
+ System.getenv().get("RETRIEVER_SECRET");
0 commit comments