AWS ElasticBeanstalk扩展选项

时间:2017-12-11 20:24:28

标签: amazon-web-services elastic-beanstalk

默认情况下,AWS ElasticBeanstalk会在NetworkOut

上进行缩放

但是,我想扩展两种方案,网络输出和CPU利用率。

有没有办法做到这一点,如果其中任何一个超出限制,它会缩放?

1 个答案:

答案 0 :(得分:1)

In ElasticBeanstalk console $strQuery2 = "SELECT COUNT(*) as student_count, exam_year, result FROM studentsinfo WHERE exam_year = 2018 GROUP BY result ORDER BY student_count DESC"; $result2 = $dbhandle->query($strQuery2) or exit("Error code ({$dbhandle->errno}): {$dbhandle->error}"); you can only set one Configuration > Scaling > Scaling Trigger like Trigger Measurement or CPUUtilization or NetworkIn or other options present.

If you need multiple scaling policies, you can add them manually or through NetworkOut config file to ElasticBeanstalk's ebextensions like described here. Add a Simple Scaling policy or Target Tracking Scaling policy.

Add below to ebextension config file to create a Target tracking scaling policy: Auto Scaling group

To create a Simple scaling policy, you should create a scaling policy and CloudWatch resource like here