Closed yuzhichang closed 4 years ago
Custom sharding policy (by config shardingKey and shardingPolicy). By default, shard with (msg.Offset/batchSize)%ckNum. shardingKey is a column name. shardingPolicy is stripe,<size> or hash. The hash function used internally is xxHash64.
shardingKey
shardingPolicy
(msg.Offset/batchSize)%ckNum
stripe,<size>
hash
Custom sharding policy (by config
shardingKey
andshardingPolicy
). By default, shard with(msg.Offset/batchSize)%ckNum
.shardingKey
is a column name.shardingPolicy
isstripe,<size>
orhash
. The hash function used internally is xxHash64.