Property HealthCheckInterval
HealthCheckInterval
Gets or sets the interval at which health checks on the repo volume/directory are performed. Must be at least 1 second. Default is 15 seconds.
Declaration
public TimeSpan HealthCheckInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Remarks
The interval bounds how long it takes the repository to notice an I/O problem, such as a disconnected storage volume, and recover from it. While the repository is being accessed, health checks run in the background and never block repository operations; once the repository has been idle for the interval they stop, so an idle repository performs no I/O, and the first operation after an idle period performs the check before proceeding. Health checks are lightweight (a single I/O sys-call). If a check fails, the repository automatically attempts to re-initialize itself, with each repository operation waiting up to MaxAccessWaitOrRetryTime for re-initialization before timing out (a commit or rollback of a transaction waits that long once for all of its files; see MaxAccessWaitOrRetryTime).
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is less than 1 second. |