go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

Why not set the parameters of the breaker middleware to be configurable?

Open whitestorm0316 opened this issue 4 months ago • 3 comments

whitestorm0316 avatar Aug 04 '25 07:08 whitestorm0316

Which parameter you want to configure? It's working pretty good with default parameters. Did you encounter any problem?

kevwan avatar Aug 04 '25 14:08 kevwan

Which parameter you want to configure? It's working pretty good with default parameters. Did you encounter any problem?

I’m currently facing an issue: after a MySQL failure, the circuit breaker was triggered and remained open for 15 minutes before returning to normal, even though the MySQL failure itself was resolved within 1 minute. Is there any way to disable the circuit breaker, or are there parameters that can be adjusted?

MrCoderYu avatar Oct 28 '25 15:10 MrCoderYu

Which parameter you want to configure? It's working pretty good with default parameters. Did you encounter any problem?

I'm also having this issue, looks like the breaker parameters are hardcoded and can't be customized?

zhiqiangxu avatar Oct 31 '25 02:10 zhiqiangxu