Cloud OLTP Architectures
OLTP Architectures | Computation | Buffer | Storage |
---|---|---|---|
Disaggregated Compute-Storage | One RW Primary Node + Multiple RO Secondary Nodes |
Local Cache for each Compute Node | Aggregated Log & Page Storage |
Disaggregated Compute-Log-Storage | One RW Primary Node + Multiple RO Secondary Nodes |
Local Cache for each Compute Node | Disaggregated Log & Page Storage |
Disaggregated Compute-Bufer-Storage | One RW Primary Node + Multiple RO Secondary Nodes |
Local Cache + Shared Remote Buffer | Disaggregated Log & Page Storage |
1 Disaggregated Compute-Storage Architecture
Motivations:
- Elasticity. 计算存储独立扩展
- Efficiency. 减少写放大(write amplification)问题
- Availability. 多层恢复机制,可处理各种 exception
Key Features:
- 计算存储分离
- Log is the database. 将日志作为存储中心,写 log,通过 log 回放。为减少因为检查点、脏页写、数据同步导致的 I/O 开销,将 redo 任务卸载到存储层。