Amazon-Web-Services – Cost Calculation using AWS ECS container

I have a question about the cost structure of AWS ECS. How do I know which service on the container “consumption” is the most? I don’t see the option to mark the container. Any ideas are welcome, I didn’t find any good solutions on the AWS website. Thanks in advance.
The ECS service is allocated to instances based on the memory limit and CPU units you specify for the tasks that make up the service. You can divide the cost of the EC2 instances in the cluster by the total amount of resources divided by the amount of resources required Estimate the cost.

The CPU unit is the minimum, that is, unless the available CPU units are the least, tasks will not be placed on the instance. Tasks can exceed the number of CPU units they require , You can even set the value to 0.

The memory limit is the maximum amount of memory allowed for the task. You must allocate enough memory for the ECS task, otherwise it will be killed by the ECS when it exceeds the ECS.

Therefore, memory is a better resource when estimating costs.

For example:

Assuming you have a service that runs 2 task instances, the The task requires a total of 800 MB of memory. If you use t2.medium instances in a cluster, this service will require about 1/2 of t2.medium to run, and your cost of this service on ECS will be the cost of 2.medium 1/2. EC2 instance.

I have questions about the cost structure of AWS ECS. How do I know which service on the container “consumption” is the most? I don’t see the option to mark the container. Any ideas are welcome, I didn’t find any good solutions on the AWS website. Thanks in advance.

The ECS service is composed according to you The memory limit and CPU unit specified by the task of the service are allocated to the instance. You can estimate the cost by dividing the cost of the EC2 instances in the cluster by the total amount of resources divided by the amount of resources required.

The CPU unit is the minimum value, that is, unless the available CPU units are the least, tasks will not be placed on the instance. Tasks can exceed the number of CPU units they require, and the value can even be set to 0.

The memory limit is the maximum amount of memory allowed for the task. You must allocate enough memory for the ECS task, otherwise it will be killed by the ECS when it exceeds the ECS.

Therefore, when estimating the cost Memory is a better resource.

For example:

Suppose you have a service that runs 2 task instances, and the task requires a total of 800 MB of memory. If you are in a cluster Using a t2.medium instance in, this service will require about 1/2 of t2.medium to run, and your cost of this service on ECS will be 1/2 of the cost of 2.medium. EC2 instance.

Leave a Comment

Your email address will not be published.