My understanding is that the proposed Leader spec is likely to help with this, as a leader unit could coordinate between its peers which one should work next. Otherwise, it is just up to the charm peer relation to coordinate anything like this. So in peer-relation-changed you could say that you want to perform the next step, but you are waiting for your other peers, etc.
I think there is also a limitation that until everything has started and joined you don't actually know how many other units there are going to be. Though I think this is part of the "it isn't truly knowable because something may fail to come up, you may add units at a later time, etc". I do think we could do a better job of exposing what we think the number of units will be "real soon now". John =:-> On Wed, Sep 3, 2014 at 11:16 PM, Marco Ceppi <[email protected]> wrote: > Hi Tim, > > Great question, sorry it took me so long to get back to you. I have an > assumption that all hooks run serially on a single unit regardless of > service group, etc. However, I want to say I've seen some kind > serialization between peers. I've cc'd the Juju core mailing list and the > regular juju mailing list to help correct and clarify these statements and > shed some light once and for all. > > Finally, once it's been known, I'll be updating the author docs to detail > the execution pattern in detail. > > Thanks, > Marco Ceppi > > > On Sat, Aug 30, 2014 at 6:31 AM, Humphrey, Timothy L (RIS-DAY) < > [email protected]> wrote: > >> Marco, >> >> Do you know the answer to my question, below? Or should I re-phase it? >> >> Tim >> >> -----Original Message----- >> From: [email protected] [mailto:[email protected]] On Behalf >> Of Jorge O. Castro >> Sent: Friday, August 29, 2014 10:18 AM >> To: Humphrey, Timothy L (RIS-DAY); Marco Ceppi >> Subject: Re: Question about the start hook >> >> That's a good question! CCing in Marco, who should know. >> >> On Fri, Aug 29, 2014 at 10:16 AM, Humphrey, Timothy L (RIS-DAY) < >> [email protected]> wrote: >> > Jorge, >> > >> > I am using juju charm to deploy to aws, an hpcc cluster, which is >> several instances that work together to complete some job. >> > >> > In my start hook, I'm copying files from S3 to each instance. And, once >> all files are copied to all instances, I perform an operation in my >> hpcc-cluster-relation-joined that tells the master instance that all files >> are copied to all instances. >> > >> > So, my question is, "Do all instances complete the start hook before >> any instance begins the hpcc-cluster-relation-joined hook?" >> > >> > "Or is there a way to make this be true?" >> > >> > Sincerely, >> > Tim >> > >> >> >> ----------------------------------------- >> The information contained in this e-mail message is intended only >> for the personal and confidential use of the recipient(s) named >> above. This message may be an attorney-client communication and/or >> work product and as such is privileged and confidential. If the >> reader of this message is not the intended recipient or an agent >> responsible for delivering it to the intended recipient, you are >> hereby notified that you have received this document in error and >> that any review, dissemination, distribution, or copying of this >> message is strictly prohibited. If you have received this >> communication in error, please notify us immediately by e-mail, and >> delete the original message. > > > > -- > Juju-dev mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju-dev > >
-- Juju-dev mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
