Cell 温度管理

wesgine 通过温度模型管理 Cell 的资源占用和激活成本。


四级温度

温度含义激活成本
Hot有活跃 Run0
Warmgoroutine/DB 在0
Cool磁盘保留,无 goroutine100-500ms
ColdStopped1-3s

状态转换

Hot → Warm     Run 结束
Warm → Cool    idle 15 分钟
Cool → Cold    idle N 天

外设需 Warm:


Cool 态首请求


温度调度器

Hypervisor 级温度调度器:


IMAP 与温度

IMAP 收信注册与温度计数一律读存储(不读声明):


Plugin 加载


Convention Probe Cache


RuntimeDir 覆盖

CellSpec.RuntimeDir 可覆盖 Hypervisor 级共享 runtime 目录,实现 per-Cell 隔离。


反模式

禁止正确做法
假设 Cell 永远 Hot检查温度,Cool 态需 WarmUp
Cold 态直接调用数据面返回 503 + Retry-After
Convention 结果写 memoryProbeCache(INV-MEM-12)
IMAP 计数读声明读存储