2012-01-25 6 views
1

に起きていないスケーリング:上記のコマンドがヒットされるとオートは、私は以下のコマンドでAmazon EC2の上で自動スケーリングを実行しようとしているのAmazon EC2

elb-create-lb nalb1 --headers --listener "lb-port=80,instance-port=80,protocol=http" --availability-zones us-east-1c 

elb-register-instances-with-lb nalb1 --headers --instances i-1ecef57c 

elb-configure-healthcheck nalb1 --headers --target "HTTP:80/" --interval 30 --timeout 3 --unhealthy-threshold 2 --healthy-threshold 10 

as-create-launch-config nalc1 --image-id ami-cdd306a4 --instance-type t1.micro 

as-create-auto-scaling-group naasg1 --launch-configuration nalc1 --availability-zones us-east-1c --min-size 0 --max-size 10 --load-balancers nalb1 
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaleup --adjustment 100 --type PercentChangeInCapacity 
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaledown --adjustment=-1 --type ChangeInCapacity 

as-create-or-update-trigger nat1 \ 
--auto-scaling-group naasg1 --namespace "AWS/EC2" \ 
--measure CPUUtilization --statistic Average \ 
--dimensions "AutoScalingGroupName=naasg1" \ 
--period 60 --lower-threshold 30 --upper-threshold 60 \ 
--lower-breach-increment=-1 --upper-breach-increment=1 \ 
--breach-duration 120 

次のコマンドは、様々なパラメータのステータスを記述する。これらすべてにもかかわらず

[email protected] ~# elb-describe-lbs 
LOAD_BALANCER nalb1 nalb1-1717211844.us-east-1.elb.amazonaws.com 2012-01-24T09:45:11.440Z 
[email protected] ~# as-describe-launch-configs 
LAUNCH-CONFIG nalc1 ami-cdd306a4 t1.micro 
[email protected] ~# as-describe-auto-scaling-groups 
AUTO-SCALING-GROUP naasg1 nalc1 us-east-1c nalb1 0 10 0 
[email protected] ~# as-describe-policies 
No policies found 
[email protected] ~# as-describe-triggers --auto-scaling-group naasg1 
DEPRECATED: This command is deprecated and included only to facilitate migration to the new trigger mechanism. You should use this command for migration purposes only. 
TRIGGER nat1 naasg1 NoData AWS/EC2 CPUUtilization Average 60 
[email protected] ~# 

、自動スケーリングが理由かもしれない何
が起きていませんか?ヘルプ

答えて

3

ため

おかげで以下のコマンドが働いた:)もちろん

elb-create-lb nalb1 --headers --listener "lb-port=80,instance-port=80,protocol=http" --availability-zones us-east-1c 

elb-register-instances-with-lb nalb1 --headers --instances i-1ecef57c 

elb-configure-healthcheck nalb1 --headers --target "HTTP:80/" --interval 30 --timeout 3 --unhealthy-threshold 2 --healthy-threshold 10 

as-create-launch-config nalc1 --image-id ami-cdd306a4 --instance-type t1.micro 

as-create-auto-scaling-group naasg1 --launch-configuration nalc1 --availability-zones us-east-1c --min-size 2 --max-size 10 --load-balancers nalb1 
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaleup --adjustment=2 --type ChangeInCapacity 
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaledown --adjustment=-1 --type ChangeInCapacity 
as-set-desired-capacity naasg1 -c 2 

を使用すると、CloudWatchの上でアラームを作成し、2つのアラームにこれらのポリシーを関連付ける、アップ各取り扱いステップとステップダウンする必要があります。

+0

+1あなたの解決策をフォローアップするために、ありがとう! –

+0

ちょうど私に多くの頭痛を保存しました - ありがとう:) –

関連する問題