Replies: 1 comment 6 replies
-
Keep in mind, that erlang/elixir is a cluster system. If you using Kubernetes, there is no reason to restart the whole pod/container application, because the erlang pod will try to restart the process that handles the connection. Because of connection issues, there is no need to restart the erlang/elixir pod. The process itself is restarted and the new process will try to connect. And what would a restart of a pod change, when the connection can not be established? You will see a lot of restarts of pods. |
Beta Was this translation helpful? Give feedback.
-
When starting a connection under the application supervision tree as
{Mongo, opts}
, bad connections aren't crashing the process. Even when manipulating any of the timeouts (:checkout_timeout
,:connect_timeout
, etc.) it seems to sit forever logging[error] Mongo.MongoDBConnection ... :econnrefused
. When manually attempting to create a cursor via iex on a bad connection, eventually there is a message timeout at 60 seconds.Is there a way to crash this harder and faster? I would like to bring down the whole application when there is connection issues, that way I can rely on K8s to restart things.
Beta Was this translation helpful? Give feedback.
All reactions