I have a Scala application managed by ecs that makes a call through an alb to various python applications also managed by ecs. This application sends a significant amount of traffic through the alb (on the order of 750 requests/min). The problem is That I am on occasionally getting a java.net.SocketTimeoutException: Read timed out
. This error seems to occur when there are 5+ Client TLS Negotiation Errors occurring through the alb. These Client TLS Negotiation Errors are occurring on the hour or half hour in random intervals. For Example: the error could occur at 4:30, 8:00, 12:00, 15:30, 18:00 on a particular day. Unfortunately the python applications are black boxes to me and I don't have access to the logs. My question is what could be causing these tls issues? Also could I discount the python applications as being part of the issue? I am using a legitimate ssl cert, but I am also using .option(HttpOptions.allowUnsafeSSL)
when performing the rest calls.
Asked
Active
Viewed 1,396 times
2

user8887477
- 41
- 2
-
It seems that your application is too busy doing the work it does and thus some requests are timing out. – sarveshseri Sep 22 '20 at 03:51
-
@sarveshseri If it were too busy at times what do you think explains the time interval trend. I am seeing these tls errors primarily occurring on an even hour or half hour. e.g 1:30, 4:00, 12:00, 17:30, 20:00. – user8887477 Sep 22 '20 at 04:02
-
keyword being "primarily". Since its a simple "Read Time Out" at socket level, it should have 'nothing to with TLS or anything else. – sarveshseri Sep 22 '20 at 04:47