You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1.用户视角

1.1 案例描述

    用户写入root.sg1.d1.s1, root.sg1.d2.s1, root.sg1.d3.s1, root.sg2.d1.s1, root.sg2.d2.s1五条序列,假设在给定的hash函数下root.sg1.d1映射为0, root.sg1.d2映射为1, root.sg1.d2映射为0,root.sg2.d1映射为0,root.sg2.d2映射为1,给定逻辑存储组数量为2,虚拟存储组数量也为2。

1.2 方案一目录结构(简洁起见,不考虑时间分区)


1.3 方案二目录结构(简洁起见,不考虑时间分区)


2.开发者视角

2.1 整体架构


2.2 方案一架构 


2.3 方案二架构


2.4 方案一写入流程

2.4.1 写入root.sg1.d1.s1

2.4.2 写入root.sg1.d2.s1

2.4.3 写入root.sg1.d3.s1

2.4.4 写入root.sg2.d1.s1

2.4.5 写入root.sg2.d2.s1


2.5 方案二写入流程

2.5.1 写入root.sg1.d1.s1

2.5.2 写入root.sg1.d2.s1

2.5.3 写入root.sg1.d3.s1

2.5.4 写入root.sg2.d1.s1

2.5.5 写入root.sg2.d2.s1


  • No labels