如何更改 AWS ECS 集群中的实例类型? [英] How to change instance type in AWS ECS cluster?

查看:53
本文介绍了如何更改 AWS ECS 集群中的实例类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 AWS EC2 Container Service 中有一个集群.当我设置它时,我使用了 t2.micro 实例,因为它们足以进行开发.现在我想使用更强大的实例,比如 m4.large.

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 instances, like m4.large.

我想知道是否可以只更改实例类型,所以我不需要重新创建整个集群.我找不到如何执行此操作.

I would like to know whether it is possible to change the instance types only, so I don't need to recreate the whole cluster. I could not find how to do this.

推荐答案

是的,这是可能的.

集群中的实例类型由启动配置中的实例类型"设置决定.无需重新创建集群即可更新实例类型:

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. 复制集群启动配置并更新实例类型".
  2. 调整集群Auto Scaling Group以指向您的新启动配置.
  3. 等待您的新实例在您的集群中注册并启动您的服务.
  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.

您还可以通过创建链接到不同启动配置的多个 Auto Scaling 组,将多个实例类型添加到单个集群.但请注意,您无法在控制台中轻松复制 Auto Scaling 组.

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.

这篇关于如何更改 AWS ECS 集群中的实例类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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