james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [2/7] james-project git commit: JAMES-2446 Use caches for keys & rows
Date Tue, 03 Jul 2018 08:51:40 GMT
JAMES-2446 Use caches for keys & rows


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

Branch: refs/heads/master
Commit: 9ac970d85b0ec1d0be841dd9ebd45fb90497bdd2
Parents: dbb6039
Author: Antoine Duprat <aduprat@linagora.com>
Authored: Tue Jun 26 12:02:12 2018 +0200
Committer: benwa <btellier@linagora.com>
Committed: Tue Jul 3 15:50:37 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/backends/cassandra/DockerCassandraRule.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/9ac970d8/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
----------------------------------------------------------------------
diff --git a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
index 5a8ea95..38ca0eb 100644
--- a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
+++ b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
@@ -88,6 +88,9 @@ public class DockerCassandraRule implements TestRule {
                         .run("echo \"-Xmx1500M\" >> " + JVM_OPTIONS)
                         // disable assertions (modest performance benefit)
                         .run("sed -i -e 's/JVM_OPTS=\"$JVM_OPTS -ea\"/JVM_OPTS=\"$JVM_OPTS
-da\"/' " + CASSANDRA_ENV)
+                        // use caches for keys & rows
+                        .run("sed -i -e \"s/key_cache_size_in_mb:/key_cache_size_in_mb: 256/\"
" + CASSANDRA_YAML)
+                        .run("sed -i -e \"s/row_cache_size_in_mb: 0/row_cache_size_in_mb:
512/\" " + CASSANDRA_YAML)
                         .build()))
             .withCreateContainerCmdModifier(cmd -> cmd.getHostConfig().withBinds(new Binds(new
Bind(tmpFsName, new Volume("/var/lib/cassandra")))))
             .withCreateContainerCmdModifier(cmd -> cmd.withMemory(2000 * 1024 * 1024L))


---------------------------------------------------------------------
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