Sentinel A little advice

smtd7mpg  于 2022-10-19  发布在  其他
关注(0)|答案(4)|浏览(289)

In the time window, can we improve the accuracy of granularity a little bit, and we hope to optimize this logic when refactoring

wd2eg0qa

wd2eg0qa1#

Could you please illustrate your suggestion?

9rnv2umw

9rnv2umw2#

When I read the source code of hystrix, I compared it with sentinel framework, because the framework ideas are very similar. I found that the granularity of hystrix framework in time window is finer than Sentinel's, and the granularity of time window determines the accuracy. Different time windows are dropped through hash algorithm,
For example, in hystrix, the processing of requests (number of successful requests, number of failed requests, number of timeout requests, number of rejected requests) is counted in seconds, and then the data of the last 10 seconds is taken each time for calculation. If the failure rate is more than 50%, it is fused and no more requests are processed
In fact, it exists in the re fusing degradation of the hystrix frame
In my opinion, sentinel may learn from this idea, not necessarily imitate it, but improve it on this basis

e0uiprwp

e0uiprwp3#

I think it's a good idea. We can think about optimization later

uxhixvfz

uxhixvfz4#

Something like Moving Window Average idea?

相关问题