We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a837e commit c3de5d2Copy full SHA for c3de5d2
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 = Runtime.getRuntime().availableProcessors();
+ 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