场景:XX服务调用其他外服务共计26个,每个服务都由Hystrix统一配置线程数
配置如下:
hystrix.threadpool.default.coreSize = 50
hystrix.threadpool.default.maxQueueSize = 1000
hystrix.threadpool.default.queueSizeRejectionThreshold = 1000
查看服务性能如下:
经过查阅资料,了解hystrix配置参数后,发现可针对调用外服务的FeignClient单独配置相关参数:
参靠:Hystrix使用说明,配置参数说明_IT桐桐的博客-优快云博客_hystrix.threadpool.default.coresize
hystrix.threadpool.default.coreSize = 30
hystrix.threadpool.default.maxQueueSize = 1000
hystrix.threadpool.default.queueSizeRejectionThreshold = 1000
hystrix.threadpool.BSS-MS.coreSize = 50