Created
December 4, 2013 20:27
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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