1 Answer
- Newest
- Most votes
- Most comments
0
You can use the AWS CLI to describe your ECS container instances and extract the relevant information. For example you can do this:
-
Use the AWS CLI to list the ARNs of the container instances in your cluster.
aws ecs list-container-instances --cluster <cluster-name>
-
Use the ARNs from the previous step to get detailed information about each instance.
aws ecs describe-container-instances --cluster <cluster-name> --container-instances <instance-arn-1> <instance-arn-2> ...
-
From the output, extract the total and remaining GPUs for each instance. Look for the
registeredResources
andremainingResources
sections, specifically for entries where thename
isGPU
. -
Subtract the number of GPUs in use from the total number of GPUs to determine the remaining GPUs available for allocation.
Here you can see an example of the output.
Relevant content
- asked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 10 months ago