ShardMap
ShardMap is the shard routing and writer ownership of a Metrics, Logs or Traces database. The operator and the database's writers maintain it, so it is not meant to be edited.
- API version
- telemetry.plural.sh/v1alpha1
- Kind
- ShardMap
- Scope
- Namespaced
- Short names
- sm
ShardMap
apiVersionstringtelemetry.plural.sh/v1alpha1kindstringShardMapmetadataObjectMetaStandard object metadata. See the Kubernetes API reference for its fields.
specShardMapSpec
ShardMapSpec
Used by ShardMap
ShardMapSpec is the authoritative routing and writer-ownership snapshot. The elected Rust shard coordinator writes it with resourceVersion-based compare-and-swap updates; all writer and reader replicas consume it by watch.
generationintegerMinimum: 1shard_countintegerShardCount is the number of physical SlateDB storage shards, equal to the latest epoch's shard count. Desired count comes from writer StatefulSet replicas; it only grows because shards are never merged.
Minimum: 1epochsRoutingEpoch arrayEpochs are ordered by EffectiveFromNs with non-decreasing shard counts. Scale-up appends an epoch at a future aligned cutover.
MinItems: 1assignmentsShardAssignment array
RoutingEpoch
Used by ShardMapSpec
RoutingEpoch is the hash routing for records timestamped at or after EffectiveFromNs, until the next epoch begins. The first epoch starts at the minimum int64 so every timestamp resolves to exactly one epoch.
effective_from_nsintegerroutingHashRangeMap
ShardAssignment
Used by ShardMapSpec
ownerShardOwnerrangeShardRangestatestringEnum: [pending active draining released]
HashRangeMap
Used by RoutingEpoch
generationintegerMinimum: 1assignmentsHashRangeAssignment array
ShardOwner
Used by ShardAssignment
idstringordinalintegerMinimum: 0
ShardRange
Used by ShardAssignment
startintegerMinimum: 0endintegerMinimum: 1
HashRangeAssignment
Used by HashRangeMap
shardintegerMinimum: 0rangeHashRange
HashRange
Used by HashRangeAssignment
startstringPattern:^[0-9a-f]{32}$endstringPattern:^[0-9a-f]{32}$