Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

每个存储组对应 集群总核数/副本数个 VSG 共识组,并且对应 M 个 MManager 共识组




代码修改


开发分支:new_cluster


模块图:模块结构:

...


DataNode :单机模块转化为分布式模块(server 模块 → DataNode 模块)

存储引擎的适配

去掉 StorageGroupManager,将 VirtualStorageGroupProsessor 交给 StorageEngine 管理

...

  • 单机:实现 StandAlongServiceProvider,将请求(PhysicalPlan)发送给 PlanExecutor(QueryExecutor)执行
  • 分布式:实现 ClusterServiceProvider,将请求(PhysicalPlan)发送给 Coordinator 执行,Coordinator 再与 ConfigNode 和其他 DataNode 交互进行读写。


新增包:Coordinator

...


ConfigNode

...

模块:新增


新增包:ConfigManager、PartitionTable

...


Consensor

...

模块:新增模块,被 server 模块和 ConfigNode 模块依赖




ConfigNode


功能:分区表管理者维护节点状态信息、数据分区表、元数据分区表,同时负责集群扩缩容和负载均衡。

...