Hi Liang:<br><br>At <a href="http://ceswp.ca">ceswp.ca</a> we wrote a Python program called LaunchServer. Our webapp (the equivalent of your EC2 instance 'A') posts a request to LaunchSever specifying the AMI ID, the machine type, number of nodes, etc, and LaunchServer uses StarCluster to create the cluster (and to run a scientific model on the cluster). It would be straight forward (I believe!) to add the ability you describe (submit a job to SGE on an existing cluster).<br>
<br>Email me if you would like a copy of LaunchServer.<br><br>cheers,<br>Mark<br><br><div class="gmail_quote">On Fri, Oct 14, 2011 at 1:37 AM, liang cheng <span dir="ltr"><<a href="mailto:liang.cheng@gmail.com">liang.cheng@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I have a http server running on Linux, I would like to run some<br>
scripts on that server which actually submits jobs to a known<br>
starcluster. That is, how can I run a job from a machine that is<br>
outside my cluster.<br>
<br>
For example:<br>
<br>
I have an EC2 instance named A.<br>
I have a EC2 based starcluster which is composed of two nodes: B<br>
(master) and C.(slave)<br>
<br>
Currently I run my jobs in this way:<br>
<br>
log in to A.<br>
run "starcluster sshmaster mycluster"<br>
At the master node (B), I run "qsub sh myjob.sh"<br>
<br>
Now I would like to simplify it to:<br>
log in to A<br>
run "sh myremotejob.sh"<br>
<br>
"myremotejob.sh" should include 1) login to B and 2) run jobs at B and C.<br>
<br>
Can someone help me ?<br>
<br>
Thanks,<br>
-Liang<br>
_______________________________________________<br>
StarCluster mailing list<br>
<a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:'Bitstream Charter';font-size:medium"><pre><span style="font-family:arial;white-space:normal;font-size:small"><pre><span style="font-family:arial;white-space:normal">Mark Gordon</span></pre>
</span></pre></span><div>Systems Analyst<br>Department of Physics<br>University of Alberta<br><br>This
communication is intended for the use of the recipient to which it is
addressed and may contain confidential, personal and/or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication. If you are not the intended recipient
of this communication do not copy, distribute or take action on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed.</div><br>