扩展WeChat微服务的过载控制
Overload Control for Scaling WeChat Microservices
摘要:
对大型在线服务系统进行有效的过载控制是保证系统后端不过载的关键。常规地,过载控制的设计是针对个别服务的ad-hoc。然而,由于复杂的服务依赖性或服务的有缺陷的实现,特定于服务的过载控制可能对整个系统有害。在服务开发过程中,服务开发人员通常很难准确估计实际工作负载的动态变化。因此,必须将过载控制与服务逻辑解耦。在本文中,我们提出了DAGOR,这是一种为面向帐户的微服务架构设计的过载控制方案。DAGOR与服务无关,以系统为中心。它管理微服务颗粒的过载,使得每个微服务实时的监控其负载状态,并在检测到过载时以协作方式在其相关服务之间触发负载削减。DAGOR已经在微信后台使用了五年。实验结果表明,DAGOR算法在保证公平性的前提下,即使在系统过载的情况下也能保证较高的服务成功率。
英文摘要:
Effective overload control for large-scale online service system is crucial for protecting the system backend from overload. Conventionally, the design of overload control is ad-hoc for individual service. However, service-specific overload control could be detrimental to the overall system due to intricate service dependencies or flawed implementation of service. Service developers usually have difficulty to accurately estimate the dynamics of actual workload during the development of service. Therefore, it is essential to decouple the overload control from service logic. In this paper, we propose DAGOR, an overload control scheme designed for the account-oriented microservice architecture. DAGOR is service agnostic and system-centric. It manages overload at the microservice granule such that each microservice monitors its load status in real time and triggers load shedding in a collaborative manner among its relevant services when overload is detected. DAGOR has been used in the WeChat backend for five years. Experimental results show that DAGOR can benefit high success rate of service even when the system is experiencing overload, while ensuring fairness in the overload control.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。