Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I get 'services has reached steady state', in Amazon ECS does it means some tasks had stopped?

ECS Service Events

Does this means that my service tasks are stopping or it's ok to get these log messages?

like image 527
wviana Avatar asked Nov 19 '19 14:11

wviana


People also ask

Has reached a steady state Meaning?

The service scheduler will send a service ( service-name ) has reached a steady state. service event when the service is healthy and at the desired number of tasks, thus reaching a steady state. The service scheduler reports the status periodically, so you might receive this message multiple times.

Why is my Amazon ECS Task stuck in the pending state?

Some common scenarios that can cause your ECS task to be stuck in the PENDING state include the following: The Docker daemon is unresponsive. The Docker image is large. The Amazon ECS container agent lost connectivity with the Amazon ECS service in the middle of a task launch.

What is difference between ECS service and task?

A Service is used to guarantee that you always have some number of Tasks running at all times. If a Task's container exits due to an error, or the underlying EC2 instance fails and is replaced, the ECS Service will replace the failed Task.

Can an ECS service have multiple task definitions?

Your application can span multiple task definitions. You can do this by combining related containers into their own task definitions, each representing a single component.


3 Answers

actually opposite this. The service scheduler reports status periodically. A normal state indicates that there is nothing for it to do -- all tasks are healthy, there are no scaling requests or deployments.

like image 124
Everton Amaral Avatar answered Oct 12 '22 10:10

Everton Amaral


No it doesn't mean that any of your tasks had stopped. If a task stops you will see an event that clearly states so and will include a link to the specific task that was stopped. For example you will get something like this "service xxx has stopped 1 running tasks: task xxx."

If no tasks have been created or stopped in the last six hours the ECS console will duplicate the last event message to let you know that everything works as expected.

From the ECS docs:

"To ensure that this event view is helpful, we only show the 100 most recent events and duplicate event messages are omitted until either the cause is resolved or six hours passes. If the cause is not resolved within six hours, you will receive another service event message for that cause."

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages.html

like image 26
Manos Pasgiannis Avatar answered Oct 12 '22 10:10

Manos Pasgiannis


Check this thread here on the aws forums. https://forums.aws.amazon.com/thread.jspa?threadID=182793

This sounds like normal behavior. The service scheduler reports status periodically. A normal state indicates that there is nothing for it to do -- all tasks are healthy, there are no scaling requests or deployments. Are you seeing any issues?

like image 1
tom yang Avatar answered Oct 12 '22 10:10

tom yang