【问题标题】:Should I use CloudWatch alarm or "as-create-or-update-trigger" for my AutoScaling我应该为我的 AutoScaling 使用 CloudWatch 警报还是“as-create-or-update-trigger”
【发布时间】:2013-10-10 12:49:36
【问题描述】:

现在我要在 AWS 上为我的 Web 应用程序配置 AutoScaling。我已经阅读了几个博客和 AWS 文档,以获得我的 AutoScaling 的完美解决方案。

现在我有一个想法,我必须使用“as-put-scaling-policy”命令创建 AutoScaling 策略(Scale Up 和 Scale Down)。然后我必须使用“mon-put-metric-alarm”触发策略,即 CloudWatch(高警报和低警报)。通过这种方式,我可以为我的应用程序配置 AutoScaling。

一些博客再次描述使用“as-create-or-update-trigger”。通过这个单一的命令,我们可以实现放大和缩小动作。例如:

as-create-or-update-trigger my-latency-trigger --auto-scaling-group sbsgroup --dimensions "LoadBalancerName=myloadbalancer" --measure Latency --period 60 --statistic Average --lower-threshold 0.25 --upper-threshold 0.75 --breach-duration 300 --lower-breach-increment=-1 --upper-breach-increment 1 --namespace "AWS/ELB" --unit Seconds

现在我有一个困惑,我应该使用 CloudWatch 警报来触发实例还是 as-create-or-update-trigger。请给我建议。或者,如果我的发现是错误的,请给我一个指导。

【问题讨论】:

    标签: amazon-web-services amazon-ec2 autoscaling


    【解决方案1】:

    使用 CloudWatch 警报 - as-create-or-update-trigger 已被弃用,仅用于向后兼容。

    http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-trigger.html

    重要
    触发器是 Auto Scaling 已弃用的功能。我们 建议您从使用触发器切换到使用 Auto Scaling 政策和警报。有关详细信息,请参阅配置自动 Auto Scaling 开发人员指南中的 Scaling。

    【讨论】:

      猜你喜欢
      • 2012-09-02
      • 2021-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-16
      • 1970-01-01
      • 2018-09-05
      相关资源
      最近更新 更多