On Wed, Oct 30, 2013 at 10:47 AM, Gustavo Niemeyer <gust...@niemeyer.net>wrote:

> On Wed, Oct 30, 2013 at 7:35 AM, Kapil Thangavelu
> <kapil.thangav...@canonical.com> wrote:
> > Just thinking outloud, but In the active-active db scenario, there's an
> > available db for the charm to store this info. ie. the charm could keep
> some
> > bookeeping tables/db instead of using files on disk (a shared key via
> peer
> > relation used for storing the credentials in db).
>
> So you share the credentials for the credentials? :-)
>
> Just share the credentials over the peer relation. Unit 0 creates them.
>

You can't make that assumption and we really frown upon it in charm
reviews. I've seen cases where `juju deploy -n 5 service` results in unit 2
or really unit > 0 being first up. There's also scenarios where there might
not actually be a "unit 0" there's no way to safely guarentee a leader
right now.
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to