mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Heart surgery no.2: the inventory service hooks.
Several improvements in the connectors themselves. Several improvements in configurations. Needed to add a hack in IUserService and UserManagerBase, to be removed when that service is refactored.
This commit is contained in:
13
bin/config-include/CenomeCache.ini.example
Normal file
13
bin/config-include/CenomeCache.ini.example
Normal file
@@ -0,0 +1,13 @@
|
||||
[AssetCache]
|
||||
;;
|
||||
;; Options for CenmoeAssetCache
|
||||
;;
|
||||
|
||||
; 256 MB (default: 134217728)
|
||||
MaxSize = 268435456
|
||||
|
||||
; How many assets it is possible to store cache (default: 4096)
|
||||
MaxCount = 16384
|
||||
|
||||
; Expiration time - 1 hour (default: 30 minutes)
|
||||
ExpirationTime = 60
|
||||
39
bin/config-include/FlotsamCache.ini.example
Normal file
39
bin/config-include/FlotsamCache.ini.example
Normal file
@@ -0,0 +1,39 @@
|
||||
[AssetCache]
|
||||
;;
|
||||
;; Options for FlotsamAssetCache
|
||||
;;
|
||||
|
||||
; cache directory can be shared by multiple instances
|
||||
CacheDirectory = ./assetcache
|
||||
; Other examples:
|
||||
;CacheDirectory = /directory/writable/by/OpenSim/instance
|
||||
|
||||
; Log level
|
||||
; 0 - (Error) Errors only
|
||||
; 1 - (Info) Hit Rate Stats + Level 0
|
||||
; 2 - (Debug) Cache Activity (Reads/Writes) + Level 1
|
||||
;
|
||||
LogLevel = 0
|
||||
|
||||
; How often should hit rates be displayed (given in AssetRequests)
|
||||
; 0 to disable
|
||||
HitRateDisplay = 100
|
||||
|
||||
; Set to false for disk cache only.
|
||||
MemoryCacheEnabled = true
|
||||
|
||||
; How long {in hours} to keep assets cached in memory, .5 == 30 minutes
|
||||
MemoryCacheTimeout = 2
|
||||
|
||||
; How long {in hours} to keep assets cached on disk, .5 == 30 minutes
|
||||
; Specify 0 if you do not want your disk cache to expire
|
||||
FileCacheTimeout = 0
|
||||
|
||||
; How often {in hours} should the disk be checked for expired filed
|
||||
; Specify 0 to disable expiration checking
|
||||
FileCleanupTimer = .166 ;roughly every 10 minutes
|
||||
|
||||
; If WAIT_ON_INPROGRESS_REQUESTS has been defined then this specifies how
|
||||
; long (in miliseconds) to block a request thread while trying to complete
|
||||
; an existing write to disk.
|
||||
; WaitOnInprogressTimeout = 3000
|
||||
@@ -1,7 +1,13 @@
|
||||
;;
|
||||
;; Please don't change this file.
|
||||
;; All optional settings are in GridCommon.ini.example,
|
||||
;; which you can copy and change.
|
||||
;;
|
||||
|
||||
[Includes]
|
||||
Include-Common = "config-include/GridCommon.ini"
|
||||
Include-Stable = "config-include/StableSettings.ini"
|
||||
|
||||
[Modules]
|
||||
AssetServices = "RemoteAssetServicesConnector"
|
||||
InventoryServices = "RemoteInventoryServicesConnector"
|
||||
|
||||
|
||||
@@ -1,43 +1,3 @@
|
||||
[Modules]
|
||||
;AssetCaching = "CoreAssetCache"
|
||||
;AssetCaching = "GlynnTuckerAssetCache"
|
||||
;AssetCaching = "CenomeMemoryAssetCache"
|
||||
AssetCaching = "FlotsamAssetCache"
|
||||
|
||||
[AssetCache]
|
||||
; cache directory can be shared by multiple instances
|
||||
CacheDirectory = /directory/writable/by/OpenSim/instance
|
||||
|
||||
; Log level
|
||||
; 0 - (Error) Errors only
|
||||
; 1 - (Info) Hit Rate Stats + Level 0
|
||||
; 2 - (Debug) Cache Activity (Reads/Writes) + Level 1
|
||||
;
|
||||
LogLevel = 0
|
||||
|
||||
; How often should hit rates be displayed (given in AssetRequests)
|
||||
; 0 to disable
|
||||
HitRateDisplay = 100
|
||||
|
||||
; Set to false for disk cache only.
|
||||
MemoryCacheEnabled = true
|
||||
|
||||
; How long {in hours} to keep assets cached in memory, .5 == 30 minutes
|
||||
MemoryCacheTimeout = 2
|
||||
|
||||
; How long {in hours} to keep assets cached on disk, .5 == 30 minutes
|
||||
; Specify 0 if you do not want your disk cache to expire
|
||||
FileCacheTimeout = 0
|
||||
|
||||
; How often {in hours} should the disk be checked for expired filed
|
||||
; Specify 0 to disable expiration checking
|
||||
FileCleanupTimer = .166 ;roughly every 10 minutes
|
||||
|
||||
; If WAIT_ON_INPROGRESS_REQUESTS has been defined then this specifies how
|
||||
; long (in miliseconds) to block a request thread while trying to complete
|
||||
; an existing write to disk.
|
||||
; WaitOnInprogressTimeout = 3000
|
||||
|
||||
[AssetService]
|
||||
|
||||
DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
|
||||
@@ -48,3 +8,21 @@
|
||||
;
|
||||
AssetServerURI = "http://myassetserver.com:8003"
|
||||
|
||||
[InventoryService]
|
||||
;
|
||||
; change this to your grid-wide asset server
|
||||
;
|
||||
InventoryServerURI = "http://myassetserver.com:8004"
|
||||
|
||||
|
||||
[Modules]
|
||||
;; Choose 0 or 1 cache modules, and the corresponding config file, if it exists.
|
||||
;; Copy the config .example file into your own .ini file and change configs there
|
||||
|
||||
AssetCaching = "FlotsamAssetCache"
|
||||
Include-FlotsamCache = "config-include/FlotsamCache.ini"
|
||||
|
||||
;AssetCaching = "CenomeMemoryAssetCache"
|
||||
;Include-CenomeCache = "config-include/CenomeCache.ini"
|
||||
|
||||
;AssetCaching = "GlynnTuckerAssetCache"
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
;;
|
||||
;; Please don't change this file.
|
||||
;; All optional settings are in GridCommon.ini.example,
|
||||
;; which you can copy and change.
|
||||
;;
|
||||
|
||||
[Includes]
|
||||
Include-Common = "config-include/GridCommon.ini"
|
||||
Include-Stable = "config-include/StableSettings.ini"
|
||||
|
||||
[Modules]
|
||||
AssetServices = "HGAssetBroker"
|
||||
|
||||
InventoryServices = "HGInventoryBroker"
|
||||
|
||||
[AssetService]
|
||||
LocalGridAssetService = "OpenSim.Services.Connectors.dll:AssetServicesConnector"
|
||||
HypergridAssetService = "OpenSim.Services.AssetService.dll:HGAssetService"
|
||||
|
||||
[InventoryService]
|
||||
LocalGridInventoryService = "OpenSim.Services.Connectors.dll:InventoryServicesConnector"
|
||||
HypergridInventoryService = "OpenSim.Services.InventoryService.dll:HGInventoryService"
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
[AssetCache]
|
||||
;; ---- Optional configurations for CoreAssetCache
|
||||
; Number of buckets for assets
|
||||
;CacheBuckets = 32768
|
||||
;; ---- endof CoreAssetCache ----------------
|
||||
|
||||
;; ---- Optional configurations for CenomeMemoryAssetCache
|
||||
; Cache size 128 MB (default: 134217728)
|
||||
; MaxSize = 134217728
|
||||
; Maximal asset count
|
||||
; MaxCount = 4096
|
||||
; Asset's expiration time (minutes)
|
||||
; ExpirationTime = 30
|
||||
;; ---- endof CenomeMemoryAssetCache --------
|
||||
|
||||
;; ---- Optional configurations for FlotsamAssetCache
|
||||
|
||||
; Set to false for disk cache only.
|
||||
MemoryCacheEnabled = true
|
||||
|
||||
; How long {in hours} to keep assets cached in memory, .5 == 30 minutes
|
||||
MemoryCacheTimeout = 2
|
||||
|
||||
; How often {in hours} should the disk be checked for expired filed
|
||||
; Specify 0 to disable expiration checking
|
||||
FileCleanupTimer = .166 ;roughly every 10 minutes
|
||||
|
||||
;; ---- endof FlotsamAssetCache --------
|
||||
@@ -1,11 +1,20 @@
|
||||
;;
|
||||
;; Please don't change this file.
|
||||
;; All optional settings are in StandaloneCommon.ini.example,
|
||||
;; which you can copy and change.
|
||||
;;
|
||||
|
||||
[Includes]
|
||||
Include-Common = "config-include/StandaloneCommon.ini"
|
||||
Include-Stable = "config-include/StableSettings.ini"
|
||||
|
||||
[Modules]
|
||||
AssetServices = "LocalAssetServicesConnector"
|
||||
InventoryServices = "LocalInventoryServicesConnector"
|
||||
|
||||
|
||||
[AssetService]
|
||||
LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService"
|
||||
|
||||
[InventoryService]
|
||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:InventoryService"
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
[Modules]
|
||||
;AssetCaching = "CoreAssetCache"
|
||||
;AssetCaching = "GlynnTuckerAssetCache"
|
||||
AssetCaching = "CenomeMemoryAssetCache"
|
||||
|
||||
[AssetService]
|
||||
[DatabaseService]
|
||||
;
|
||||
;### Choose the DB
|
||||
;
|
||||
@@ -13,6 +8,20 @@
|
||||
;StorageProvider = "OpenSim.Data.MySQL.dll"
|
||||
;ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=***;"
|
||||
|
||||
[AssetService]
|
||||
|
||||
DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
|
||||
AssetLoaderArgs = "assets/AssetSets.xml"
|
||||
|
||||
|
||||
[Modules]
|
||||
;; Choose 0 or 1 cache modules, and the corresponding config file, if it exists.
|
||||
;; Copy the config .example file into your own .ini file and change configs there
|
||||
|
||||
;AssetCaching = "GlynnTuckerAssetCache"
|
||||
|
||||
;AssetCaching = "FlotsamAssetCache"
|
||||
;Include-FlotsamCache = "config-include/FlotsamCache.ini"
|
||||
|
||||
AssetCaching = "CenomeMemoryAssetCache"
|
||||
Include-CenomeCache = "config-include/CenomeCache.ini"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
;;
|
||||
;; Please don't change this file.
|
||||
;; All optional settings are in StandaloneCommon.ini.example,
|
||||
;; which you can copy and change.
|
||||
;;
|
||||
|
||||
[Includes]
|
||||
Include-Common = "config-include/StandaloneCommon.ini"
|
||||
Include-Stable = "config-include/StableSettings.ini"
|
||||
|
||||
[Modules]
|
||||
AssetServices = "HGAssetBroker"
|
||||
InventoryServices = "HGInventoryBroker"
|
||||
|
||||
|
||||
[AssetService]
|
||||
@@ -14,3 +20,10 @@
|
||||
LocalGridAssetService = "OpenSim.Services.AssetService.dll:AssetService"
|
||||
HypergridAssetService = "OpenSim.Services.AssetService.dll:HGAssetService"
|
||||
|
||||
[InventoryService]
|
||||
; For the RegionInventoryService
|
||||
LocalServiceModule = "OpenSim.Services.InventoryService.dll:InventoryService"
|
||||
|
||||
; For HGInventoryBroker
|
||||
LocalGridInventoryService = "OpenSim.Services.InventoryService.dll:InventoryService"
|
||||
HypergridInventoryService = "OpenSim.Services.InventoryService.dll:HGInventoryService"
|
||||
|
||||
Reference in New Issue
Block a user