You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Alex Heneveld <al...@cloudsoftcorp.com> on 2014/05/14 10:07:55 UTC
Re: [brooklyn-dev] Object store persistence
+1 -- this will be excellent
re syntax of `--persistenceLocation` are you thinking that's the same
location spec strings we use elsewhere (e.g. named location or jclouds
name):
--persistenceLocation jclouds:aws-ec2
that is nice and simple. although this will need extending again to
support platforms such as mongo or riak or couchbase, i think that's fair.
re default path in cloud providers, i'm not a fan of putting everything
in the root! `PERSISTENCE_DIR` currently defaults to
`brooklyn-persisted-state/data`, see
`BrooklynServerConfig.getPersistenceDir()`; we could use that. (however
the method `getPersistenceDir()` will need refactoring to take a cloud
location so that it can tell whether it should be `relativeToBase` (ie
no location) or absolute (in a blobstore or other document store).
best
alex
On 14/05/2014 09:50, Andrea Turli wrote:
> Hi,
>
> I'm thinking about adding support to persist to generic object store.
> The basic idea is to use the jclouds blobStore abstraction and give
> users the ability to specify a `persistenceLocation` that can is a
> location spec, where they can specify the cloud provider they want to
> use.
> By default, If `persistenceLocation` is not specified the
> `persistenceDir` will be created on the local filesystem at the
> desired path (as it is now). If `persistenceLocation` is specified,
> `persistenceDir` will be used as relativePath inside the cloud
> providers (s3:/path/specified/by/persistenceDir), if available,
> otherwise the serialized brooklyn objects will be created in the root
> folder of the account.
>
> Long-term, it would be nice to add a jsonSerializer to support nosql
> technologies that support only json documents.
>
> Any thoughts?
>
> Best,
> Andrea
> --
> You received this message because you are subscribed to the Google
> Groups "brooklyn-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to brooklyn-dev+unsubscribe@googlegroups.com
> <ma...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.