TimeOut to connect to Websocket In Scala

I have a connection to the server from the client to the api service, and then from the API service to other services. Now, by default, the connection timeout (i.e., when the message / connection does not work when the web socket is connected) is 1 min, and I found the settings for increasing it, that is, using akka.http.client.idle-timeout = 300s and akka.http.server.idle-timeout = 300.

But in my case, these settings work on a local, incresed timeout (i.e. when starting services locally on my computer), but not when I deploy services to EC2, creating docker images.

So, please, someone tell me why he is behaving this way?

+5
source share
1 answer

This is more like a Docker configuration problem, not akka problem. You must debug your container configuration in two ways:

  • Log in to EC2 instance and check the environment setting with docker inspect <containerid>
  • Forcing Akka to print the configuration

You can either set the following parameter in your application.conf

  akka { log-config-on-start = "on" } 

Or explicitly call the code

 myConfig.root().render() 
0
source

Source: https://habr.com/ru/post/1269262/


All Articles