Coder Social home page Coder Social logo

Comments (14)

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

The behavior sounds expected to me. The health check status does not update immediately, and the passive health checker cannot predict if the next request will succeed. Could you elaborate?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

@StarlightIbuki
Hi
But after the interval passes it should recover, but it doesn't.
Also clearing Kong cache via Admin API fixes the issue

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

It happens when we have a rolling update on our K8s Deployment

from kong.

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

@mhkarimi1383 Is the upstream failing in a predictable or manipulatable manner? So that you are sure that the status is not reflecting the fact?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

@StarlightIbuki
Yes
I have sent a request to that pod and monitor that health check endpoint using a blackbox exporter pointing to it's k8s service

from kong.

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

@mhkarimi1383 Could you share the config that you are using?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

@StarlightIbuki

        upstream:
          healthchecks:
            active:
              healthy:
                interval: 5
                successes: 3
              type: tcp
              unhealthy:
                tcp_failures: 1
                interval: 5

Here is my KongIngress spec

from kong.

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

5s seems a short interval. How long do you wait before inspecting the status?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

@StarlightIbuki
About 5 minutes

from kong.

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

I still do not really understand the reproduction steps. When the health checker reports green and you get 503, what real status are you expecting?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

I still do not really understand the reproduction steps. When the health checker reports green and you get 503, what real status are you expecting?

Yes,
Kong said the project is unhealthy but it is healthy, clear king cache fixes the problem

from kong.

StarlightIbuki avatar StarlightIbuki commented on July 2, 2024

I still do not really understand the reproduction steps. When the health checker reports green and you get 503, what real status are you expecting?

Yes, Kong said the project is unhealthy but it is healthy, clear king cache fixes the problem

Sorry, but let's confirm if my understanding is correct: for step 4, we configure the upstream to back to work again, and we will observe the health checker reporting unhealthy condition?

from kong.

mhkarimi1383 avatar mhkarimi1383 commented on July 2, 2024

@StarlightIbuki Yes

from kong.

github-actions avatar github-actions commented on July 2, 2024

This issue is marked as stale because it has been open for 14 days with no activity.

from kong.

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.