知识卡片
函数批次与扩缩抖动
短生命周期函数频繁加入、离开消费组会不断触发再平衡,过于敏感的扩缩策略可能使系统一直协调而不处理。阶梯或滞回策略可减少抖动,静态分区也可减少重分配但要保证覆盖。另需把批次、执行时长、CPU和外部I/O一起匹配,超时后原样重试同一过大批次不会自然成功。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Microservices Using Function-as-a-Service · 查看原书依据
For functions that instantiate and manage their own event broker connections, beware the impact of partition assignment rebalancing when a consumer enters or leaves the consumer group. A consumer group can end up in a state of near-constant rebalancing if consumers are frequently joining and leaving the consumer group, preventing progress from being made. In extreme circumstances it is possible to get stuck in a virtual deadlock of rebalancing, where
参考来源
- 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第09章《Microservices Using Function-as-a-Service》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch09.xhtml;规范化段落起句:For functions that instantiate and manage)
- 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:短生命周期函数频繁加入、离开消费组会不断触发再平衡,过于敏感的扩缩策略可能使系统一直协调而不处理。本卡同时保留其适用条件与失败边界。
- 原始内容:For functions that instantiate and manage their own event broker connections, beware the impact of partition assignment rebalancing when a consumer enters or leaves the consumer group. A consumer group can end up in a state of near-constant rebalancing if consumers are frequently joining and leaving the consumer group, preventing progress from being made. In extreme circumstances it is possible to get stuck in a virtual deadlock of rebalancing, where