How do I change my Elastic Beanstalk instance type?

0

I created an Elastic Beanstalk environment using EB CLI. It made a "t2.micro" instance.

My app is getting a lot of traffic, we are using Auto scaling and it is working somewhat for us but my server gets down on high memory usage because of CRON jobs.

Now I am thinking to switch to a large instance type with at least 4GB memory. I can't seem to find any option on the configuration to modify the instance type.

Can you please guide me on how to change that without any downtime? Thank you

已提問 2 年前檢視次數 2631 次
1 個回答
0

Hi

You can configure how Auto Scaling works including Instance Type by editing Capacity on the environment's Configuration page in the Elastic Beanstalk console.

See https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.as.html#environments-cfg-autoscaling-console

Configuration changes that modify the launch configuration or VPC settings require terminating all instances in your environment and replacing them. For example, when you change the instance type or SSH key setting for your environment, the EC2 instances must be terminated and replaced. Elastic Beanstalk provides several policies that determine how this replacement is done.

See https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-updating.html

profile pictureAWS
專家
Matt-B
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南