Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Slurm >=24.05.3 InstanceType #376

Open
cmd-ntrf opened this issue Aug 28, 2024 · 0 comments
Open

Add support for Slurm >=24.05.3 InstanceType #376

cmd-ntrf opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cmd-ntrf
Copy link
Member

cmd-ntrf commented Aug 28, 2024

Slurm added the notion of cloud instance type in the accounting:
https://slurm.schedmd.com/power_save.html#accounting

The InstanceType attribute cannot be defined in slurm.conf. It has to be passed as a parameter during slurmd startup.

To enable InstanceType configuration in Magic Castle, we could create the slurmd environment file and provide the slurmd parameter via SLURMD_OPTION like this:

if versioncmp(lookup('profile::slurm::base::slurm_version', '24.05')) >= 0 {
  instance_type = lookup('terraform.self.specs.type')
  file { '/etc/sysconfig/slurmd':
    content => "SLURMD_OPTIONS='--instance-type ${instance_type}'"
  }
}

This requires terraform_data to be updated in Magic Castle to include the instance type in its specs.

@cmd-ntrf cmd-ntrf added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant