Thank you for quick response. Really appreciate it.
Communication between microservices is standard REST based HTTP communication. We observed connection reset error frequent.
Another observation is if it's more likely to happen when the service has been idle for some time.
We are using application load balancer. We are trying to check ELB logs to see if we get anything there.
Do you think setting header "Keep-Alive" will help?
What is the communication patter looks like and is the TCP connection linger with no packet for a long period of time or the connection reset happens very often?
Also What type of ELB you are using?
For example, in NLB,
Elastic Load Balancing sets the idle timeout value for TCP flows to 350 seconds. You cannot modify this value.
That said, connection reset should not be a big problem, especially if they don't occur often, this is because the client application can always open a new TCP connection at the error handling logic. As matter of fact, if the application is failing because of this, it indicates issues with the code in terms of gracefully handle error conditions.
As indicated in the documentation, TCP Keep-alive is a viable option. Or you can set application code to timeout before TCP connection is closed.
It should also be noted that the backend server should also have keep alive values larger than the ELB's setting.
Need URI for a ECS Clusterasked a month ago
Running multiple container using single EC2 instances in ECSasked 2 months ago
Are the clocks in docker containers in Fargate synced with the host?Accepted Answerasked 2 months ago
how can we assign vpcid while creating a ecs service under ecs cluster through .net aws sdk?Accepted Answerasked 19 days ago
ECS tasks in a Cluster, not linking between them.asked 6 months ago
AWS CLI ECS WAIT Command in Jenkinsfileasked 6 days ago
I want consolidated application logs running on AWS ECS with microservices architectureasked 4 months ago
Connection reset error in ECS cluster between two microservices running on two containers.asked 8 months ago
Have a service running in an ECS cluster dynamically create a new service in the same clusterasked 4 months ago
ECS containers running on private subnet can not reach elastic searchAccepted Answerasked 3 years ago