[StarCluster] Loadbalance and setup plugins
Justin Riley
jtriley at MIT.EDU
Fri Jul 20 16:14:02 EDT 2012
Hey David,
Sorry to come in so late on this one. In any case Dustin is correct.
The load balancer calls each plugin's on_add_node(), in the order
defined in the config, with the following values:
on_add_node(self, node, nodes, master, user, user_shell, volumes)
The first argument (node) is the node to be added. The next argument
(nodes) is a list of *all* nodes (including new node, existing nodes,
and master), and the third argument (master) is obviously the master
node singled out.
Let me know if you have questions/issues.
HTH,
~Justin
On Fri, Jul 13, 2012 at 10:28:39AM -0700, David Erickson wrote:
> Thanks, ya confirmed.
>
> -D
>
> On 7/13/2012 3:48 AM, Dustin Machi wrote:
> > I believe it runs on_add_node() in this case, take a look at starcluster.clustersetup.DefaultClusterSetup.
> >
> > Dustin
> >
> > On Jul 12, 2012, at 4:41 PM, David Erickson wrote:
> >
> >> HI I am wondering how setup plugins work with load balancing? For
> >> example the signature of the run method for a ClusterSetup based plugin
> >> looks like:
> >>
> >> def run(self, nodes, master, user, user_shell, volumes):
> >>
> >> When loadbalance detects the need and adds a new node to a cluster, do
> >> all existing and the new node show up in the nodes argument above? I
> >> want to ensure that I am not re-initializing anything on my existing nodes.
> >>
> >> Thanks!
> >> David
> >> _______________________________________________
> >> StarCluster mailing list
> >> StarCluster at mit.edu
> >> http://mailman.mit.edu/mailman/listinfo/starcluster
> >
> >
>
>
> _______________________________________________
> StarCluster mailing list
> StarCluster at mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/starcluster/attachments/20120720/1ba66129/attachment.bin
More information about the StarCluster
mailing list