Skip to content

Commit 7c3a0a2

Browse files
committed
be less strict with dataforsyningen client healthcheck
it's super noisy when triggered
1 parent ff10180 commit 7c3a0a2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/Jordnaer.Shared/Extensions/ServiceCollectionExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ public static IServiceCollection AddDataForsyningenClient(this IServiceCollectio
2626

2727
var pingCircuitBreakerOptions = new HttpCircuitBreakerStrategyOptions
2828
{
29-
FailureRatio = 0.5,
30-
BreakDuration = TimeSpan.FromMinutes(5),
31-
MinimumThroughput = 2,
29+
FailureRatio = 0.25,
30+
BreakDuration = TimeSpan.FromMinutes(1),
3231
ShouldHandle = arguments =>
3332
new ValueTask<bool>(
3433
arguments.Outcome.Exception is not null ||

0 commit comments

Comments
 (0)