diff options
author | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-09-16 21:44:11 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-09-22 12:07:20 +0200 |
commit | 600f1bd16ed55d83b66c2e36fc0376a4d6712118 (patch) | |
tree | 8803e2cd30e870d68ac824a37491cb3e67bea04e /server/sonar-search/src/main/java/org/sonar | |
parent | 14f36bfb794a37ac67b643924e8608421a8f549c (diff) | |
download | sonarqube-600f1bd16ed55d83b66c2e36fc0376a4d6712118.tar.gz sonarqube-600f1bd16ed55d83b66c2e36fc0376a4d6712118.zip |
SONAR-5531 - Updated ES refresh while synchronizing
Diffstat (limited to 'server/sonar-search/src/main/java/org/sonar')
-rw-r--r-- | server/sonar-search/src/main/java/org/sonar/search/SearchServer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java index 1433bd71b6e..c1b3bb4c150 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java @@ -88,9 +88,14 @@ public class SearchServer implements Monitored { .put("discovery.zen.ping.multicast.enabled", "false") // Index storage policies + .put("index.refresh_interval", "30") .put("index.number_of_shards", "1") .put("index.number_of_replicas", MINIMUM_INDEX_REPLICATION) .put("index.store.type", "mmapfs") +// .put("indices.store.throttle.type", "merge") +// .put("indices.store.throttle.max_bytes_per_sec", "500mb") + .put("index.merge.scheduler.max_thread_count", + Math.max(1, Math.min(3, Runtime.getRuntime().availableProcessors() / 2))) // Install our own listUpdate scripts .put("script.default_lang", "native") |