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

  • apiVersionstring

    telemetry.plural.sh/v1alpha1

  • kindstring

    ShardMap

  • metadataObjectMeta

    Standard object metadata. See the Kubernetes API reference for its fields.

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.

  • generationinteger
    Minimum: 1
  • shard_countinteger

    ShardCount 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: 1
  • epochsRoutingEpoch array

    Epochs are ordered by EffectiveFromNs with non-decreasing shard counts. Scale-up appends an epoch at a future aligned cutover.

    MinItems: 1
  • assignmentsShardAssignment 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.

ShardAssignment

Used by ShardMapSpec

HashRangeMap

Used by RoutingEpoch

ShardOwner

Used by ShardAssignment

  • idstring
  • ordinalinteger
    Minimum: 0

ShardRange

Used by ShardAssignment

  • startinteger
    Minimum: 0
  • endinteger
    Minimum: 1

HashRangeAssignment

Used by HashRangeMap

HashRange

Used by HashRangeAssignment

  • startstring
    Pattern: ^[0-9a-f]{32}$
  • endstring
    Pattern: ^[0-9a-f]{32}$