检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王卓 WANG Zhuo(Henan University of Urban Construction,Pingdingshan Henan 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服务 熔断降级策略 优化分析研究
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.38