-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circuit Breaker or Timeout Configuration Not Working as Expected in Ocelot #2237
Comments
This issue has been resolved my-self. |
Hello, Md. Aftab!
What is the frequency with which you have encountered this? What proportion of the total number of requests does it represent? P.S.Please aware that the
|
Hello, May I ask how to solve your problem? I also encountered the same problem. The configuration is correct and the TimeoutValue parameter is also effective |
I am using Ocelot as my API Gateway and have configured QoS options to include a circuit breaker and timeout for downstream requests. However, the behavior is not working as expected. Specifically:
Timeout Behavior:
When the TimeoutValue is set (e.g., 3000ms), requests taking longer than the specified duration do not always return a timeout error. Instead, the requests continue and eventually return the downstream response.
Circuit Breaker Behavior:
While testing the ExceptionsAllowedBeforeBreaking functionality, I noticed that the circuit breaker does not transition to the "Open" state after the specified number of exceptions.
Despite setting ExceptionsAllowedBeforeBreaking to a value (e.g., 3), the circuit breaker does not seem to open even when more exceptions than the allowed threshold are encountered consecutively.
Reproduction Steps:
Configuration used in global configuration and route level:
"QoSOptions": {
"TimeoutValue": 3000,
"DurationOfBreak": 2000,
"ExceptionsAllowedBeforeBreaking": 3
}
Specifications
The text was updated successfully, but these errors were encountered: