summaryrefslogtreecommitdiffstats
path: root/conf/server.conf
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-27 12:56:35 +0200
committerSimon Rettberg2020-07-27 12:56:35 +0200
commit1f212fa1fd0a381b42175dc1bac79baa164e1e45 (patch)
tree7d911d7fe40817cbb433acebc3ed735eafe9c6df /conf/server.conf
parent[FUSE] Tweak timeout values to prevent stale status file (diff)
parent[SERVER] Fix: NULL pointer access in saveLoadAllCacheMaps() (diff)
downloaddnbd3-1f212fa1fd0a381b42175dc1bac79baa164e1e45.tar.gz
dnbd3-1f212fa1fd0a381b42175dc1bac79baa164e1e45.tar.xz
dnbd3-1f212fa1fd0a381b42175dc1bac79baa164e1e45.zip
Merge branch 'no-working-flag' into fuse_ll
Diffstat (limited to 'conf/server.conf')
-rw-r--r--conf/server.conf19
1 files changed, 17 insertions, 2 deletions
diff --git a/conf/server.conf b/conf/server.conf
index 5f11ed8..d9d4094 100644
--- a/conf/server.conf
+++ b/conf/server.conf
@@ -13,9 +13,10 @@ isProxy=true
backgroundReplication=true
; minimum amount of connected clients for background replication to kick in
bgrMinClients=0
-; if isProxy==true and another proxy requests and image that we don't have, should we ask our alt-servers for it?
+; if another proxy requests and image that we don't have, should we ask our alt-servers for it?
lookupMissingForProxy=true
-; create sparse files instead of preallocating; ignored if backgroundReplication=true -- only recommended if cache space is small
+; create sparse files instead of preallocating; ignored if backgroundReplication=true
+; -- only recommended if cache space is small
sparseFiles=false
; if true (which is the default), images will automatically be removed from the list if they can't be accessed
removeMissingImages=true
@@ -27,6 +28,20 @@ clientTimeout=15000
closeUnusedFd=false
; set this to true to load files without the .r[0-9]+ extension too, assuming RID=1
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