brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Harris <martin.har...@cloudsoftcorp.com>
Subject Re: MongoDB cluster
Date Mon, 27 Oct 2014 12:09:14 GMT
Hi Galina,

The following YAML should do what you need:

name: Multi-location mongoDB replica set
services:
- type: brooklyn.entity.nosql.mongodb.MongoDBReplicaSet
  location: multi:(targets="aws-ec2:us-west-1,softlayer:ams01")
  brooklyn.config:
    dynamiccluster.zone.enable: true
    cluster.initial.size: 5

The mongoDBReplicaSet, (or more accurately, the DynamicCluster on which it
is based) takes a single location, however the MultiLocation location
allows you to specify multiple providers as 'sublocations', which work in a
similar way to availability zones in a regular location. The
`dynamiccluster.zone.enable` config key then instructs the cluster to place
the nodes in different sub-locations on a simple round-robin basis

Hope this helps, and please let us know if there's anything else you need

Cheers

Martin

On 24 October 2014 18:49, Galina Grunin <ggrunin@us.ibm.com> wrote:

>
> Is there an easy way to customize / update existing MongoDB cluster
> blueprint  to make nodes to be deployed in different locations?
>
> _____________________________
> Galina Grunin
> Senior Software Engineer, IBM Certified IT Architect
> Advanced Cloud Solutions, GTS
> Somers, NY 10589
> (914) 766-1873, t/l 826-1873




-- 
Martin Harris
Lead Software Engineer
Cloudsoft Corporation Ltd
www.cloudsoftcorp.com
Mobile: +44 (0)7989 047-855

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message