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
4条答案
按热度按时间wd2eg0qa1#
Could you please illustrate your suggestion?
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
e0uiprwp3#
I think it's a good idea. We can think about optimization later
uxhixvfz4#
Something like
Moving Window Average
idea?