Logo
Data Node

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 relationships between logic tables and actual tables, it 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:

db0
  ├── t_order0
  └── t_order1
db1
  ├── t_order0
  └── t_order1

The data node configurations will be as follows:

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:

db0
  ├── t_order0 
  └── t_order1 
db1
  ├── t_order2
  ├── t_order3
  └── t_order4

The data node configurations will be as follows:

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