简体   繁体   English

如何根据AWS Elastic Beanstalk中的延迟配置扩展?

[英]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.

相关问题 如何在AWS Elastic Beanstalk环境中配置负载均衡器? - How do I configure a load balancer in an AWS Elastic Beanstalk environment? 如何配置Amazon AWS Elastic Beanstalk服务? - How do I configure Amazon AWS Elastic Beanstalk services? 测试AWS Elastic Beanstalk扩展 - Testing AWS Elastic Beanstalk scaling 如何在具有零最小实例的延迟指标上配置 AWS Beanstalk 自动缩放 - How to configure AWS Beanstalk autoscaling on latency metrics with zero minimum instances 如何在运行 AWS Linux 2 的 AWS Elastic Beanstalk 上配置 Linux 交换空间? - How do I configure Linux swap space on AWS Elastic Beanstalk running AWS Linux 2? 如何在 AWS Elastic Beanstalk 上配置我的 WSGI 应用程序的名称? - How do I configure the name of my WSGI application on AWS Elastic Beanstalk? 如何在自动缩放的(多实例)Elastic Beanstalk(Tomcat)应用程序(AWS)中配置数据文件? - How do I configure data files in a Autoscaled (multi-instance) Elastic Beanstalk (Tomcat) Application (AWS)? 如何在 Elastic Beanstalk 中配置 aws:elasticbeanstalk:container:python:staticfiles? - How do I configure aws:elasticbeanstalk:container:python:staticfiles in Elastic Beanstalk? AWS Elastic Beanstalk Auto Scaling配置 - AWS Elastic Beanstalk Auto Scaling configuration 为 Auto Scaling 配置 AWS Elastic Beanstalk 时区 - Configuring AWS Elastic Beanstalk Timezone for Auto Scaling
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM