Skip to content

Connections being closed -- K8s.Client.Mint.HTTPAdapter Connection closed for reading and writing - stopping this process. #303

@nickdichev-firework

Description

@nickdichev-firework

Version: 2.5.0

I am having a problem where one of my apps will often (typically ~300-600 times per day) make warning logs that K8s.Client.Mint.HTTPAdapter Connection closed for reading and writing - stopping this process. This is unfortunate because we are triggering sentry on warning logs.

I have seen that there was some recent activity on this issue related to the Mint conn status, however, I am on a more recent version. It seems like an idle timeout, but I am not really sure how to validate. I wanted to experiment with passing some mint options into the adapter ({:keepalive, true}) but I'm not really sure how to do this. Additionally, I guess it could be the server side closing the connection (we are using EKS version 1.27) but I haven't been able to determine what settings the server side is using.

I am also curious why warning log level was chosen here. My understanding is the ConnectionRegistry will reopen the connection, so if one is closed it's not a problem?

Any ideas for things to try? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions