How to Programmatically find name of Head Node?
-
6 lipca 2011 02:46
Is there any programmatic way to determine the name of the head node? I'll take answers in C# or F#, or if you could point me to the correct api I could probably work it out on my own.
Thanks in advance,
Bob
Wszystkie odpowiedzi
-
6 lipca 2011 10:04What do you mean by name of headnode? Also, where is your code running? There could be multiple head node in a network, so to know the name of the headnode, you must specifiy a headnode...
-
7 lipca 2011 02:27
In case your code is running on the compute nodes which belong to the cluster, you can get head node by environment variable %ccp_scheduler%
-
7 lipca 2011 02:45
Would this work on a Workstation node as well?
Bob
-
7 lipca 2011 02:47
I'm assuming a cluster with only a single head node, and the code might be running on a workstation node, a compute node, or even the head node itself. Thank you for asking good questions which allow me to explain my scenario more clearly.
Bob
-
11 lipca 2011 03:04
The environment variable %ccp_scheduler% is available on all the nodes in the cluster, including headnode, broker node, compute node and workstation node.- Zaproponowany jako odpowiedź przez Lukasz TomczykMicrosoft Employee 25 lipca 2011 16:23
- Oznaczony jako odpowiedź przez MadScientistBob 25 lipca 2011 17:09