logo

如何水平扩展 Scheduling Service 并确保同一任务不会被多个调度 worker 重复处理?请解释 segment 方案与 coordinator 的作用。

How do you scale the Scheduling Service horizontally while ensuring the same job is not processed by multiple scheduling workers? Explain the segment approach and the coordinator’s role.

题目类型: 技术面试题

这是一道技术面试题,常见于澳洲IT公司面试中。

难度: hard

分类: system-design, distributed-systems

标签: horizontal-scaling, segments, coordinator, heartbeats, workload-rebalancing, single-point-of-failure

参考答案摘要

TL;DR 当某一分钟需要处理大量任务时,单节点调度会成为瓶颈且存在单点故障。解决方案是引入 多个 scheduling worker 并把 schedules 表的任务划分为 segments :每个 worker 只处理指定 segment 的任务,coordinator 负责分配 segment、监控 worker 健康,并在故障或扩容时动态 rebalance。 为什么需要分布式调度 高峰...

本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。

← 返回面试题库

如何水平扩展 Scheduling Service 并确保同一任务不会被多个调度 worker 重复处理?请解释 segment 方案与 coordinator 的作用。

Hardsystem-design

想查看完整答案?

登录匠人学院学习中心,获取 STAR 格式回答和详细技术解析

前往学习中心查看答案