Updating an Amazon ECS cluster
You can modify the following cluster properties:
-
Set a default capacity provider
Each cluster can have one or more capacity providers and an optional capacity provider strategy. The capacity provider strategy determines how the tasks are spread across the cluster's capacity providers. When you run a standalone task or create a service, you either use the cluster's default capacity provider strategy or a capacity provider strategy that overrides the default one.
-
Turn on Container Insights.
CloudWatch Container Insights collects, aggregates, and summarizes metrics and logs from your containerized applications and microservices. Container Insights also provides diagnostic information, such as container restart failures, that you use to isolate issues and resolve them quickly. For more information, see Monitor Amazon ECS containers using Container Insights.
-
Add tags to help you identify your clusters.
Procedure
Open the console at https://console.amazonaws.cn/ecs/v2
. -
In the navigation pane, choose Clusters.
-
On the Clusters page, choose the cluster.
-
On the Cluster :
name
page, choose Update cluster. -
To set the default capacity provider, under Default capacity provider strategy, choose Add more.
-
For Capacity provider, choose the capacity provider.
-
(Optional) For Base, enter the minimum number of tasks that run on the capacity provider.
You can only set a Base value for one capacity provider.
-
(Optional) For Weight, enter the relative percentage of the total number of launched tasks that use the specified capacity provider.
-
(Optional) Repeat the steps for any additional capacity providers.
-
-
To turn on or off Container Insights, expand Monitoring, and then turn on Use Container Insights.
-
To help identify your cluster, expand Tags, and then configure your tags.
[Add a tag] Choose Add tag and do the following:
-
For Key, enter the key name.
-
For Value, enter the key value.
[Remove a tag] Choose Remove to the right of the tag’s Key and Value.
-
-
Choose Update.