From c6d555e1f3be6f3579e1c5bd9dd16d744ce595c5 Mon Sep 17 00:00:00 2001 From: fjy Date: Tue, 4 Nov 2014 10:18:27 -0800 Subject: [PATCH] better default --- .../main/java/io/druid/server/initialization/ServerConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/io/druid/server/initialization/ServerConfig.java b/server/src/main/java/io/druid/server/initialization/ServerConfig.java index 6f432c85ec1..a906ed92abf 100644 --- a/server/src/main/java/io/druid/server/initialization/ServerConfig.java +++ b/server/src/main/java/io/druid/server/initialization/ServerConfig.java @@ -31,7 +31,7 @@ public class ServerConfig { @JsonProperty @Min(1) - private int numThreads = 30; + private int numThreads = Math.max(10, (Runtime.getRuntime().availableProcessors() * 17) / 16 + 2) + 30; @JsonProperty @NotNull