How to change instance type in AWS ECS cluster?

后端 未结 8 1377
孤独总比滥情好
孤独总比滥情好 2021-02-01 01:34

I have a cluster in AWS EC2 Container Service. When I\'ve set it up, I used t2.micro instances because those were sufficient for development. Now I\'d like to use more powerful

8条回答
  •  离开以前
    2021-02-01 02:24

    Yes, this is possible.

    The instance types in your cluster are determined by the 'Instance Type' setting within your Launch Configuration. To update the instance type without having to recreate the cluster:

    1. Make a copy of the cluster Launch Configuration and update the 'Instance Type'.
    2. Adjust the cluster Auto Scaling Group to point to your new Launch Configuration.
    3. Wait for your new instances to register in your cluster and your services to start.

    You can also add multiple instances types to a single cluster by creating multiple Auto Scaling Groups linked to different Launch Configurations. Note however that you can't copy Auto Scaling Groups easily within the console.

提交回复
热议问题