Relation's need config too

Brandon Holtsclaw me at brandonholtsclaw.com
Fri Jul 20 14:02:09 UTC 2012


> In staging for example, we have the same postgresql instance handling

> > all the shards, so there we'd have:
> >
> > juju deploy pgsql staging-db
> > juju deploy service1
> > juju deploy service2
> > juju add-relation staging-db service1 shard_id=1
> > juju add-relation staging-db service1 shard_id=2
> > juju add-relation staging-db service2 shard_id=1
> > juju add-relation staging-db service2 shard_id=2
>
> This would be one way to do it, but the same idea might work here too:
>
>     juju set staging-db shard-id=1,2
>
>
>
Would that not put it in a different context though, e.g. its a
config-change context that way and not a relation join/part/leave etc.,
which seems like it may be worse or minimum not ideal.
But I may be missing another subtlety somewhere too ...

-- 
Brandon Holtsclaw
Web http://brandonholtsclaw.com
Voice/SMS Tel:816-974-6106








> gustavo @ http://niemeyer.net
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20120720/23c2eac1/attachment.html>


More information about the Juju mailing list