Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<PropertyGroup Label="SharedVersions">
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AkkaVersion>1.5.53</AkkaVersion>
<AkkaHostingVersion>1.5.53</AkkaHostingVersion>
<AkkaManagementVersion>1.5.52</AkkaManagementVersion>
<AkkaVersion>1.5.55</AkkaVersion>
<AkkaHostingVersion>1.5.55</AkkaHostingVersion>
<AkkaManagementVersion>1.5.55</AkkaManagementVersion>
<PetabridgeCmdVersion>1.4.5</PetabridgeCmdVersion>
<AspireVersion>9.5.1</AspireVersion>
<PlaywrightVersion>1.52.0</PlaywrightVersion>
Expand All @@ -17,7 +17,7 @@
<PackageVersion Include="Akka.Discovery.KubernetesApi" Version="$(AkkaManagementVersion)" />
<PackageVersion Include="Akka.Hosting" Version="$(AkkaHostingVersion)" />
<PackageVersion Include="Akka.Management" Version="$(AkkaManagementVersion)" />
<PackageVersion Include="Akka.Persistence.Sql.Hosting" Version="1.5.53" />
<PackageVersion Include="Akka.Persistence.Sql.Hosting" Version="1.5.55.1" />
<PackageVersion Include="Akka.Streams" Version="$(AkkaVersion)" />
<PackageVersion Include="Akka.Streams.TestKit" Version="$(AkkaVersion)" />
<PackageVersion Include="Aspire.Hosting.Azure.Storage" Version="$(AspireVersion)" />
Expand Down
9 changes: 5 additions & 4 deletions src/DrawTogether/Config/AkkaConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/DrawTogether/Config/HealthCheckEndpointsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down
Loading