Chandan3) How the first instance (ec2 created using knife), will be associate with AS group or ELB?Thanks Nick,But I tried to search on AWS console and didn't found any way of attaching/associate AS with ELB. I then found a command line tool for autoscaling. Is this the same you are referring to use. In that case I have some doubts, as I have not used them much :
1) Can you please explain how to create AS group.2) After step 1) how can I associate ELB with the AS group, again is it one time activity?
3) Once the step 2 is done (AS is now associated with ELB), how the new nodes created (ec2 instances) will automatically have the AS group. I cant find any option with knife ec2 server create.--On Wed, May 29, 2013 at 11:21 AM, nick hatch < " target="_blank"> > wrote:
On Tue, May 28, 2013 at 9:16 AM, Chandan Maheshwari < " target="_blank"> > wrote:
Is there any other way of doing this.
Yes -- consider not doing it at all. While there may be valid reasons for taking this approach, I think it might be worthwhile to reevaluate the problem and see if you really need to use chef to manage your ELBs.
An alternative is to associate the ELB with the AS group, so that nodes automatically register. Use a robust health check @ the ELB so that nodes aren't routed traffic unless they can serve the requests successfully. (You'll want a good health check anyways so when things go bump in the cloud, unhealthy nodes aren't attempting to serve requests. )
I've had tens of thousands of instances go through this life-cycle and it works quite well.AWS's tooling here is good and battle-tested. It seems that Chef's might not be. If it hurts to use your configuration management framework to manage your ELBs, perhaps you shouldn't do that.
There's also probably an argument to be made that introducing Chef as an actor in AS/ELB introduces some complexity around fate sharing that can be problematic if not done carefully.
-n
Regards,
Chandan
Archive powered by MHonArc 2.6.16.