Formula una domandaFormula una domanda
 

Con rispostaHow to determine if running on a MS HPC headnode

  • giovedì 28 maggio 2009 14.44Krzysztof Szawala Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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

Risposte

Tutte le risposte

  • giovedì 28 maggio 2009 19.10Josh BarnardMSFT, ProprietarioMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    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
  • venerdì 29 maggio 2009 8.48Krzysztof Szawala Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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
  • mercoledì 24 giugno 2009 22.06Don PatteeMSFT, ModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta
    Yep, we use the name of the head node to identify the cluster.