Click here to Skip to main content
11,480,626 members (63,255 online)
Click here to Skip to main content

Tagged as

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

, 16 Jun 2012 CPOL 5.2K 1
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


Comments and Discussions

 
Generalwhy redelopy HPC scheduler [modified] Pin
AaronChenOm1-Aug-12 11:35
memberAaronChenOm1-Aug-12 11:35 
GeneralRe: why redelopy HPC scheduler Pin
Shweta Lodha2-Aug-12 6:30
memberShweta Lodha2-Aug-12 6: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 | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 16 Jun 2012
Article Copyright 2012 by Shweta Lodha
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid