aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/config-include/FlotsamCache.ini.example
diff options
context:
space:
mode:
authorMelanie Thielker2016-12-29 15:47:46 +0000
committerMelanie Thielker2016-12-29 15:47:46 +0000
commit07b48fd58c343d18b8ce64179e344439070511e8 (patch)
tree1a2bfb247699b8b6b94fa9d8146ee5341a08011f /bin/config-include/FlotsamCache.ini.example
parentActually rename the file, too (diff)
downloadopensim-SC_OLD-07b48fd58c343d18b8ce64179e344439070511e8.zip
opensim-SC_OLD-07b48fd58c343d18b8ce64179e344439070511e8.tar.gz
opensim-SC_OLD-07b48fd58c343d18b8ce64179e344439070511e8.tar.bz2
opensim-SC_OLD-07b48fd58c343d18b8ce64179e344439070511e8.tar.xz
Add negative caching to flotsam cache. Prevents scripts from hammering the asset server
Diffstat (limited to '')
-rw-r--r--bin/config-include/FlotsamCache.ini.example37
1 files changed, 37 insertions, 0 deletions
diff --git a/bin/config-include/FlotsamCache.ini.example b/bin/config-include/FlotsamCache.ini.example
index 917ea46..2b5d37e 100644
--- a/bin/config-include/FlotsamCache.ini.example
+++ b/bin/config-include/FlotsamCache.ini.example
@@ -24,6 +24,43 @@
24 ; so even a small memory cache is useful 24 ; so even a small memory cache is useful
25 MemoryCacheEnabled = false 25 MemoryCacheEnabled = false
26 26
27 ; If a memory cache hit happens, or the asset is still in memory
28 ; due to other causes, update the timestamp on the disk file anyway.
29 ; Don't turn this on unless you share your asset cache between simulators
30 ; AND use an external process, e.g. cron job, to clean it up.
31 UpdateFileTimeOnCacheHit = false
32
33 ; Enabling this will cache negative fetches. If an asset is negative-cached
34 ; it will not be re-requested from the asset server again for a while.
35 ; Generally, this is a good thing.
36 ;
37 ; Regular expiration settings (non-sliding) mean that the asset will be
38 ; retried after the time has expired. Sliding expiration means that
39 ; the time the negative cache will keep the asset is refreshed each
40 ; time a fetch is attempted. Use sliding expiration if you have rogue
41 ; scripts hammering the asset server with requests for nonexistent
42 ; assets.
43 ;
44 ; There are two cases where negative caching may cause issues:
45 ;
46 ; 1 - If an invalid asset is repeatedly requested by a script and that asset is
47 ; subsequently created, it will not be seen until fcache clear
48 ; is used. This is a very theoretical scenario since UUID collisions
49 ; are deemed to be not occuring in practice.
50 ; This can only become an issue with sliding expiration time.
51 ;
52 ; 2 - If the asset service is clustered, an asset may not have propagated
53 ; to all cluster members when it is first attempted to fetch it.
54 ; This may theoretically occur with networked vendor systems and
55 ; would lead to an asset not found message. However, after the
56 ; expiration time has elapsed, the asset will the be fetchable.
57 ;
58 ; The defaults below are suitable for all small to medium installations
59 ; including grids.
60 NegativeCacheEnabled = true
61 NegativeCacheTimeout = 120
62 NegativeCacheSliding = false
63
27 ; Set to false for no file cache 64 ; Set to false for no file cache
28 FileCacheEnabled = true 65 FileCacheEnabled = true
29 66