-
Notifications
You must be signed in to change notification settings - Fork 102
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
Autoscaling Support #345
base: master
Are you sure you want to change the base?
Autoscaling Support #345
Conversation
* Adds basic support for EC2 autoscaling groups as a new cluster type. * Start/Stop pause scaling activities but leave instances running Hat tip to Chris Gerber (chris.gerber@tapjoy.com) for initial spike.
Hi, and a big Boston shout-out to you, this is something we've really wanted. Some feedback:
Here is my config for my contrived resque cluster; https://gist.github.com/meekmichael/9414653 If there is any way I can help, let me know. I have a few hours a week to hack on this. |
@meekmichael thanks for taking a look. You're brought up some great points.
True. Don't want to spend the time right now but it should be fixed before merge.
Agree. I'd suggest adding support to fog and using that to implement. I don't think I'll have time to get to this.
No reason this shouldn't work. I'm probably forgetting to set the region somewhere.
This is an ironfan issue. It's tightly-bound to the ec2 machine implementation. I think fixing this will involve some changes to ironfan. I haven't thought it through yet.
I think you can attach an existing keypair by specifying key_name. We don't manage keys this way so I haven't tested it.
Yeah, bootstrapping doesn't make sense with autoscaling it should refuse to attempt. Instead of bootstrapping, the distro script that would be used to bootstrap gets loaded into the group definition as the user data. We use our own scripts so I haven't tested with the out-of-the-box ones yet. You can control what script is used with the |
@meekmichael I looked at the region issue but couldn't immediately identify the problem. I have no experience with using ironfan in other regions and seem to be missing some bit of config to make it work at all. If you have a few hours, it would be great if you could look into this since you already have a known-good setup. |
…og::Compute::AWS::Error: Duplicate => The permission \'1500008810-1-1-65535\' has already been authorized on the specified group"
@betamatt, I've made a pull request to your repo with a region fix. It was an issue with get_slice() being hardcoded to use the EC2 cloud type. |
Meek/fix autoscaling regions
@meekmichael merged. Thanks for the assist! |
Feedback requested/appreciated.
Adds support for EC2 autoscaling groups as a new cluster type.I followed the example set by the RDS provider. It doesn't exactly mash with how Ironfan looks at the world but might be good enough to be usable.
Known issues:
Several autoscaling attributes have not yet been fully implemented. (VPC, Termination policy, etc)Tags have not yet been applied.Bugs:
regions other the us-east-1 don't workcluster ssh is entirely brokenThere are likely more problems that haven't been fully exposed yet but this should be enough for a conversation about mergeability.
cc/@gerbercj