While I set General Config Disabled=true, err_concurrency_limit_reject still occur.
The code shows:
if c.isEmptyOrNil() || c.threadSafeConfig.CircuitBreaker.Disabled.Get() {
return runFunc(ctx)
}
If Disabled is true, it will not stats run and fallback.
Here is my breaker create code:
manager := &CircuitManager{
Manager: circuit.Manager{
DefaultCircuitProperties: []circuit.CommandPropertiesConstructor{
hystrixFactory.Configure,
},
},
}
breaker, err := manager.CreateCircuit(name)
if err != nil {
breaker = manager.GetCircuit(name)
}
breaker.SetConfigThreadSafe(circuit.Config{
General: circuit.GeneralConfig{
Disabled: true,
},
Execution: circuit.ExecutionConfig{
MaxConcurrentRequests: 10,
},
Fallback: circuit.FallbackConfig{
MaxConcurrentRequests: 10,
},
})
So why this happens?