Skip to content

Instantly share code, notes, and snippets.

@jtriley
Created December 4, 2013 20:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtriley/7794909 to your computer and use it in GitHub Desktop.
Save jtriley/7794909 to your computer and use it in GitHub Desktop.
Small example showing how to use the ClusterManager class for high-level cluster management.
from starcluster import config
from starcluster import cluster
cfg = config.StarClusterConfig().load()
ec2 = cfg.get_easy_ec2()
cm = cluster.ClusterManager(cfg, ec2=ec2)
cl = cm.get_cluster("your_running_cluster_tag")
print len(cl.running_nodes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment