知识卡片
处理单元缓存需按容量监控
空间架构把事务数据放进处理单元的内存缓存。每增设一个持有副本的单元,都要为这份数据预留内存;若缓存持续膨胀,单元可能因内存耗尽而崩溃。原书建议让实例定期上报内存占用,并另记同类单元实例数,以估算副本总内存;扩容时据此检查容量约束。这里的“事务数据”是原书对缓存内容的称呼,不能据此推断缓存本身提供数据库事务保证。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Space-Based Architecture Style · 查看原书依据
This makes it critical to pay close attention to the size of the in-memory cache to avoid a processing unit running out of memory and hence crashing.
参考来源
- 位置:《Fundamentals of Software Architecture》原书第16章《Space-Based Architecture Style》(阅读计划第19项,单元18与20;源文件:`OEBPS/ch16.html`)
- 结论依据:单元18指出缓存数据量和单元内存耗尽风险;单元20提出定期上报内存占用并另记实例数来核算副本总内存。容量约束是据此作出的操作性归纳。
- 原始内容:This makes it critical to pay close attention to the size of the in-memory cache to avoid a processing unit running out of memory and hence crashing.