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 f0d359a887c53b299c7a0b1071d93ec4291d1cd3 Author: Rémi Kowalski <[email protected]> AuthorDate: Thu Oct 15 10:48:34 2020 +0200 JAMES-3028 define implementation in blob properties for cassandra docker images --- .../destination/conf/blob.properties | 41 ++++++++++++++++++---- .../cassandra/destination/conf/blob.properties | 41 ++++++++++++++++++---- 2 files changed, 70 insertions(+), 12 deletions(-) diff --git a/dockerfiles/run/guice/cassandra-ldap/destination/conf/blob.properties b/dockerfiles/run/guice/cassandra-ldap/destination/conf/blob.properties index 2ec4035..c999f80 100644 --- a/dockerfiles/run/guice/cassandra-ldap/destination/conf/blob.properties +++ b/dockerfiles/run/guice/cassandra-ldap/destination/conf/blob.properties @@ -1,10 +1,9 @@ -# ============================================ Blobs Exporting ============================================== -# Read https://james.apache.org/server/config-blob-export.html for further details +# ============================================= BlobStore Implementation ================================== +# Read https://james.apache.org/server/config-blobstore.html for further details -# Choosing blob exporting mechanism, allowed mechanism are: localFile, linshare -# LinShare is a file sharing service, will be explained in the below section -# Optional, default is localFile -blob.export.implementation=localFile +# Choose your BlobStore implementation +# Mandatory, allowed values are: cassandra, s3 +implementation=cassandra # ========================================= ObjectStorage deduplication ======================================== # If you choose to enable deduplication, the mails with the same content will be stored only once. @@ -13,6 +12,36 @@ blob.export.implementation=localFile # Mandatory, Allowed values are: true, false deduplication.enable=false +# ========================================= 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 + +# ============================================ Blobs Exporting ============================================== +# Read https://james.apache.org/server/config-blob-export.html for further details + +# Choosing blob exporting mechanism, allowed mechanism are: localFile, linshare +# LinShare is a file sharing service, will be explained in the below section +# Optional, default is localFile +blob.export.implementation=localFile + # ======================================= Local File Blobs Exporting ======================================== # Optional, directory to store exported blob, directory path follows James file system format # default is file://var/blobExporting diff --git a/dockerfiles/run/guice/cassandra/destination/conf/blob.properties b/dockerfiles/run/guice/cassandra/destination/conf/blob.properties index 2ec4035..c999f80 100644 --- a/dockerfiles/run/guice/cassandra/destination/conf/blob.properties +++ b/dockerfiles/run/guice/cassandra/destination/conf/blob.properties @@ -1,10 +1,9 @@ -# ============================================ Blobs Exporting ============================================== -# Read https://james.apache.org/server/config-blob-export.html for further details +# ============================================= BlobStore Implementation ================================== +# Read https://james.apache.org/server/config-blobstore.html for further details -# Choosing blob exporting mechanism, allowed mechanism are: localFile, linshare -# LinShare is a file sharing service, will be explained in the below section -# Optional, default is localFile -blob.export.implementation=localFile +# Choose your BlobStore implementation +# Mandatory, allowed values are: cassandra, s3 +implementation=cassandra # ========================================= ObjectStorage deduplication ======================================== # If you choose to enable deduplication, the mails with the same content will be stored only once. @@ -13,6 +12,36 @@ blob.export.implementation=localFile # Mandatory, Allowed values are: true, false deduplication.enable=false +# ========================================= 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 + +# ============================================ Blobs Exporting ============================================== +# Read https://james.apache.org/server/config-blob-export.html for further details + +# Choosing blob exporting mechanism, allowed mechanism are: localFile, linshare +# LinShare is a file sharing service, will be explained in the below section +# Optional, default is localFile +blob.export.implementation=localFile + # ======================================= Local File Blobs Exporting ======================================== # Optional, directory to store exported blob, directory path follows James file system format # default is file://var/blobExporting --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
