知识卡片
毒性任务需要退避隔离
若某个输入必然使工作者崩溃,立即重投会反复占用甚至拖垮全部工作者。记录尝试次数并指数退避,达到界限后隔离该项,让其余任务继续推进。隔离应留下诊断和重放路径,永久坏输入不会因重试次数增多自行变好。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 12. Event-Driven Batch Processing · 查看原书依据
Suppose there is a “poison” work item which crashes a worker 100% of the time. In such a situation, where one worker is recovering from the crash, the poison work is picked up by another worker, which itself crashes, causing another worker to pick up the poison and
参考来源
- 位置:《Designing Distributed Systems, 2nd Edition》第12章《Chapter 12. Event-Driven Batch Processing》(来源项目 book-sources;源文件:extracted/Designing Distributed Systems, 2nd Edition/_epub-src/OEBPS/ch12.html)
- 结论依据:原文毒性输入连锁崩溃与尝试计数、退避、移出处理给出机制。
- 原始内容:Suppose there is a “poison” work item which crashes a worker 100% of the time. In such a situation, where one worker is recovering from the crash, the poison work is picked up by another worker, which itself crashes, causing another worker to pick up the poison and