Menu

Add the frontend to the partition

2018-04-15
2018-04-19
  • mahmood naderan

    mahmood naderan - 2018-04-15

    Hi,
    If I want to add some of the cores of the frontend to the slurm configuration files, should I do that by manually modifying the /etc/slurm/node.conf or there is some rocks based command for that? That file is auto created.

     
    • mahmood naderan

      mahmood naderan - 2018-04-19

      I edited slurm.conf and added a CPUS parameter for that.

      [root@rocks7 ~]# grep rocks7 /etc/slurm/slurm.conf
      NodeName=rocks7 NodeAddr=10.1.1.1 CPUS=20
      PartitionName=DEFAULT AllocNodes=rocks7 State=UP
      

      Then I added the frontend to the CLUSTER partition and sync slurm. However, scontrol doesn't show the frontend has been added to CLUSTER

      [root@rocks7 ~]# rocks add host attr rocks7 slurm_partitions value='|WHEEL|CLUSTER|'
      [root@rocks7 ~]# rocks sync slurm
      [root@rocks7 ~]# scontrol show partitions
      PartitionName=DEBUG
         AllowGroups=ALL AllowAccounts=ALL AllowQos=ALL
         AllocNodes=rocks7 Default=NO QoS=N/A
         DefaultTime=NONE DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
         MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=1 LLN=NO MaxCPUsPerNode=UNLIMITED
         Nodes=(null)
         PriorityJobFactor=1 PriorityTier=1 RootOnly=NO ReqResv=NO OverSubscribe=NO
         OverTimeLimit=NONE PreemptMode=OFF
         State=UP TotalCPUs=0 TotalNodes=0 SelectTypeParameters=NONE
         DefMemPerNode=UNLIMITED MaxMemPerNode=UNLIMITED
      
      PartitionName=CLUSTER
         AllowGroups=ALL AllowAccounts=ALL AllowQos=ALL
         AllocNodes=rocks7 Default=YES QoS=N/A
         DefaultTime=01:00:00 DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
         MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=1 LLN=NO MaxCPUsPerNode=UNLIMITED
         Nodes=compute-0-[0-4]
         PriorityJobFactor=1 PriorityTier=1 RootOnly=NO ReqResv=NO OverSubscribe=NO
         OverTimeLimit=NONE PreemptMode=OFF
         State=UP TotalCPUs=160 TotalNodes=5 SelectTypeParameters=NONE
         DefMemPerCPU=512 MaxMemPerNode=UNLIMITED
         TRESBillingWeights=CPU=1.0,Mem=0.25G,GRES/gpu=2.0
      
      PartitionName=WHEEL
         AllowGroups=ALL AllowAccounts=ALL AllowQos=ALL
         AllocNodes=rocks7 Default=NO QoS=N/A
         DefaultTime=NONE DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
         MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=1 LLN=NO MaxCPUsPerNode=UNLIMITED
         Nodes=compute-0-[0-4],rocks7
         PriorityJobFactor=1000 PriorityTier=1000 RootOnly=YES ReqResv=NO OverSubscribe=NO
         OverTimeLimit=NONE PreemptMode=OFF
         State=UP TotalCPUs=161 TotalNodes=6 SelectTypeParameters=NONE
         DefMemPerNode=UNLIMITED MaxMemPerNode=UNLIMITED
      

      What did I miss here?

       

      Last edit: mahmood naderan 2018-04-19

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.