diff --git a/Directory.Packages.props b/Directory.Packages.props index 1c33298..6d8f9f2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,9 +1,9 @@ true - 1.5.53 - 1.5.53 - 1.5.52 + 1.5.55 + 1.5.55 + 1.5.55 1.4.5 9.5.1 1.52.0 @@ -17,7 +17,7 @@ - + diff --git a/src/DrawTogether/Config/AkkaConfiguration.cs b/src/DrawTogether/Config/AkkaConfiguration.cs index 593e3dc..3ce2b7e 100644 --- a/src/DrawTogether/Config/AkkaConfiguration.cs +++ b/src/DrawTogether/Config/AkkaConfiguration.cs @@ -33,8 +33,8 @@ public static IServiceCollection ConfigureAkka(this IServiceCollection services, { builder.ConfigureNetwork(provider) .AddDrawingProtocolSerializer() - .WithAkkaClusterReadinessCheck() - .WithActorSystemLivenessCheck() + .WithAkkaClusterReadinessCheck(tags:["Akka", "ready", "Akka.Cluster"]) + .WithActorSystemLivenessCheck(tags:["Akka", "liveness"]) .WithSqlPersistence( connectionString: connectionString, providerName: ProviderName.SqlServer2022, @@ -44,10 +44,11 @@ public static IServiceCollection ConfigureAkka(this IServiceCollection services, useWriterUuidColumn: true, autoInitialize: true, journalBuilder: journalBuilder => { - journalBuilder.WithHealthCheck(name:"Akka.Persistence.Sql.Journal[default]"); + journalBuilder.WithHealthCheck(name:"Akka.Persistence.Sql.Journal[default]", tags:["Akka.Persistence", "Akka.Persistence.Sql.Journal", "ready"]); + journalBuilder.WithConnectivityCheck(); }, snapshotBuilder: snapshotBuilder => { - snapshotBuilder.WithHealthCheck(name:"Akka.Persistence.Sql.SnapshotStore[default]"); + snapshotBuilder.WithHealthCheck(name:"Akka.Persistence.Sql.SnapshotStore[default]", tags:["Akka.Persistence", "Akka.Persistence.Sql.SnapshotStore", "ready"]); }) .AddAllDrawingsIndexActor(roleName) .AddDrawingSessionActor(roleName) diff --git a/src/DrawTogether/Config/HealthCheckEndpointsExtensions.cs b/src/DrawTogether/Config/HealthCheckEndpointsExtensions.cs index 2258c9d..ab486bf 100644 --- a/src/DrawTogether/Config/HealthCheckEndpointsExtensions.cs +++ b/src/DrawTogether/Config/HealthCheckEndpointsExtensions.cs @@ -34,7 +34,7 @@ public static IEndpointRouteBuilder MapHealthCheckEndpoints(this IEndpointRouteB // /healthz/ready - only readiness checks (Akka.Persistence checks by name pattern) endpoints.MapHealthChecks("/healthz/ready", new HealthCheckOptions { - Predicate = check => check.Name.Contains("Akka.Persistence"), + Predicate = check => check.Name.Contains("ready"), ResponseWriter = WriteHealthCheckResponse });