Updating an AWS PCS queue
This topic provides an overview of available options and describes what to consider when you
update an AWS PCS queue. For information about Slurm custom settings, see Custom Slurm settings for AWS PCS queues.
Considerations when updating an AWS PCS
queue
Queue updates will not impact running jobs but the cluster may not be able to accept new
jobs while the queue is being updated.
To update an AWS PCS queue
You can use the AWS Management Console or AWS CLI to update a queue.
- AWS Management Console
-
To update a queue
-
Open the AWS PCS console at
https://console.aws.amazon.com/pcs/home#/clusters
-
Select the cluster where you wish to update a queue.
-
Navigate to Queues, go to the queue wish to
update, then select Edit.
-
In the queue configuration section, update any of the following values:
-
Node groups – Add or remove compute node groups from association with the queue.
-
Additional scheduler settings – Add, modify, or remove custom Slurm settings for the queue. For more information, see Custom Slurm settings for AWS PCS queues.
-
Tags – Add or remove tags for the queue.
-
Choose Update. The Status field will show
Updating while changes are being applied.
Queue updates can take several minutes.
- AWS CLI
-
To update a queue
-
Update your queue with the command that follows. Before running the command, make the
following replacements:
-
Replace region-code with the AWS Region that you want to
create your cluster in.
-
Replace my-queue with the name or
computeNodeGroupId for your queue.
-
Replace my-cluster with the name or clusterId
of your cluster.
-
To change compute node group associations, provide an updated list for --compute-node-group-configurations.
-
For example, to add a second compute node group computeNodeGroupExampleID2:
--compute-node-group-configurations computeNodeGroupId=computeNodeGroupExampleID1,computeNodeGroupId=computeNodeGroupExampleID2
aws pcs update-queue --region region-code \
--queue-identifier my-queue \
--cluster-identifier my-cluster \
--compute-node-group-configurations \
computeNodeGroupId=computeNodeGroupExampleID1
Example – Updating a queue with custom Slurm settings
aws pcs update-queue --region region-code \
--queue-identifier my-queue \
--cluster-identifier my-cluster \
--slurm-configuration \
'slurmCustomSettings=[{parameterName=Default,parameterValue=YES}]'
For more information, see Custom Slurm settings for AWS PCS queues.
-
It can take several minutes to update the queue. You can query the status of your queue with the following command.
You won't be able to submit jobs to the queue until its status reaches ACTIVE.
aws pcs get-queue --region region-code \
--cluster-identifier my-cluster \
--queue-identifier my-queue