Skip to content
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

Create multiple instances using one call when using machine_batch (#306) #510

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bpoweski
Copy link

@bpoweski bpoweski commented Nov 5, 2016

Prior to this change each EC2 instance was created by making a separate #create_instances call. This approach is preferred when utilizing placement groups per Amazon's recommendations below:

First, you create a placement group and then you launch multiple instances into the placement group. We recommend that you launch the number of instances that you need in the placement group in a single launch request and that you use the same instance type for all instances in the placement group. If you try to add more instances to the placement group later, or if you try to launch more than one instance type in the placement group, you increase your chances of getting an insufficient capacity error.

I attempted to run the integration tests with a live EC2 accounts before making these changes, unfortunately many of them failed sporadically due to what appears to race conditions around the duration of provisioning.

Related #17

@bpoweski
Copy link
Author

bpoweski commented Mar 1, 2017

Any plans on merging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant