Sitecore 10 xConnect Circuit Breaker Issue
Recently
we have done Sitecore upgradation from 9.1 to 10.1. While doing the setup on
Sitecore 10.1, I faced the below issue-
Sitecore.XConnect.XdbCollectionUnavailableException:
An error occurred while sending the request
Circuitbreaker is a design pattern used in software development. It is used to
detect failures and encapsulates the logic of preventing a failure from
constantly recurring, during maintenance, temporary external system failure or
unexpected system difficulties.
How to fix the error?
You
enable CircuitBreaker configurations by patch file to manage xConnect requests
from the Content Management role.
To
create a CircuitBreaker configuration:
1) Go
to the <wwwroot>/App_Config/Include/ folder of your Sitecore instance.
2) Create
a patch file named, for example, CircuitBreakerCommon.config with the following
configuration:
<CircuitBreaker
name="CircuitBreakerCommon"
type="Sitecore.XConnect.Client.WebApi.Policies.CircuitBreakerInfo,
Sitecore.XConnect.Client" >
<param
desc="Key">General</param>
<param
desc="handledEventsAllowedBeforeBreaking">2</param>
<param
desc="durationOfBreak">15</param>
</CircuitBreaker>
3)Save
the patch file.
·
Configure a circuit breaker for xConnect
Thanks for the solution
ReplyDelete