基于Hystrix服务熔断降级策略的优化分析与研究  被引量:1

Optimization Analysis and Research Based on Hystrix Service Circuit Breaker Downgrade Strategy

在线阅读下载全文

作  者:王卓 WANG Zhuo(Henan University of Urban Construction,Pingdingshan Henan 467000)

机构地区:[1]河南城建学院,河南平顶山467000

出  处:《软件》2022年第8期125-127,共3页Software

摘  要:本方案公开了一种基于Hystrix框架的动态熔断判断方法,通过压力测试得出当前服务业务的最大负载量max F,通过测试得出不同压力下的业务失败率范围,改造Hystrix框架源码,重写Health Count类,记录请求运行总数与运行错误总数,重写PLUS统计方法,记录数据,改造Hystrix框架源码,重写断路器实现类,根据上一步统计的相关数据计算出服务负载量占最大负载量的百分比,来动态得出熔断失败率算法,最终根据得出的动态失败率来决定是否需要进行熔断。本方案主要对源码中的请求量统计进行重写,记录请求的相关统计数,同时对断路器实现部分重写断路状态判断调整算法,以实现动态熔断规则的处理。This solution discloses a dynamic fuse judgment method based on the Hystrix framework. Through the stress test, the maximum load maxF of the current service business is obtained, and the range of business failure rates under different pressures is obtained through the test. Write the HealthCount class, record the total number of requests and errors, rewrite the PLUS statistics method, record the data, modify the Hystrix framework source code, rewrite the circuit breaker implementation class, and calculate the service load account for the maximum load according to the relevant data in the previous step. The percentage of the amount to dynamically obtain the fusing failure rate algorithm, and finally decide whether to perform fusing according to the obtained dynamic failure rate. This solution mainly rewrites the request volume statistics in the source code, records the relevant statistics of the requests, and at the same time partially rewrites the circuit breaker state judgment adjustment algorithm to realize the processing of dynamic fuse rules.

关 键 词:Hystrix与Hystrix服务 熔断降级策略 优化分析研究 

分 类 号:Q949.71[生物学—植物学]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象