Services and Service Connectors Configuration

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: Starting in r9562 OpenSim has a set of new configuration variables that specify how services and service connectors are set up. The purpose of these new configuration variables is to move ...)
 
Line 8: Line 8:
 
     ;AssetServices = "RemoteAssetServicesConnector"
 
     ;AssetServices = "RemoteAssetServicesConnector"
 
     ;AssetServices = "HGAssetBroker"
 
     ;AssetServices = "HGAssetBroker"
 
+
 
     ; If you don't want asset caching in the regions, comment this
 
     ; If you don't want asset caching in the regions, comment this
 
     AssetCaching = "CoreAssetCache"
 
     AssetCaching = "CoreAssetCache"
 
     ...
 
     ...
  
This new section specifies which service connector your simulator uses.  
+
This section above specifies which service connector your simulator uses.  
* If you are running a standalone grid (i.e. one process grid-in-a-box), or if you want to store your simulator's assets locally, you want to set it to the default LocalAssetServicesConnector.  
+
* If you are running a standalone grid (i.e. one process grid-in-a-box), and/or if you want to store your simulator's assets locally, you want to set it to the default LocalAssetServicesConnector.  
 
* If your simulator is connected to grid and/or if it uses a remote server to store its assets, you want to set it to RemoteAssetServicesConnector.
 
* If your simulator is connected to grid and/or if it uses a remote server to store its assets, you want to set it to RemoteAssetServicesConnector.
 
* If you want to use the HyperGrid architecture that supports assets exchanges with other grids, you want to set it to HGAssetBroker, independent of whether your grid is standalone or external.
 
* If you want to use the HyperGrid architecture that supports assets exchanges with other grids, you want to set it to HGAssetBroker, independent of whether your grid is standalone or external.
  
[AssetService]
+
[AssetService]
    ; Parameters for local assets, formerly known as "standalone"
+
    ; Parameters for local assets, formerly known as "standalone"
    LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService"
+
    LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService"
    StorageProvider = "OpenSim.Data.SQLite.dll"
+
    StorageProvider = "OpenSim.Data.SQLite.dll"
    ;StorageProvider = "OpenSim.Data.MySQL.dll"
+
    ;StorageProvider = "OpenSim.Data.MySQL.dll"
    ;ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=opensim;"
+
    ;ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=opensim;"
    DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
+
    DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
    AssetLoaderArgs = "assets/AssetSets.xml"
+
    AssetLoaderArgs = "assets/AssetSets.xml"
 +
 +
    ; Parameters for remote assets, formerly known as "grid"
 +
    ;AssetServerURI = "http://localhost:8003/"
 +
 +
    ; Paremeters for the Hypergrid connector
 +
   
 +
    ;; Parameters for the HG Broker
 +
    ; Use this one if you have a standalone grid
 +
    LocalGridAssetService = "OpenSim.Services.AssetService.dll:AssetService"
 +
    ; Use this one if this sim is connected to a grid-wide asset server
 +
    ;LocalGridAssetService = "OpenSim.Servers.Connectors.dll:AssetServiceConnector"
 +
    HypergridAssetService = "OpenSim.Services.AssetService.dll:HGAssetService"
  
    ; Parameters for remote assets, formerly known as "grid"
 
    ;AssetServerURI = "http://localhost:8003/"
 
  
    ; Paremeters for the Hypergrid connector
 
   
 
    ;; Parameters for the HG Broker
 
    ; Use this one if you have a standalone grid
 
    LocalGridAssetService = "OpenSim.Services.AssetService.dll:AssetService"
 
    ; Use this one if this sim is connected to a grid-wide asset server
 
    ;LocalGridAssetService = "OpenSim.Servers.Connectors.dll:AssetServiceConnector"
 
    HypergridAssetService = "OpenSim.Services.AssetService.dll:HGAssetService"
 
  
 
[AssetCache]
 
[AssetCache]
 
     ; Number of buckets for assets
 
     ; Number of buckets for assets
 
     ;CacheBuckets = 32768
 
     ;CacheBuckets = 32768

Revision as of 05:58, 17 May 2009

Starting in r9562 OpenSim has a set of new configuration variables that specify how services and service connectors are set up. The purpose of these new configuration variables is to move away from the brittle "grid vs. standalone" paradigm, as that was a very limiting model. OpenSim is moving into a service-oriented model where simulators can easily connect to services, independent of where they execute. This service-oriented model features a very flexible service connector mechanism, enabling diversity in service implementations without having to change the simulator code.

The new architecture brings changes in configuration variables of the simulators (OpenSim.ini), and also changes in the way the servers are configured. What follows explains the new configuration variables in OpenSim.ini, using the asset service as an example.

[ServiceConnectors]
    ; Choose one 
    AssetServices = "LocalAssetServicesConnector"
    ;AssetServices = "RemoteAssetServicesConnector"
    ;AssetServices = "HGAssetBroker"

    ; If you don't want asset caching in the regions, comment this
    AssetCaching = "CoreAssetCache"
   ...

This section above specifies which service connector your simulator uses.

  • If you are running a standalone grid (i.e. one process grid-in-a-box), and/or if you want to store your simulator's assets locally, you want to set it to the default LocalAssetServicesConnector.
  • If your simulator is connected to grid and/or if it uses a remote server to store its assets, you want to set it to RemoteAssetServicesConnector.
  • If you want to use the HyperGrid architecture that supports assets exchanges with other grids, you want to set it to HGAssetBroker, independent of whether your grid is standalone or external.
[AssetService]
    ; Parameters for local assets, formerly known as "standalone"
    LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService"
    StorageProvider = "OpenSim.Data.SQLite.dll"
    ;StorageProvider = "OpenSim.Data.MySQL.dll"
    ;ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=opensim;"
    DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
    AssetLoaderArgs = "assets/AssetSets.xml"

    ; Parameters for remote assets, formerly known as "grid"
    ;AssetServerURI = "http://localhost:8003/"

    ; Paremeters for the Hypergrid connector
    
    ;; Parameters for the HG Broker
    ; Use this one if you have a standalone grid
    LocalGridAssetService = "OpenSim.Services.AssetService.dll:AssetService"
    ; Use this one if this sim is connected to a grid-wide asset server
    ;LocalGridAssetService = "OpenSim.Servers.Connectors.dll:AssetServiceConnector"
    HypergridAssetService = "OpenSim.Services.AssetService.dll:HGAssetService"


[AssetCache]

   ; Number of buckets for assets
   ;CacheBuckets = 32768
General
About This Wiki