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 startup script per nodeset #2296

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

mr0re1
Copy link
Collaborator

@mr0re1 mr0re1 commented Feb 28, 2024

testing done

  - id: s1
    source: modules/scripts/startup-script
    settings:
      runners:
      - type: shell
        destination: s1
        content: |
          #!/bin/bash
          echo "p1" > /tmp/secret

  - id: ns1
    source: ./community/modules/compute/schedmd-slurm-gcp-v6-nodeset
    use: [network, s1]
    settings:
      node_count_static: 1
      machine_type: n2-standard-2
      enable_placement: false # the default is: true
  
  - id: p1
    source: ./community/modules/compute/schedmd-slurm-gcp-v6-partition
    use: [ns1]
    settings:
      partition_name: p1
      exclusive: false # allows nodes to stay up after jobs are done
      
// Same for s2, ns2, p2
$ srun -N 1 -p p1 cat /tmp/secret
p1
$ srun -N 1 -p p2 cat /tmp/secret
p2

@mr0re1 mr0re1 added release-module-improvements Added to release notes under the "Module Improvements" heading. do-not-merge Block merging of this PR labels Feb 28, 2024
@nick-stroud nick-stroud assigned mr0re1 and unassigned nick-stroud Feb 29, 2024
@mr0re1 mr0re1 requested a review from nick-stroud March 6, 2024 21:27
@mr0re1 mr0re1 assigned nick-stroud and unassigned mr0re1 Mar 6, 2024
@mr0re1 mr0re1 removed the do-not-merge Block merging of this PR label Mar 6, 2024
@nick-stroud nick-stroud assigned mr0re1 and unassigned nick-stroud Mar 6, 2024
@mr0re1 mr0re1 merged commit 1ae12da into GoogleCloudPlatform:develop Mar 6, 2024
9 of 38 checks passed
@mr0re1 mr0re1 deleted the script_partition branch March 6, 2024 23:58
@harshthakkar01 harshthakkar01 mentioned this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-module-improvements Added to release notes under the "Module Improvements" heading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants