Git Product home page Git Product logo

Comments (6)

CumpsD avatar CumpsD commented on June 23, 2024 2

I managed to implement 1.0.0-beta1 in my project fyi

For the Akka project I added:

  nuget Akka.HealthCheck 1.0.0-beta1
  nuget Akka.HealthCheck.Persistence 1.0.0-beta1
  nuget Akka.HealthCheck.Hosting.Web 1.0.0-beta1

Called

AkkaHealthCheck.For(actorSystem);

And used hocon:

  healthcheck {
    log-config-on-start = on
    log-info = on

    liveness {
      transport = custom

      providers {
        default = "Akka.HealthCheck.Liveness.DefaultLivenessProvider, Akka.HealthCheck"
        persistence = "Akka.HealthCheck.Persistence.AkkaPersistenceLivenessProbeProvider, Akka.HealthCheck.Persistence"
      }
    }

    readiness {
      transport = custom

      providers {
        default = "Akka.HealthCheck.Readiness.DefaultReadinessProvider, Akka.HealthCheck"
      }
    }
  }

For ASP.NET integration I added:

    using Akka.HealthCheck.Hosting.Web;

    .WithAkkaLivenessProbe()
    .WithAkkaReadinessProbe()
    .WithAkkaPersistenceLivenessProbe()

    endpoints
        .MapAkkaHealthCheckRoutes(
            HealthChecksWriter.HealthCheckEndpoint,
            (_, options) =>
            {
                options.AllowCachingResponses = false;
                options.ResponseWriter = HealthChecksWriter.WriteHealthCheckResponse;
            });

And everything worked for my use case :)

from akkadotnet-healthcheck.

Aaronontheweb avatar Aaronontheweb commented on June 23, 2024

@Arkatufus guess we'll do this via 1.0.0-beta1 and doing some integration testing into other projects / packages

from akkadotnet-healthcheck.

Arkatufus avatar Arkatufus commented on June 23, 2024

@CumpsD You shouldn't need to set the HOCON settings when you use Akka.HealthCheck.Hosting.Web, and using the web package should pull the other packages as dependency

from akkadotnet-healthcheck.

CumpsD avatar CumpsD commented on June 23, 2024

I like to be explicit with the packages :)

As for the HOCON, it's WithWebHealthCheck which adds it no? And since I'm not using Akka.Hosting I don't have an AkkaBuilder which does that, no? I haven't converted to .Hosting yet

from akkadotnet-healthcheck.

Arkatufus avatar Arkatufus commented on June 23, 2024

Got it :)

from akkadotnet-healthcheck.

Aaronontheweb avatar Aaronontheweb commented on June 23, 2024

Related: akkadotnet/Akka.Hosting#188

from akkadotnet-healthcheck.

Related Issues (16)

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.