2026-05-159 min read多模式 Leader 选举实现深入 go-ai-scheduler 的 Leader 选举设计,对比 etcd、MySQL GET_LOCK 和本地三种实现,分析优雅降级链路的工程取舍。Go分布式系统Leader 选举etcd