(no title)
tcas | 1 year ago
By default a docker container configured with awslogs runs in "blocking" mode. As logs get logged, docker will buffer them and push to CloudWatch logs frequently. In case the log stream is faster than what the buffer can absorb, stdout/stderr get blocked and then the container will freeze on the logging write call. If putlogevents is failing, buffers are probably filling up and freezing containers. I assume most of AWS uses it's own logging system, which could cause these large, intermittent failures.
If you're okay dropping logs, add something like this to the container logging definition:
"max-buffer-size": "25m"
"mode": "non-blocking"
mbaumbach|1 year ago
tcas|1 year ago
https://aws.amazon.com/blogs/containers/preventing-log-loss-...