Comments (6)
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.
@Arkatufus guess we'll do this via 1.0.0-beta1 and doing some integration testing into other projects / packages
from akkadotnet-healthcheck.
@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.
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.
Got it :)
from akkadotnet-healthcheck.
Related: akkadotnet/Akka.Hosting#188
from akkadotnet-healthcheck.
Related Issues (18)
- How can you perform multiple health checks ? HOT 1
- Rename Akka.Cluster.HealthCheck to Akka.HealthCheck.Cluster HOT 1
- Akka.HealthCheck.Persistence unit tests HOT 4
- Akka Cluster HealthCheck Probe Readiness Test
- Can't install Akka.HealthCheck.Hosting.Web into .NET 7.0 application HOT 3
- Need reduce log verbosity on Akka.Persistence liveness probes
- Akka.Persistence health checks create blobs but don't clean itself up HOT 7
- Socket probe transport doesn't accept / handle incoming connections HOT 4
- Rewrite Cluster health checks
- Relaxing Akka.Persistence.HealthCheck
- Cluster readiness reports Healthy when still not joined HOT 1
- AkkaPersistenceLivenessProbe subscription test failing due to LivenessStatus not being true HOT 1
- Add debug logging option for transports HOT 1
- Add debug option to log startup configuration at launch HOT 3
- Add startup message indicating that liveness / readiness probes have been configured successfully HOT 1
- Do I need Akka.HealthCheck.Cluster? HOT 1
- Missing Logic in AkkaPersistenceLivenessProbe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akkadotnet-healthcheck.