I am trying to autoscale my present instance, I am running a medium instance right now and auto scale with small instance. I used command line tool to config the settings, this is the configurations I have used to scale and I am running minimum of one instance apart from my regular instance, that means one more instance and I have attached to the load balancer.
s-create-auto-scaling-group groupname --launch-configuration launchconfig --availability-zones ap-southeast-1a --min-size 1 --max-size 5 --load-balancers prod
But when I have checked the load balancer it says "Out of Service" reason "Instance has failed at least the Unhealthy Threshold number of health checks consecutively". How can I solve this, using its public DNS, I am not able to get any response from the instance and also not able to ssh to it since the key value pair is not attached to the newly created instance.
what is the problem.How do I solve this.
Please help me out its little urgent, since I am struck up at this point from almost 2 days.
as-describe-launch-configs --show-long --headers
testLC,ami-e8c4bdba,t1.micro,(nil),(nil),(nil),(nil),default,2012-02-03T07:14:54.461Z,true,arn:aws:autoscaling:ap-southeast-1:346266270015:launchConfiguration:175a16db-1f6a-4514-9233-ac7cb34bca90:launchConfigurationName/testLC
as-describe-auto-scaling-groups --show-long --headers
testASG,testLC,ap-southeast-1a,2012-02-03T07:19:10.706Z,prod,EC2,1,5,1,300,0,(nil),(nil),arn:aws:autoscaling:ap-southeast-1:346266270015:autoScalingGroup:c4b584d0-bac4-4507-b972-4fc2b1bc53ac:autoScalingGroupName/testASG,(nil)
as-describe-auto-scaling-instances
i-43796716 testASG ap-southeast-1a InService HEALTHY testLC
elb-describe-lbs --headers --show-long
prod,prod-11719395.ap-southeast-1.elb.amazonaws.com,prod-11719395.ap-southeast-1.elb.amazonaws.com,Z1WI8VXHPB1R38,"{interval=120,target=HTTP:80/user/sign_in/,timeout=30,healthy-threshold=5,unhealthy-threshold=3}",ap-southeast-1a,(nil),(nil),"i-495dda1c, i-43796716","{protocol=HTTP,lb-port=80,instance-protocol=HTTP,instance-port=80,policies=AWSConsolePolicy-1}",(nil),"{policy-name=AWSConsolePolicy-1,expiration-period=180}","{owner-alias=amazon-elb,group-name=amazon-elb-sg}",(nil),2012-02-01T10:36:08.810Z
elb-describe-instance-health loadbalancername --headers --show-long
INSTANCE_ID,i-495dda1c,InService,N/A,N/A
INSTANCE_ID,i-43796716,OutOfService,Instance has failed at least the UnhealthyThreshold number of health checks consecutively.,Instance
--key key_nameand--group security_grouptoas-create-launch-config? – cyberx86 Feb 03 '12 at 01:08as-describe-launch-configs --show-long --headers,as-describe-auto-scaling-groups --show-long --headers,as-describe-auto-scaling-instances,elb-describe-lbs --headers --show-long,elb-describe-instance-health loadbalancername --headers --show-long. Also (to confirm that the necessary ports are open on your autoscaled instances):ec2-describe-group. (Without more info - I'd guess a security group issue on your autoscaled instance; but there are quite a few other possibilities). – cyberx86 Feb 03 '12 at 01:12digshould work (if not, please add that to your question) - but the security group controls everything else (including ping - so if incorrectly set, the instance will be completely inaccessible - which sounds like your scenario). Does it work without the LB? – cyberx86 Feb 03 '12 at 05:21as-create-launch-config, pass the--key YOUR_KEY_NAMEand--group YOUR_SECURITY_GROUP. The permission denied, public key error suggests that you are able to connect to the instance, but not authenticate (since, no key). Will take a look at the configs in a few hours - have a class to teach in a couple minutes. – cyberx86 Feb 03 '12 at 16:43