Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Submitting an HPC job from on-premise - Part 2 of 2

, 16 Jun 2012
Rate this:
Please Sign up or sign in to vote.
How to submit a HPC job from on-premise.

Continuing with myprevious article, today I am going to share my one more experience with HPC. Nowadays, there are lots of links available on net, which tell, how to submit a job to Azure HPC Scheduler. I also explored most of them, and found that almost all are talking about job submission from cloud premise(Front or Head node). But nowhere was it mentioned how to submit a job from outside of cloud vicinity. I came across this issue, while working on one of my assignments.

After hitting my head, finally I found a way to do this. When we are talking about interaction between cloud and on-premise, then first thing come into our mind is network. Here definitely, TCP won’t work. There are few transport schemes available in Azure HPC framework. After exploring them, I found one as WebAPI and wow, that suits my requirement. I just used WebAPI as transport scheme, by modifying the name of the headnode to complete host name (i.e., <headNodeName>.cloudapp.net) and get my issue resolved. Sample code is as:

string headNodeName = “myhpchost.cloudapp.net”;
 
//Create a session
SessionStartInfo info=new SessionStartInfo(headNodeName, serviceName); 
 
// Assign TransportScheme to the session created above
info.TransportScheme=TransportScheme.WebAPI; 

Note: If everything (service name, head node, etc...) is configured properly, even then you are getting exception like, ‘Fail to get the cluster name’. Then just redeploy the HPC scheduler package and try it again. I know, this is painful but this is the only solution, I came across. And believe me, this was just clicked for me.

Hope it will be helpful, for those who get stuck with a similar kind of issue. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Shweta Lodha
Technical Lead
India India
You can also follow me at my blog http://www.shwetalodha.blogspot.in/
Follow on   Twitter

Comments and Discussions

 
Generalwhy redelopy HPC scheduler [modified] PinmemberAaronChenOm1-Aug-12 10:35 
GeneralRe: why redelopy HPC scheduler PinmemberShweta Lodha2-Aug-12 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 16 Jun 2012
Article Copyright 2012 by Shweta Lodha
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid