Shard-cluster definitions for distributing data

A cluster of shard servers uses a definition to distribute data across shard servers.

You must create a shard-cluster definition to distribute data across the shard servers. The definition contains the following information:
  • The HCL OneDB™ Enterprise Replication group name of each participating shard server.
  • The name of the database and collection or table that is distributed across the shard servers of a shard cluster.
  • The field or column that is used as a shard key for distributing data. Shard key values determine which shard server a document or row is stored on.
  • The sharding method by which documents or rows are distributed to specific shard servers. The sharding method is either a hash-based or expression-based.