james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [4/4] james-project git commit: JAMES-1693 Speed ElasticSearch startup by using in memory structure where possible
Date Tue, 01 Mar 2016 10:27:41 GMT
JAMES-1693 Speed ElasticSearch startup by using in memory structure where possible


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d8ecb4c7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d8ecb4c7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d8ecb4c7

Branch: refs/heads/master
Commit: d8ecb4c72475340a4e33f71842654acd56e2e9f1
Parents: e7f641d
Author: Benoit Tellier <btellier@linagora.com>
Authored: Mon Feb 22 13:15:37 2016 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Tue Mar 1 17:26:18 2016 +0700

----------------------------------------------------------------------
 .../apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/d8ecb4c7/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java
----------------------------------------------------------------------
diff --git a/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java
b/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java
index fb3faa9..8c066cc 100644
--- a/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java
+++ b/mailbox/elasticsearch/src/test/java/org/apache/james/mailbox/elasticsearch/EmbeddedElasticSearch.java
@@ -70,6 +70,8 @@ public class EmbeddedElasticSearch extends ExternalResource {
     public void before() throws IOException {
         node = nodeBuilder().local(true)
             .settings(ImmutableSettings.builder()
+                .put("index.store.type", "memory")
+                .put("index.store.fs.memory.enabled", "true")
                 .put("path.data", folder.get().toAbsolutePath())
                 .put("script.disable_dynamic",true)
                 .build())


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message