You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2020/05/22 02:45:57 UTC
[james-project] 04/06: JAMES-3140 Provide sample configuration
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit cdec7773dbfc483679b4410842b4423abd39bb86
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Apr 22 16:24:45 2020 +0700
JAMES-3140 Provide sample configuration
---
.../destination/conf/blob.properties | 23 ++++++++++++++++++++++
.../destination/conf/blob.properties | 22 +++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/dockerfiles/run/guice/cassandra-rabbitmq-ldap/destination/conf/blob.properties b/dockerfiles/run/guice/cassandra-rabbitmq-ldap/destination/conf/blob.properties
index d7509a5..e502373 100644
--- a/dockerfiles/run/guice/cassandra-rabbitmq-ldap/destination/conf/blob.properties
+++ b/dockerfiles/run/guice/cassandra-rabbitmq-ldap/destination/conf/blob.properties
@@ -12,6 +12,29 @@ implementation=objectstorage
# Optional, defaults to 32768 bytes (32KB), must be positive
hybrid.size.threshold=32768
+# ========================================= Cassandra BlobStore Cache ======================================
+# A cassandra cache can be enabled to reduce latency when reading small blobs frequently
+# A dedicated keyspace with a replication factor of one is then used
+# Cache eviction policy is TTL based
+# Only blobs below a given threshold will be stored.
+# To be noted that blobs are stored within a single Cassandra row, hence a low threshold should be used.
+
+# Enable the cache? Optional and default to false. Must be a boolean.
+cache.enable=false
+
+# Cache eviction policy is TTL based. Optional and defaults to 7 days. Must be a duration.
+# Valid units: ms, sec, min, hour, day, week, month, year
+# cache.cassandra.ttl=7days
+
+# Timeout after which this cache should be bypassed. Optional and defaults to 100ms. Can not exceed 1 hour.
+# Must be a duration Valid units: ms, sec, min, hour, day, week, month, year
+# cache.cassandra.timeout=100ms
+
+# Maximum size of stored objects expressed in bytes. Must be strictly positive. Defaults to 8192.
+# Units: bytes, Kib, MiB, GiB, TiB
+# cache.sizeThresholdInBytes=8 KiB
+
+
# ============================================== ObjectStorage ============================================
# ========================================= ObjectStorage Codec ======================================
diff --git a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/blob.properties b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/blob.properties
index d7509a5..9c89c2d 100644
--- a/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/blob.properties
+++ b/dockerfiles/run/guice/cassandra-rabbitmq/destination/conf/blob.properties
@@ -6,6 +6,28 @@
# hybrid is using both objectstorage for unfrequently read or big blobs & cassandra for small, often read blobs
implementation=objectstorage
+# ========================================= Cassandra BlobStore Cache ======================================
+# A cassandra cache can be enabled to reduce latency when reading small blobs frequently
+# A dedicated keyspace with a replication factor of one is then used
+# Cache eviction policy is TTL based
+# Only blobs below a given threshold will be stored.
+# To be noted that blobs are stored within a single Cassandra row, hence a low threshold should be used.
+
+# Enable the cache? Optional and default to false. Must be a boolean.
+cache.enable=false
+
+# Cache eviction policy is TTL based. Optional and defaults to 7 days. Must be a duration.
+# Valid units: ms, sec, min, hour, day, week, month, year
+# cache.cassandra.ttl=7days
+
+# Timeout after which this cache should be bypassed. Optional and defaults to 100ms. Can not exceed 1 hour.
+# Must be a duration Valid units: ms, sec, min, hour, day, week, month, year
+# cache.cassandra.timeout=100ms
+
+# Maximum size of stored objects expressed in bytes. Must be strictly positive. Defaults to 8192.
+# Units: bytes, Kib, MiB, GiB, TiB
+# cache.sizeThresholdInBytes=8 KiB
+
# ========================================= Hybrid BlobStore ======================================
# hybrid is using both objectstorage for unfrequently read or big blobs & cassandra for small, often read blobs
# Size threshold for considering a blob as 'big', causing it to be saved in the low cost blobStore
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org