如何配置比例基础上,AWS弹性魔豆延迟? [英] How do configure scaling based on latency in AWS Elastic Beanstalk?

查看:190
本文介绍了如何配置比例基础上,AWS弹性魔豆延迟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序部署到AWS弹性魔豆的潜伏期一般为50毫秒,我想另一个实例启动,如果平均延迟时间去为500ms(1/2秒)。您可以更改缩放触发在配置和选择延迟,但测量的最小的下规模增量的值必须是整数或百分比。

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). 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.

推荐答案

属性下违约的规模递增和上违反规模增量是EC2实例添加或删除的数量。 这必须是一个整数或百分比

The properties "Lower breach scale increment" and "Upper breach scale increment" is the number of EC2 instances to add or remove. This has to be an integer or a percentage.

http://docs.aws.amazon.com/ elasticbeanstalk /最新/ DG /命令options.html

有关使用不到一秒的延迟作为触发器的比例,为500毫秒设置UpperThreshold和LowerThreshold对0.5的值。 测量单位将是第二次。

For using subsecond latencies as triggers for scaling, set the values of UpperThreshold and LowerThreshold to "0.5" for 500 ms. The Unit of Measurement will be Second.

这篇关于如何配置比例基础上,AWS弹性魔豆延迟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆