Data Node

As the atomic unit of sharding, it consists of data source name and actual table name, e.g. ds_0.t_order_0.

Mapping relationship between logic tables and actual tables and can be divided into two kinds: uniform topology and user-defined topology.

Uniform topology

It means that tables are evenly distributed in each data source, for example:

  1. db0
  2. ├── t_order0
  3. └── t_order1
  4. db1
  5. ├── t_order0
  6. └── t_order1

The data node configurations will be as follows:

  1. db0.t_order0, db0.t_order1, db1.t_order0, db1.t_order1

User-defined topology

It means that tables are distributed with certain rules, for example:

  1. db0
  2. ├── t_order0
  3. └── t_order1
  4. db1
  5. ├── t_order2
  6. ├── t_order3
  7. └── t_order4

The data node configurations will be as follows:

  1. db0.t_order0, db0.t_order1, db1.t_order2, db1.t_order3, db1.t_order4