apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

feat: add shardID allocator #56

Closed ZuLiangWang closed 2 years ago

ZuLiangWang commented 2 years ago

Which issue does this PR close?

Closes #

Rationale for this change

To manage the scheduling of shards, we need to generate and manage the ID of shards just like Table.

What changes are included in this PR?

Add ShardID allocator for every cluster instance

Are there any user-facing changes?

None

How does this change test

Reuse the existing allocator implementation, and unit tests already exist.