發問發問
 

已答覆How to determine if running on a MS HPC headnode

  • Thursday, 28 May, 2009 14:44Krzysztof Szawala 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    I am developing a Python tool for submitting jobs (reservoir simulation case) to Microsoft Compute Cluster (CCS1 and HPC) or running directly on a Windows machine.
    The tool runs fine when submitting jobs with 'job submit' command, however user is also able to run an executable directly on a Windows machine and here the problem starts - I need to check if I am running on a headnode to pick up different executable (the one which uses MS MPI rather than MPI).

    In the past I was checkng for presence of CcsScheduler process running, but it doesn't seem to be the best approach since HPC renamed the process and my condition is no longer valid.

    I will appreciate any help.

    Thanks,
    Krzysztof

解答

  • Thursday, 28 May, 2009 19:10Josh BarnardMSFT, 擁有者使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I believe the v2 scheduler process is HPCScheduler if that helps at all.  You can also try running cluscfg view (or from PSH Get-HpcClusterOverview) which will provide you the name of the scheduler you are connecting too . . . you can just compare that to the name of the machine you're currently running on.

    Thanks,
    Josh
    -Josh
  • Wednesday, 24 June, 2009 22:06Don PatteeMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    Yep, we use the name of the head node to identify the cluster.

所有回覆

  • Thursday, 28 May, 2009 19:10Josh BarnardMSFT, 擁有者使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    I believe the v2 scheduler process is HPCScheduler if that helps at all.  You can also try running cluscfg view (or from PSH Get-HpcClusterOverview) which will provide you the name of the scheduler you are connecting too . . . you can just compare that to the name of the machine you're currently running on.

    Thanks,
    Josh
    -Josh
  • Friday, 29 May, 2009 8:48Krzysztof Szawala 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi Josh,

    Thanks for reply.

    Another question emerges: 'is Cluster Name always the same as headnode machine's name?'.
    I have seen quite a few CCS/HPC clusters and in every case the cluster's and headnode's name were the same, however is it always the case?

    Regards,
    Krzysztof
  • Wednesday, 24 June, 2009 22:06Don PatteeMSFT, 版主使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    Yep, we use the name of the head node to identify the cluster.