diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/config-include/FlotsamCache.ini.example | 41 | ||||
-rw-r--r-- | bin/config-include/GridCommon.ini.example | 1 |
2 files changed, 40 insertions, 2 deletions
diff --git a/bin/config-include/FlotsamCache.ini.example b/bin/config-include/FlotsamCache.ini.example index c0d7430..2b5d37e 100644 --- a/bin/config-include/FlotsamCache.ini.example +++ b/bin/config-include/FlotsamCache.ini.example | |||
@@ -22,7 +22,44 @@ | |||
22 | ; Set to false for no memory cache | 22 | ; Set to false for no memory cache |
23 | ; assets can be requested several times in short periods | 23 | ; assets can be requested several times in short periods |
24 | ; so even a small memory cache is useful | 24 | ; so even a small memory cache is useful |
25 | MemoryCacheEnabled = true | 25 | MemoryCacheEnabled = false |
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 | ||
26 | 63 | ||
27 | ; Set to false for no file cache | 64 | ; Set to false for no file cache |
28 | FileCacheEnabled = true | 65 | FileCacheEnabled = true |
@@ -32,7 +69,7 @@ | |||
32 | ; this is good if memory is not a problem. | 69 | ; this is good if memory is not a problem. |
33 | ; if memory is a problem then a few seconds may actually save same. | 70 | ; if memory is a problem then a few seconds may actually save same. |
34 | ; see hit rates with console comand: fcache status | 71 | ; see hit rates with console comand: fcache status |
35 | MemoryCacheTimeout = .001 ; 3.6s ie around 4s (1s resolution) | 72 | MemoryCacheTimeout = .016 // one minute |
36 | 73 | ||
37 | ; How long {in hours} to keep assets cached on disk, .5 == 30 minutes | 74 | ; How long {in hours} to keep assets cached on disk, .5 == 30 minutes |
38 | ; Specify 0 if you do not want your disk cache to expire | 75 | ; Specify 0 if you do not want your disk cache to expire |
diff --git a/bin/config-include/GridCommon.ini.example b/bin/config-include/GridCommon.ini.example index 0922cf5..10a5b47 100644 --- a/bin/config-include/GridCommon.ini.example +++ b/bin/config-include/GridCommon.ini.example | |||
@@ -85,6 +85,7 @@ | |||
85 | ; Change this to your grid-wide inventory server | 85 | ; Change this to your grid-wide inventory server |
86 | ; | 86 | ; |
87 | InventoryServerURI = "${Const|BaseURL}:${Const|PrivatePort}" | 87 | InventoryServerURI = "${Const|BaseURL}:${Const|PrivatePort}" |
88 | ;MaxRetries = 0 | ||
88 | 89 | ||
89 | [GridInfo] | 90 | [GridInfo] |
90 | ; | 91 | ; |