Skip to content

Conversation

@hanwen-cluster
Copy link
Contributor

@hanwen-cluster hanwen-cluster commented Feb 10, 2025

The information will be shown on scontrol show nodes:

NodeName=queue-on-demand-dy-compute-resource-2-2 Arch=x86_64 CoresPerSocket=1
   CPUAlloc=4 CPUEfctv=4 CPUTot=4 CPULoad=0.95
   AvailableFeatures=dynamic,c5.xlarge,compute-resource-2
   ActiveFeatures=dynamic,c5.xlarge,compute-resource-2
   Gres=(null)
   NodeAddr=192.168.127.110 NodeHostName=queue-on-demand-dy-compute-resource-2-2 Version=24.05.2
   OS=Linux 5.10.233-224.894.amzn2.x86_64 #1 SMP Mon Jan 27 16:52:48 UTC 2025
   RealMemory=7782 AllocMem=0 FreeMem=6431 Sockets=4 Boards=1
   State=ALLOCATED+CLOUD ThreadsPerCore=1 TmpDisk=0 Weight=1000 Owner=N/A MCS_label=N/A
   Partitions=queue-on-demand
   BootTime=2025-02-10T21:22:00 SlurmdStartTime=2025-02-10T21:25:05
   LastBusyTime=2025-02-10T21:25:05 ResumeAfterTime=None
   CfgTRES=cpu=4,mem=7782M,billing=4
   AllocTRES=cpu=4
   CurrentWatts=0 AveWatts=0

   InstanceId=i-0eb8d995282xxxx11 InstanceType=c5.xlarge

Tests

  • Manually tested cluster creation, compute nodes launch.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hanwen-cluster hanwen-cluster requested review from a team as code owners February 10, 2025 21:31
@hanwen-cluster hanwen-cluster changed the title Add instance id and instance type to slurmd Set instance id and instance type in Slurm Feb 10, 2025
demartinofra
demartinofra previously approved these changes Feb 10, 2025
The information will be shown on `scontrol show nodes`:
```
NodeName=queue-on-demand-dy-compute-resource-2-2 Arch=x86_64 CoresPerSocket=1
   CPUAlloc=4 CPUEfctv=4 CPUTot=4 CPULoad=0.95
   AvailableFeatures=dynamic,c5.xlarge,compute-resource-2
   ActiveFeatures=dynamic,c5.xlarge,compute-resource-2
   Gres=(null)
   NodeAddr=192.168.127.110 NodeHostName=queue-on-demand-dy-compute-resource-2-2 Version=24.05.2
   OS=Linux 5.10.233-224.894.amzn2.x86_64 #1 SMP Mon Jan 27 16:52:48 UTC 2025
   RealMemory=7782 AllocMem=0 FreeMem=6431 Sockets=4 Boards=1
   State=ALLOCATED+CLOUD ThreadsPerCore=1 TmpDisk=0 Weight=1000 Owner=N/A MCS_label=N/A
   Partitions=queue-on-demand
   BootTime=2025-02-10T21:22:00 SlurmdStartTime=2025-02-10T21:25:05
   LastBusyTime=2025-02-10T21:25:05 ResumeAfterTime=None
   CfgTRES=cpu=4,mem=7782M,billing=4
   AllocTRES=cpu=4
   CurrentWatts=0 AveWatts=0

   InstanceId=i-0eb8d995282xxxx11 InstanceType=c5.xlarge
```

reference: https://slurm.schedmd.com/slurmd.html

Signed-off-by: Hanwen <hanwenli@amazon.com>
@codecov
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.63%. Comparing base (a21a33e) to head (e06c732).
Report is 8 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2876   +/-   ##
========================================
  Coverage    76.63%   76.63%           
========================================
  Files           22       22           
  Lines         2243     2243           
========================================
  Hits          1719     1719           
  Misses         524      524           
Flag Coverage Δ
unittests 76.63% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hanwen-cluster hanwen-cluster merged commit d7f6f7b into aws:develop Feb 11, 2025
30 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants