1
에 발생하지 스케일링 : 위의 명령이 명중되면자동 내가 아래 명령으로 아마존 EC2에 자동 스케일링을 수행하려고 아마존 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] ~#
, 자동 스케일링은 그 이유가 무엇인지
일어나고되지 않는 이유는 무엇입니까? 도움
+1 귀하의 솔루션에 대한 후속 조치를 위해, 감사합니다! –
그냥 너무 많은 두통을 저장 - 감사합니다 :) –