-
Notifications
You must be signed in to change notification settings - Fork 301
Add GPU instance support to the up command
#743
Conversation
allisaurus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please provide some test output that shows ecs-cli up running successfully with:
- a GPU instance
- an
arm64instance - a less specialized instance type (e.g., t2 family)
- no instance type specified
Manual TestingNew functionalityp2.xlarge
Successful cluster creation, and verified in console that the instance has a GPU optimized image: Existing functionalitya1.medium
Successful cluster creation, and verified in console that the instance has an ARM optimized image: a1.medium in unsupported region
Successfully fails: t2.micro
Successful creation of cluster, and verified in console that the instance is created properly: No instance type specified
Successfully defaults to |
| return err | ||
| } | ||
|
|
||
| logrus.Info("Waiting for your cluster resources to be created...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we're getting rid of this log statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why I removed that log statement, sorry! I put it back :)
Summary
Issue #, if available: 729
Description of changes: The
ecs-cli upcommand now fetched the recommended Amazon ECS GPU optimized AMI metadata given a GPU instance type.Testing
Ran
make docker-testand the unit tests passManual
Ran the command
./bin/local/ecs-cli up --capability-iam --instance-type p2.xlarge --cluster-config no-gpu-support --launch-type EC2 --forceand can confirm that the EC2 instance uses the AMI IDamzn2-ami-ecs-gpu-hvm-2.0.20190301-x86_64-ebs (ami-0ebf2c738e66321e6)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.