Skip to content

Commit

Permalink
Update persistence liveness probe interval documentation (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkatufus authored Sep 8, 2023
1 parent 46f3fe1 commit c61fd18
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ public enum HealthCheckType
}
```

### Configuring Persistence Liveness Probe Interval

To change the persistence liveness probe interval, configure the health check options:
```csharp
// Add Akka.HealthCheck
builder.WithHealthCheck(options =>
{
options.AddProviders(HealthCheckType.All);
// change the persistence liveness probe interval to 5 seconds
options.Liveness.PersistenceProbeInterval = TimeSpan.FromSeconds(5);
});
```

## Configuring Using HOCON
[Back To Top](#akkahealthcheck)

Expand Down Expand Up @@ -196,8 +209,8 @@ akka.healthcheck{
#persistence = "Akka.HealthCheck.Persistence.AkkaPersistenceLivenessProbeProvider, Akka.HealthCheck.Persistence"
}
# Defines the interval for each persistence health check probe refresh
persistence.probe-interval = 10s
# Defines the interval for each persistence health check probe refresh
persistence.probe-interval = 10s
# Defines the signaling mechanism used to communicate with K8s, AWS, Azure,
# or whatever the hosting environment is for the Akka.NET application. The
Expand Down

0 comments on commit c61fd18

Please sign in to comment.