[Opensim-dev] asset_database = "local" or "grid"?

Justin Clark-Casey jjustincc at googlemail.com
Wed Feb 4 19:00:25 UTC 2009


I looked at this and when I came to OpenSimBase.InitialiseAssetCache() I discovered a host of other undocumented options 
for asset_database (cryptogrid, file, etc.)

So I did a typical open-source kludge (or perhaps allowed everybody as much freedom as possible :) and implemented a 
"default" setting for asset_database instead.  If this setting is there, then "local" is used when in standalone mode, 
and "grid" when in grid mode.  It's still possible to explicitly set this as before.

"default" is now also the default setting for asset_database.

I also changed the explanative text but it only currently talks about "default", "local" and "grid" (only "local" and 
"default" were there before).  I shall leave it up to other folks to document the other options if they want to.

Dahlia Trimble wrote:
> The only argument I can come up with to keep the current ability is if a 
> region may have content which would not be desirable to be shared with a 
> grid asset server, such as proprietary scripts or textures/sounds/etc 
> with restricted licensing.
> 
> On Mon, Feb 2, 2009 at 5:42 AM, Justin Clark-Casey 
> <jjustincc at googlemail.com <mailto:jjustincc at googlemail.com>> wrote:
> 
>     Stefan Andersson wrote:
>      > I believe the general concensus was to support all three (four?)
>     asset
>      > server configs (internal, local, grid, hg(?))  but refactor the
>     code paths.
> 
>     Could you give a mailing list reference to this consensus
>     discussion?  I don't remember seeing it but it may have been
>     before my time (which means it was more than a year ago).
> 
>     Local mode has never made much sense to me, so I would like to see
>     some of the arguments for it.
> 
>      >
>      > While I do understand the confusion, I have already shown how we
>     could
>      > re-arrange the services so that we get a uniform set of interfaces -
>      > ideally, the config option should turn from specifying a mode to
>      > specifying a module and its config.
>      >
>      > Best regards,
>      > Stefan Andersson
>      > Tribal Media AB
>      >
>      >  > Date: Sun, 1 Feb 2009 22:29:18 +0000
>      >  > From: melanie at t-data.com <mailto:melanie at t-data.com>
>      >  > To: opensim-dev at lists.berlios.de
>     <mailto:opensim-dev at lists.berlios.de>
>      >  > Subject: Re: [Opensim-dev] asset_database = "local" or "grid"?
>      >  >
>      >  > Hi,
>      >  >
>      >  > funny you would suggest that. That is one of the code paths I
>      >  > suggested removing a long time ago, and was booed and rejected.
>      >  >
>      >  > Melanie
>      >  >
>      >  >
>      >  > Justin Clark-Casey wrote:
>      >  > > Chris Hart wrote:
>      >  > >> Setting asset_database to "local" will store your assets in
>     a .db
>      > sqlite
>      >  > >> database on your file system, and not in MySQL at all. If
>     you run in
>      >  > >> grid mode, you should always set this to "grid" to avoid
>     confusion
>      >  > >> unless you are connecting to someone else's grid and want your
>      > assets to
>      >  > >> be stored locally and not on their asset server.
>      >  > >>
>      >  > >> I have to say I made that same mistake when first starting
>     out with
>      >  > >> opensim and had to migrate all my assets over to my
>     database server.
>      >  > >> Several others have made the same mistake and I've had to
>     help them to
>      >  > >> migrate their assets too - is the local storage model
>     really that
>      > widely
>      >  > >> used? Should it actually be the default? For standalone I'm
>      > guessing it
>      >  > >> is ignored(?), but in grid mode I've found it just causes
>     pain and
>      >  > >> confusion.
>      >  > >
>      >  > > Chris is right - I find the asset_database switch annoying
>     because
>      > it catches me out on occasion.
>      >  > >
>      >  > > The problem with using local assets on a grid is one of grid
>     asset
>      > blakanization - people coming to your region can't
>      >  > > see your assets (because their requests go to the grid asset
>      > service rather than your local asset store) and when you go
>      >  > > to other people's regions you can't rez objects you created
>     on your
>      > local region.
>      >  > >
>      >  > > But it strikes me that now, if you wanted to retain your regions
>      > assets locally, you could set up your region as a
>      >  > > hypergrid enabled region, as Hypergrid regions use the local
>     asset
>      > store (there is conceptually no global).
>      >  > >
>      >  > > In view of this, I'd like to completely remove the
>     asset_database
>      > option. This would mean that in standalone and
>      >  > > hypergrid modes, the db used would always be local and in
>     grid mode
>      > the grid asset service would always be used.
>      >  > >
>      >  > > Are there any objections to this?
>      >  > >
>      >  > >>
>      >  > >> Chris / Strawberry Fride
>      >  > >>
>      >  > >> -----Original Message-----
>      >  > >> From: opensim-dev-bounces at lists.berlios.de
>     <mailto:opensim-dev-bounces at lists.berlios.de>
>      >  > >> [mailto:opensim-dev-bounces at lists.berlios.de
>     <mailto:opensim-dev-bounces at lists.berlios.de>] On Behalf Of Ai Austin
>      >  > >> Sent: 01 February 2009 17:12
>      >  > >> To: opensim-dev at lists.berlios.de
>     <mailto:opensim-dev at lists.berlios.de>
>      >  > >> Subject: [Opensim-dev] asset_database = "local" or "grid"?
>      >  > >>
>      >  > >> I have MySQL running on the same system that the UGAIM
>     servers are
>      >  > >> running on at the moment, though we want to separate some
>     of them
>      > out...
>      >  > >>
>      >  > >> I am wondering if I set asset_database = "grid" rather than
>      >  > >> asset_database = "local" is there any performance
>     penalty... or will
>      >  > >> it run identically if the assets are in fact local anyway?
>      >  > >>
>      >  > >> _______________________________________________
>      >  > >> Opensim-dev mailing list
>      >  > >> Opensim-dev at lists.berlios.de
>     <mailto:Opensim-dev at lists.berlios.de>
>      >  > >> https://lists.berlios.de/mailman/listinfo/opensim-dev
>      >  > >>
>      >  > >> No virus found in this incoming message.
>      >  > >> Checked by AVG - www.avg.com <http://www.avg.com>
>      >  > >> Version: 8.0.233 / Virus Database: 270.10.16/1926 - Release
>     Date:
>      >  > >> 01/30/09 17:31:00
>      >  > >> _______________________________________________
>      >  > >> Opensim-dev mailing list
>      >  > >> Opensim-dev at lists.berlios.de
>     <mailto:Opensim-dev at lists.berlios.de>
>      >  > >> https://lists.berlios.de/mailman/listinfo/opensim-dev
>      >  > >>
>      >  > >
>      >  > >
>      >  > _______________________________________________
>      >  > Opensim-dev mailing list
>      >  > Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
>      >  > https://lists.berlios.de/mailman/listinfo/opensim-dev
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Opensim-dev mailing list
>      > Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
>      > https://lists.berlios.de/mailman/listinfo/opensim-dev
> 
> 
>     --
>     justincc
>     Justin Clark-Casey
>     http://justincc.wordpress.com
>     _______________________________________________
>     Opensim-dev mailing list
>     Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
>     https://lists.berlios.de/mailman/listinfo/opensim-dev
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev


-- 
justincc
Justin Clark-Casey
http://justincc.wordpress.com



More information about the Opensim-dev mailing list