summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorSimon Rettberg2019-09-05 18:15:52 +0200
committerSimon Rettberg2019-09-05 18:15:52 +0200
commitbf665f59411840c60b6e3c9ac33f28a818233c0a (patch)
tree81e7307150e89710b7f3e9b628b694c0b2e54cfa /conf
parent[SERVER] integrity checker: Improve flushing logic (diff)
downloaddnbd3-bf665f59411840c60b6e3c9ac33f28a818233c0a.tar.gz
dnbd3-bf665f59411840c60b6e3c9ac33f28a818233c0a.tar.xz
dnbd3-bf665f59411840c60b6e3c9ac33f28a818233c0a.zip
[SERVER] Introduce autoFreeDiskSpaceDelay
This setting allows you to control the formerly hard-coded timeout of 10 hours before a proxy would start deleting old images in order to free up space for new images. Setting it to -1 entirely disables automatic deletion, in case you have an external process for freeing up disk space.
Diffstat (limited to 'conf')
-rw-r--r--conf/server.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/server.conf b/conf/server.conf
index a101f34..a15092f 100644
--- a/conf/server.conf
+++ b/conf/server.conf
@@ -31,6 +31,17 @@ vmdkLegacyMode=false
; Don't set the server flag when connecting to alt-servers
; Intended for if the proxy is used for on-client caching
pretendClient=false
+; When running in proxy mode and running out of space, automatically delete oldest image(s) to make
+; the newly replicated image fit. In sparse mode, this will make sure at least 2GB of free space are
+; available when replicating a new image. During normal operation, it will free at least 256MB whenever
+; an attempt to write more data to cache fails. In non-sparse mode, whenever a new image is replicated,
+; as much space as is required to store the entire image will be made available.
+; However, after startup the proxy will refuse to delete any images for the time span given below, to be
+; able to gather up to date usage information for the images available. If unitless, the value is
+; interpreted in seconds. Valid suffixes are m, h, d.
+; Setting this to -1 disables deletion of images. If the cache partition is full, no more images will
+; be replicated unless you manually free up more disk space.
+autoFreeDiskSpaceDelay=10h
[limits]
maxClients=2000