relation departure timing changes

Gustavo Niemeyer gustavo at niemeyer.net
Thu Aug 22 17:10:24 UTC 2013


On Thu, Aug 22, 2013 at 2:04 PM, Nate Finch <nate.finch at canonical.com> wrote:
> Seems like we need a third state: "Leaving" - means you shouldn't use the
> unit (treat it as dead), but anything required by that unit still counts as
> in use and required until it's actually gone.

We already have the dying state precisely for handling the shutdown
routines cleanly, and as a state that precedes the "dead" state while
the entity is still active. It's not clear why we'd need another state
representing the same thing.

> Gustavo - I think what William means about who connects to whom is who
> initiates the connection. When Wordpress connects to MySQL, it is WordPress
> that initiates the relationship & thus the connection. WordPress requires
> MySQL, but MySQL doesn't care if WordPress exists or not, it just does what
> it's told by WordPress (or anyone else).

I still don't understand how that matters for relations. So far
they've been agnostic to what kind of TCP communication, or whatever
interaction really, happens as a consequence of the relation being
established.


gustavo @ http://niemeyer.net



More information about the Juju mailing list