优步的故障转移架构:在超大规模微服务基础设施中平衡可靠性和效率
Uber's Failover Architecture: Reconciling Reliability and Efficiency in Hyperscale Microservice Infrastructure
AI总结:
优步提出UFA架构,通过差异化策略优化超大规模微服务基础设施的可靠性与效率,减少资源消耗并提升系统可用性。
摘要:
在优步规模的全球实时平台运营中,需要既可靠又经济高效的基础设施。历史上,可靠性是通过昂贵的2倍容量模型来保证的——每个服务都独立地在两个地区提供以处理全球流量,导致一半的车队闲置。我们提出了优步的故障转移架构(UFA),它用一种针对业务关键性的差异化架构取代了统一的2倍模型。关键服务保留故障转移保证,而非关键服务则有机会利用为关键服务保留的故障转移缓冲容量,在稳定状态下使用。在罕见的“全峰值”故障转移期间,非关键服务会被选择性地预抢占并迅速恢复,使用按需容量的差异化服务等级协议(SLAs)。自动保障措施,包括依赖性分析和回归门,确保即使非关键服务不可用,关键服务也能继续正常运行。定量影响是显著的:UFA将稳定状态下的资源配置从2倍降低到1.3倍,利用率从约20%提高到约30%,同时保持99.97%的可用性。截至目前,UFA已加固了超过4000个不安全的依赖关系,消除了超过一百万个CPU核心,从约四百万个核心中减少。
英文摘要:
Operating a global, real-time platform at Uber's scale requires infrastructure that is both resilient and cost-efficient. Historically, reliability was ensured through a costly 2x capacity model--each service provisioned to handle global traffic independently across two regions--leaving half the fleet idle. We present Uber's Failover Architecture (UFA), which replaces the uniform 2x model with a differentiated architecture aligned to business criticality. Critical services retain failover guarantees, while non-critical services opportunistically use failover buffer capacity reserved for critical services during steady state. During rare "full-peak" failovers, non-critical services are selectively preempted and rapidly restored, with differentiated Service-Level Agreements (SLAs) using on-demand capacity. Automated safeguards, including dependency analysis and regression gates, ensure critical services continue to function even while non-critical services are unavailable. The quantitative impact is significant: UFA reduces steady-state provisioning from 2x to 1.3x, raising utilization from ~20% to ~30% while sustaining 99.97% availability. To date, UFA has hardened over 4,000 unsafe dependencies, eliminated over one million CPU cores from a baseline of about four million cores.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。