Coder Social home page Coder Social logo

Connections being closed -- K8s.Client.Mint.HTTPAdapter Connection closed for reading and writing - stopping this process. about k8s HOT 2 OPEN

nickdichev-firework avatar nickdichev-firework commented on June 12, 2024
Connections being closed -- K8s.Client.Mint.HTTPAdapter Connection closed for reading and writing - stopping this process.

from k8s.

Comments (2)

mruoss avatar mruoss commented on June 12, 2024

Hi @nickdichev-firework

Indeed, this is most likely the API server closing the connection after some time. K8s will reconnect. I do admit, the log level is debatable.
Until fixed, I'd like to propose to filter out logs from k8s. It is nice for me to get these logs during development and from users with issues. But I usually don't want logs from libs in my apps.

From https://hexdocs.pm/k8s/observability.html:

All logs produced by this library should have library: :k8s as metadata which can be used in filters.

In order to filter the k8s logs, configure compile_time_purge_matching as follows in your config.exs

# config.exs
config :logger,
  compile_time_purge_matching: [
    [library: :k8s]
  ]

from k8s.

nickdichev-firework avatar nickdichev-firework commented on June 12, 2024

@mruoss Great, thanks for the quick response. I did notice that you added metadata to these logger calls so that was going to be my "nuke it" plan!

Do you mind if I leave this issue open so I can be notified if a PR/release goes out to reduce the log level? Thanks!

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.