[StarCluster] static IP solution in starcluster?

Charles Cadieu cadieu at MIT.EDU
Tue Aug 21 18:01:26 EDT 2012


Here's a plugin solution:

---------------------

from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log

class ElasticIPSetup(ClusterSetup):

    def __init__(self,elasticip):
        self.elasticip = elasticip
        log.debug('elasticip = %s' % elasticip)

    def run(self, nodes, master, user, user_shell, volumes):

        master.ec2.conn.associate_address(master.instance.id,self.elasticip)

# Config usage:



#[plugin staticip]



#setup_class = elasticip.ElasticIPSetup



#elasticip = 50.123.456.789


----------------

Thanks to Dan Yamins for input.


On Tue, Aug 21, 2012 at 4:46 PM, Charles Cadieu <cadieu at mit.edu> wrote:

> Hey,
>
> I was wondering if anyone has a simple solution to the non-static public
> IP address for the master node. Using the sshmaster command is fine, but
> having an alias or static IP would make it easy for other programs to find
> the cluster without having to manually enter the public IP every time it
> changes.
>
> This could be something simple, like automatically updating my local
> /etc/hosts with the correct alias between the cluster's name and the
> dynamic public IP.
> Or a plugin to automatically assign an Elastic IP address to the master
> node: http://aws.amazon.com/articles/1346
>
> Let me know if anyone has a solution to this problem.
>
> Thanks!
> Charles
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20120821/9db50627/attachment.htm


More information about the StarCluster mailing list