Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Limits the number of concurrent vm creations to make sure vms are create... #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madhurranjan
Copy link

We are using Vagrant-aws to create anywhere between 8-60 machines in parallel. A large number of instances begin to fail when there are more than 10-11 simultaneous calls. In order to allow this to happen, introduced class variable that keeps track of instances and allow only 10 creations at a time. We also saw instance timeout failures so increased the wait_for timeout. This setup is currently working for upto 60 parallel VMs. Let me know your thoughts.

@laurencer
Copy link
Contributor

I'm having the same issue - I'm testing madjurranjan's fix and I'll report back on how it performs. We're currently trying to spin up between 10 and 80 nodes on AWS using vagrant and currently have to do it serially which is very painful.

@rtyler
Copy link
Collaborator

rtyler commented Mar 27, 2014

I understand why you want this change in but I'm not sure if this is the right way to accomplish it. I am not sure but I believe the fog API will give some error status that we could perform an exponential backoff on instance creation up to some timeout.

@madhurranjan
Copy link
Author

Didn't quite find any options hence went with this option . Tried looking at it again but didn't find.

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

Successfully merging this pull request may close these issues.

None yet

3 participants