22

ECS Service Events

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

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
wviana
  • 1,619
  • 2
  • 19
  • 47

3 Answers3

28

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.

Everton Amaral
  • 296
  • 3
  • 2
10

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

Manos Pasgiannis
  • 1,693
  • 1
  • 18
  • 30
2

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?

tom yang
  • 39
  • 3
  • That link is dead now, but I found this one. Thanks to Tom for sharing the original. https://repost.aws/questions/QUsf9TOLy_QQGrYmMv9hBxUA/fargate-service-reboots-every-six-hours – CanuckT Nov 18 '22 at 05:08