[StarCluster] access cluster object from plugin

Justin Riley jtriley at MIT.EDU
Fri Nov 26 18:27:14 EST 2010


On 11/26/10 6:19 PM, Dan Yamins wrote:
> Is there any way to access to the cluster object (and in particular 
> the cluster object's .ec2 attribute) from within the plugin?
>
> What I want to be able to do is modify the cluster permissions (e.g. 
> to open a specific port) in the plugin logic ... I could do it via 
> boto with the cluster.ec2 object if that object is available ... or 
> what is the right way?

Assuming you're using the latest github code, each Node instance now has 
an 'ec2' attribute the same as the Cluster class. So you could use 
master.ec2.* in a plugin.

~Justin



More information about the StarCluster mailing list