-
Notifications
You must be signed in to change notification settings - Fork 35
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
TCP Socket errors - Transport endpoint is already connected #40
Comments
This looks like a bug to me. aws-embedded-metrics-python/aws_embedded_metrics/sinks/tcp_client.py Lines 34 to 35 in c85dcdd
|
While MetricsLoggers are not shared across threads, it looks like each instance of MetricsLogger is pointing to the same Environment which has a single AgentSink which has a single TcpClient. So yes, I would say it's shared across the application with multiple loggers flushing to the CW agent at once. |
I've had a similar issue running an multi-threaded application on ECS. It seems that there was a temporary Network issue between the CW agent container and my application that lead to a socket error but the metric logger was never able to recover from it. An extract from the logs:
|
Hi there! We're using this module to log metrics for a high-frequency ETL service that is running on ECS where we have been noticing TCP socket
106
errors. A CloudWatch Agent container is setup as a sidecar alongside the application server in the ECS Task Definition that is responsible for publishing the metrics.I'm trying to understand the root cause of these errors and how to avoid them. Any help is appreciated. Thanks!
Exact error:
The text was updated successfully, but these errors were encountered: