aws / amazon-ecs-agent

Amazon Elastic Container Service Agent
http://aws.amazon.com/ecs/
Apache License 2.0
2.08k stars 611 forks source link

More descriptive log message for "Resources not consumed, enough resources not available" #4268

Closed chdanielmueller closed 1 month ago

chdanielmueller commented 2 months ago

I occurred an issue with the message Resources not consumed, enough resources not available in the ecs-agent.log. I was wondering if it is possible to add the name(s) of the resource(s) that was/were not available at the time to the log message.

https://github.com/aws/amazon-ecs-agent/blob/fb55511c2857029ffa9cddc05d253ffd315c2a41/agent/engine/host_resource_manager.go#L141

chdanielmueller commented 2 months ago

I tried my best to provide a PR with my non-existent GO knowledge. Help needed...

singholt commented 1 month ago

Thanks for reporting this and your contribution. #4328 has been merged. This should be picked up in the next ECS agent release.