Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download/stream delays #370

Open
dsoprea opened this issue Mar 11, 2022 · 2 comments
Open

Download/stream delays #370

dsoprea opened this issue Mar 11, 2022 · 2 comments

Comments

@dsoprea
Copy link

dsoprea commented Mar 11, 2022

Traditionally, it takes, at least, a minute or two for me to see actual output, whether I'm watching a stream of Fargate ECS task output or just downloading all of it. However, I noticed that I provisioned some ECS containers that had five times as much memory and twice as much CPU allocation and I get those logs/streams instantly when I call awslogs. It doesn't make sense, as there really is no way to differently configure how the logs are captured from the tasks, the regions are the same, it's all through Cloudwatch in general, this affects both running tasks and finished tasks, and those high-resources tasks have massively more logging than the others (you might expect the behavior to be reversed). Are there any observations I might be missing? Is there any wisdom that might be useful to reconcile this behavior?

@tomchiverton
Copy link

Does this match the delay you see on the AWS CloudWatch console ?

CloudWatch logs are not instant.

@dsoprea
Copy link
Author

dsoprea commented Apr 25, 2022

I'm not referring to the initial ECS startup. I mean mid-stream, where the log is hot and has been running for a while. Obviously, I can look at a running log instantly directly in CW and I can receive them instantly. I can also use "aws logs tail" and pull them up instantly. For some reason, I blocked on awslogs for maybe three minutes to start showing the exact same data.

The commands, for comparison:

aws logs tail /ecs/extraction/scheduled --log-stream-names ecs/extractor-container/ac470d3b1a554077953f5ad121458fc1 --format short --follow
    awslogs get \
        /ecs/extraction/scheduled \
        "ecs/extractor-container/${STREAM_ID}" \
        --start='1 hour' \
        -w \
        --no-stream \
        --no-group

Is there some issue with how I'm calling it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants