[英]How do configure scaling based on latency in AWS Elastic Beanstalk?
Latency of my application deployed to AWS Elastic Beanstalk is generally about 50 ms, I want another instance to start if average latency goes to 500ms (1/2 second). 部署到AWS Elastic Beanstalk的应用程序的延迟通常约为50毫秒,如果平均延迟时间达到500毫秒(1/2秒),我希望启动另一个实例。 You can change the scaling Trigger in the configuration and select Latency , but the smallest Unit of Measurement is Second and Upper and Lower Scale Increments values must be an integer or percent.
您可以在配置改变缩放触发和选择延迟 ,但测量的最小单位是第二次和上下双 秤增量值必须为整数或百分比。
So it doesn't seem possible to set a trigger as required. 因此,似乎无法根据需要设置触发器。
The properties "Lower breach scale increment" and "Upper breach scale increment" is the number of EC2 instances to add or remove. 属性“Lower breach scale increment”和“Upper breach scale increment”是要添加或删除的EC2实例的数量。 This has to be an integer or a percentage.
这必须是整数或百分比。
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html
For using subsecond latencies as triggers for scaling, set the values of UpperThreshold and LowerThreshold to "0.5" for 500 ms. 要使用亚秒级延迟作为缩放触发器,请将UpperThreshold和LowerThreshold的值设置为“0.5”,持续500 ms。 The Unit of Measurement will be Second.
计量单位将是第二位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.