Unverified Commit c1c7081e authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use heapcache

parent b0be4920
Pipeline #24154 passed with stage
in 5 minutes and 19 seconds
......@@ -16,7 +16,7 @@ ADD ./cantaloupe.properties /cantaloupe/cantaloupe.properties
FROM openjdk:11-jre-slim
ENTRYPOINT ["/home/cantaloupe/run.sh", "4.1.7"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx2g"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx4g", "-Xms 800m"]
HEALTHCHECK --start-period=30s CMD curl -sf${HTTP_PORT} -o /dev/null || exit 1
......@@ -470,7 +470,7 @@ cache.server.derivative.enabled = true
# Available values are `FilesystemCache`, `JdbcCache`, `RedisCache`,
# `HeapCache`, `S3Cache`, and `AzureStorageCache`.
cache.server.derivative = RedisCache
cache.server.derivative = HeapCache
# Amount of time derivative cache content remains valid. Set to blank or 0
# for forever.
......@@ -478,7 +478,7 @@ cache.server.derivative.ttl_seconds = 2592000
# Whether to use the Java heap as a "level 1" cache for image infos, either
# independently or in front of a "level 2" derivative cache (if enabled).
cache.server.info.enabled = true
cache.server.info.enabled = false
# If true, when a source reports that the requested source image has gone
# missing, all cached information relating to it (if any) will be deleted.
......@@ -523,7 +523,7 @@ FilesystemCache.dir.name_length = 2
# Target cache size, in bytes or a number ending in M, MB, G, GB, etc.
# This is not a hard limit, and may be transiently exceeded.
# Ensure your heap can accommodate this size.
HeapCache.target_size = 2G
HeapCache.target_size = 3G
# If true, the cache contents will be written to a file on exit and during
# cache worker shifts, and read back in at startup.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment