Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Completion: A confirmation message, "Submission Successful!" will appear once the profile has been successfully updated.

...

Developer Guide

You can SSH into the head node to issue commands. To do this, locate your instance in the Resources tab of the CloudFormation stack, and connect to the EC2 instance.

...

To manage profiles, navigate to the following directory: /xcompute/slurm/aws/xcompute-daemon/data/profiles.

Existing profiles can be viewed using sinfo:

...

Create Profile

  1. Create a Configuration File:
    Start by creating a JSON file named profile.json with the following content:

Expand
titleprofile.json Example
Code Block
{
    "AvailabilityZone": "us-east-2a",
    "Controller": {        "IamInstanceProfile": "arn:aws:iam::374070299695:instance-profile/integration-controller-iam-for-eks",
        "InstanceType": "c5d.xlarge",
        "ImageId": "ami-0fca70f6666621267",
        "SecurityGroupIds": [
            "sg-09871da66230f449f",
            "sg-01bf7f52602239d99"
        ],
        "SubnetId": "subnet-048cdbb7c1bf6ba84",
        "VolumeSize": 100,
        "InstanceTags": ""
    },
    "Description": "",
    "Id": "01dafc6c-4efe-47d2-ab55-70a1eb1e6b31",
    "LogPath": "/xcompute/logs",
    "MaxControllers": 10,
    "NodeGroupName": "eksodegroup",
    "ProfileName": "az2",
    "Region": "us-east-2",
    "Worker": {
        "IamInstanceProfile": "arn:aws:iam::374070299695:instance-profile/integration-worker-iam-for-eks",
        "InstanceTypes": [
            "m5:0"
        ],
        "ImageId": "ami-0d0ce00e83164d460",
        "SecurityGroupIds": [
            "sg-09871da66230f449f",
            "sg-01bf7f52602239d99"
        ],
        "SpotFleetTypes": [
            "m5:1",
            "m5d:0",
            "m5n:0"
        ],
        "SubnetId": "subnet-048cdbb7c1bf6ba84",
        "InstanceTags": ""
    },
    "Xspot": [
        {
            "HyperthreadingDisabled": null
        }
    ],
    "XspotVersion": "xspot-2.2.0.0"
}
  1. Submit the Profile:
    Once the configuration file is ready, submit it with the following curl command:

    Code Block
    curl -X POST http://localhost:5000/v1/profile \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -d "@profile.json"
  2. Confirm Profile Creation:
    Upon successful submission, the response will include a new profile ID, confirming that the profile has been created. Example response:

    Code Block
    {"Id": "13167214-4da7-4a53-8b09-a019046cf053"}

Update Profile

  1. Edit the profile.json file according to the sample provided below:

Expand
titleprofile.json fields Example
Code Block
{
   "Worker": {
       "IamInstanceProfile": "arn:aws:iam::374070299695:instance-profile/IntegrationInstaller-ExostellarInstanceProfile-f6FuntTOKYnn"
   },
   "NodeGroupName": "eksnodegroup"
}
  1. After updating the profile, submit the changes with a PUT request using curl:

    Code Block
    curl -X PUT http://localhost:5000/v1/profile \
      -H 'Content-Type: application/json' \
      -d @profile.json