aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search/src/main/java/org/sonar
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@sonarsource.com>2014-09-23 11:50:07 +0200
committerStephane Gamard <stephane.gamard@sonarsource.com>2014-09-23 13:58:17 +0200
commit99f8c6a3ba17602df4ad66052fc70ca3a6897285 (patch)
tree6290a747f125290629cefd8893db8ef9d09c7308 /server/sonar-search/src/main/java/org/sonar
parent5fd405dc6b1c3fea7cf3611fa9244c9c21a28853 (diff)
downloadsonarqube-99f8c6a3ba17602df4ad66052fc70ca3a6897285.tar.gz
sonarqube-99f8c6a3ba17602df4ad66052fc70ca3a6897285.zip
SONAR-5531 - Optimized Issue index for mass indexing
Diffstat (limited to 'server/sonar-search/src/main/java/org/sonar')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchServer.java6
1 files changed, 5 insertions, 1 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 1c2ffdc57e7..f74d51fce42 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,7 +88,7 @@ public class SearchServer implements Monitored {
.put("discovery.zen.ping.multicast.enabled", "false")
// Index storage policies
- .put("index.refresh_interval", "30")
+ .put("index.refresh_interval", "30s")
.put("index.number_of_shards", "1")
.put("index.number_of_replicas", MINIMUM_INDEX_REPLICATION)
.put("index.store.type", "mmapfs")
@@ -96,6 +96,10 @@ public class SearchServer implements Monitored {
.put("index.merge.scheduler.max_thread_count",
Math.max(1, Math.min(3, Runtime.getRuntime().availableProcessors() / 2)))
+ // Optimization TBD (second one must have ES > 1.2
+ // .put("indices.memory.index_buffer_size", "512mb")
+ // .put("index.translog.flush_threshold_size", "1gb")
+
// Install our own listUpdate scripts
.put("script.default_lang", "native")
.put("script.native." + ListUpdate.NAME + ".type", ListUpdate.UpdateListScriptFactory.class.getName())