PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/sphinx/launch.rst

https://github.com/fcr/StarCluster
ReStructuredText | 167 lines | 116 code | 51 blank | 0 comment | 0 complexity | b95ea9a37c23d8da19a68bb1a1084592 MD5 | raw file
  1. Launching a StarCluster on Amazon EC2
  2. =====================================
  3. Use the **start** command in StarCluster to launch a new cluster on Amazon EC2.
  4. The start command takes two arguments: the cluster template and a tagname
  5. for cluster identification.
  6. Below is an example of starting a StarCluster from the *default* cluster template
  7. defined in the config and tagged as *physicscluster*. This example will be used throughout
  8. this section.
  9. .. code-block:: none
  10. $ starcluster start physicscluster # this line starts the cluster
  11. StarCluster - (http://web.mit.edu/starcluster)
  12. Software Tools for Academics and Researchers (STAR)
  13. Please submit bug reports to starcluster@mit.edu
  14. >>> Using default cluster template: smallcluster
  15. >>> Validating cluster template settings...
  16. >>> Cluster template settings are valid
  17. >>> Starting cluster...
  18. >>> Launching a 2-node cluster...
  19. >>> Launching master node...
  20. >>> Master AMI: ami-17b15e7e
  21. >>> Creating security group @sc-physicscluster...
  22. RESERVATION r-d71f20be 123456789012 default
  23. INSTANCE i-10e91578 ami-17b15e7e pending gsg-keypair 0 m1.small ...
  24. >>> Launching worker nodes...
  25. >>> Node AMI: ami-17b15e7e
  26. RESERVATION r-ab1f20c2 123456789012 default
  27. INSTANCE i-14e9157c ami-17b15e7e pending gsg-keypair 0 m1.small ...
  28. >>> Waiting for cluster to start...
  29. >>> The master node is ec2-123-12-12-123.compute-1.amazonaws.com
  30. >>> Attaching volume vol-99999999 to master node on /dev/sdz ...
  31. >>> Setting up the cluster...
  32. >>> Mounting EBS volume vol-99999999 on /home...
  33. >>> Using private key /home/user/.ssh/id_rsa-gsg-keypair (rsa)
  34. >>> Creating cluster user: myuser
  35. >>> Using private key /home/user/.ssh/id_rsa-gsg-keypair (rsa)
  36. >>> Configuring scratch space for user: myuser
  37. >>> Configuring /etc/hosts on each node
  38. >>> Configuring NFS...
  39. >>> Configuring passwordless ssh for root
  40. >>> Configuring passwordless ssh for user: myuser
  41. >>> Generating local RSA ssh keys for user: myuser
  42. >>> Installing Sun Grid Engine...
  43. >>> Done Configuring Sun Grid Engine
  44. >>>
  45. The cluster has been started and configured.
  46. Login to the master node as root by running:
  47. $ starcluster sshmaster physicscluster
  48. or manually as myuser:
  49. $ ssh -i /home/user/.ssh/id_rsa-gsg-keypair myuser@ec2-123-12-12-123.compute-1.amazonaws.com
  50. When you are finished using the cluster, run:
  51. $ starcluster stop physicscluster
  52. to shutdown the cluster and stop paying for service
  53. >>> start took 6.922 mins
  54. The output of the **start** command should look similar to the above if everything went successfully.
  55. If you wish to use a different template besides the default, *largecluster* for example, the command becomes:
  56. .. code-block:: none
  57. $ starcluster start -c largecluster physicscluster
  58. This command will do the same thing as above only using the *largecluster* cluster template.
  59. Managing Multiple Clusters
  60. --------------------------
  61. To list all of your StarClusters on Amazon EC2 run the following command:
  62. .. code-block:: none
  63. $ starcluster listclusters
  64. The output should look something like:
  65. .. code-block:: none
  66. $ starcluster listclusters
  67. StarCluster - (http://web.mit.edu/starcluster)
  68. Software Tools for Academics and Researchers (STAR)
  69. Please submit bug reports to starcluster@mit.edu
  70. ---------------------------------------------------
  71. physicscluster (security group: @sc-physicscluster)
  72. ---------------------------------------------------
  73. Launch time: 2010-02-19T20:55:20.000Z
  74. Zone: us-east-1c
  75. Keypair: gsg-keypair
  76. EBS volumes:
  77. vol-c8888888 on master:/dev/sdj (status: attached)
  78. Cluster nodes:
  79. master running i-99999999 ec2-123-123-123-121.compute-1.amazonaws.com
  80. node001 running i-88888888 ec2-123-123-123-122.compute-1.amazonaws.com
  81. This will list each StarCluster you've started by tag name.
  82. Logging into the master node
  83. ----------------------------
  84. To login to the master node as root:
  85. .. code-block:: none
  86. $ starcluster sshmaster physicscluster
  87. or as user sgeadmin:
  88. .. code-block:: none
  89. $ starcluster sshmaster -u sgeadmin physicscluster
  90. Logging into the worker nodes
  91. -----------------------------
  92. To login to a worker node as root:
  93. .. code-block:: none
  94. $ starcluster sshnode physicscluster node001
  95. or as user sgeadmin:
  96. .. code-block:: none
  97. $ starcluster sshnode -u sgeadmin physicscluster node001
  98. The above commands will ssh to node001 of the *physicscluster*.
  99. Shutting Down a Cluster
  100. -----------------------
  101. Once you've finished using the cluster and wish to stop paying for it, simply run the **stop** command
  102. providing the cluster tag name you gave when starting:
  103. .. code-block:: none
  104. $ starcluster stop physicscluster
  105. This command will prompt for confirmation before destroying the cluster:
  106. .. code-block:: none
  107. $ starcluster stop physicscluster
  108. StarCluster - (http://web.mit.edu/starcluster)
  109. Software Tools for Academics and Researchers (STAR)
  110. Please submit bug reports to starcluster@mit.edu
  111. Shutdown cluster physicscluster (y/n)? y
  112. >>> Shutting down i-99999999
  113. >>> Shutting down i-88888888
  114. >>> Removing cluster security group @sc-physicscluster
  115. This will terminate all instances in the cluster tagged "physicscluster" and removes the @sc-physicscluster
  116. security group.