Skip to main content

Module pack_shard

Module pack_shard 

Source
Expand description

mkit pack-shard <hash> — encode an existing pack into Reed-Solomon shards plus a manifest.

This is the producer side of SPEC-PACK-SHARDS. Given a pack object hash, it reads the pack bytes from the local store, gates on the SPEC §6 size threshold (1 MiB), runs the encoder, and writes:

  <out>/packs/<hex>/shards.manifest    (manifest, MKSH/v0 bytes)
  <out>/packs/<hex>/shards/<index>     (one file per shard)

Operators publish those files to whichever HTTP / S3 location their clients hit. Shard-aware clients (mkit-transport-http, mkit-transport-s3 with --features pack-shards) discover them via the predictable URL / key paths.

Compiled only when the CLI is built with --features pack-shards (default off — the commonware dep stack is large).

Functions§

run