From 7c3a0a2356dbc2c4bd67ea3e0f2137be7273702e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Pilgaard=20Gr=C3=B8ndahl?= Date: Sat, 10 Aug 2024 20:02:46 +0200 Subject: [PATCH] be less strict with dataforsyningen client healthcheck it's super noisy when triggered --- .../Extensions/ServiceCollectionExtensions.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shared/Jordnaer.Shared/Extensions/ServiceCollectionExtensions.cs b/src/shared/Jordnaer.Shared/Extensions/ServiceCollectionExtensions.cs index 648cf645..1f1388da 100644 --- a/src/shared/Jordnaer.Shared/Extensions/ServiceCollectionExtensions.cs +++ b/src/shared/Jordnaer.Shared/Extensions/ServiceCollectionExtensions.cs @@ -26,9 +26,8 @@ public static IServiceCollection AddDataForsyningenClient(this IServiceCollectio var pingCircuitBreakerOptions = new HttpCircuitBreakerStrategyOptions { - FailureRatio = 0.5, - BreakDuration = TimeSpan.FromMinutes(5), - MinimumThroughput = 2, + FailureRatio = 0.25, + BreakDuration = TimeSpan.FromMinutes(1), ShouldHandle = arguments => new ValueTask( arguments.Outcome.Exception is not null ||