GithubHelp home page GithubHelp logo

Comments (9)

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024 1

The thing is the default timeout for the http client is 100 secs and it the service is down it can delay the heath check report. In Beatpulse we had the timeout feature integrated in the HealthChecks core but the AspNetCore healthchecks extensions will have to implement this by themselves until some kind of timeout configuration is provided by the AspNetCore library

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 15, 2024

Hi @grey007

Not now, sorry! I try to add this feature soon, of course contributions are open on this repo.

from aspnetcore.diagnostics.healthchecks.

pajzo avatar pajzo commented on June 15, 2024

Hi @unaizorrilla

Have you think about how to implement it? Because, maybe i will give it a try.

Maybe do some kind of loop for x minutes with x seconds/minutes between check before marks the check as degraded/unhealthy.

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024

I have already implemented it. Pull request pending thought. My approach has been configuring the httpclient timeout property.

from aspnetcore.diagnostics.healthchecks.

pajzo avatar pajzo commented on June 15, 2024

@CarlosLanderas Then i misunderstood the request - i thought it should check the endpoint multiple times before marking the check as unhealthy.

from aspnetcore.diagnostics.healthchecks.

agcos avatar agcos commented on June 15, 2024

@CarlosLanderas any ideas when can we expect a PR?!

from aspnetcore.diagnostics.healthchecks.

wdamron avatar wdamron commented on June 15, 2024

On a related note, the UriHealthCheck currently ignores the passed-in CancellationToken when calling var response = await httpClient.SendAsync(requestMessage);

(see https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/src/HealthChecks.Uris/UriHealthCheck.cs#L47)

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024

Merged in #85. Closing issue

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 15, 2024

Hi @grey007

A timeout feature is new on 2.2.2 package for Uri healthchecks from a @wdamron PR.

You can check functional tests in order to know how is used

https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/test/FunctionalTests/HealthChecks.Uris/UriHealthCheckTests.cs

from aspnetcore.diagnostics.healthchecks.

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.