-
Notifications
You must be signed in to change notification settings - Fork 302
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 GPU instance support to the up
command
#743
Conversation
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
arm64
instance - 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
|
@@ -359,7 +347,6 @@ func createCluster(context *cli.Context, awsClients *AWSClients, commandConfig * | |||
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 up
command now fetched the recommended Amazon ECS GPU optimized AMI metadata given a GPU instance type.Testing
Ran
make docker-test
and 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 --force
and 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.