Unload the AptPackages caches after a period of inactivity.
[quix0rs-apt-p2p.git] / apt-dht.conf
index 6c9b055097a28b84876f8e1db2966f607a103195..7f42e4d31822fe30147cbb5a1c7499b52495a2cd 100644 (file)
@@ -29,6 +29,11 @@ CACHE_DIR = /var/cache/apt-dht
 # Whether it's OK to use an IP addres from a known local/private range
 LOCAL_OK = no
 
+# Unload the packages cache after an interval of inactivity this long.
+# The packages cache uses a lot of memory, and only takes a few seconds
+# to reload when a new request arrives.
+UNLOAD_PACKAGES_CACHE = 5m
+
 # Which DHT implementation to use.
 # It must be possile to do "from <DHT>.DHT import DHT" to get a class that
 # implements the IDHT interface. There should also be a similarly named
@@ -60,7 +65,7 @@ K = 8
 HASH_LENGTH = 160
 
 # interval between saving the running state
-CHECKPOINT_INTERVAL = 15m
+CHECKPOINT_INTERVAL = 5m
 
 # concurrent number of calls per find node/value request!
 CONCURRENT_REQS = 4