Erasure Coding, Storage Engines & Self-Healing Reference
Authoritative command reference for am ec (Cauchy Reed-Solomon SIMD Math), am kdouja (LSM State Sync), am abodi (SMART Telemetry), am repair (Scrubbing), and am transcode.
This reference details the low-level mathematical and storage engine commands in am, enabling operators to benchmark Galois Field arithmetic, verify LSM write-ahead logs, query NVMe thermal wear, and execute background scrubbing.
1. am ec — Ahmodi Cauchy Reed-Solomon Codec & Benchmarks
1.1 SIMD Vectorization Benchmark (am ec bench)
Measures local CPU SIMD Galois Field $\text{GF}(2^8)$ matrix multiplication throughput across AVX2, AVX-512, or ARM NEON vector units:
# Benchmark 8+3 Cauchy RS layout with 128 MB buffer over 50 iterations
am ec bench --size-mb 128 --policy 8+3 --iterations 50
1.2 Direct Erasure Coded File Ingestion (am ec upload & download)
# Encode, encrypt (AES-256-GCM), and stream file across racks with 8+3 parity
am ec upload /data/large-dataset.tar.gz \
--policy 8+3 \
--domain Rack \
--key-file ~/.rokka/master.key \
-o manifest.json
# Reconstruct file from distributed shards using SIMD Galois math & hedged reads
am ec download manifest.json /tmp/restored-dataset.tar.gz --key-file ~/.rokka/master.key
2. am kdouja — LSM Storage Engine Internals & State Sync
Inspects and forces reconciliation across the in-process Kdouja log-structured merge-tree write-ahead log (WAL) and SSTable manifests:
# Query active replication health and consistency status across nodes
am kdouja sync-status
# Force metadata reconciliation and stream missing SSTable chunk manifests
am kdouja reconcile
3. am abodi — Predictive Diagnostics & SMART Analytics
Interacts directly with the Abodi diagnostic plane running on Port 7776 / 57776:
# Check connectivity and reachability of the Abodi service
am abodi status
# Display live exponential moving average (EMA) latency scores & hedged read penalties
am abodi scores --sort-by latency
# Inspect NVMe device endurance, wear percentage, temperature, and RUL failure forecast
am abodi smart storage-01 --device nvme0n1
4. am repair — Self-Healing & Cryptographic Scrubbing
Monitors autonomous shard re-silvering and triggers deep cryptographic disk sector validation:
# Monitor active chunk reconstruction workers and queue backlog
am repair status --watch 2s
# Initiate deep cryptographic scrub on storage-03 (forces disk cache bypass)
am repair scrub storage-03 --deep
# Dynamically throttle repair bandwidth (e.g. 25 MB/s during peak hours)
am repair throttle 25
5. am transcode — Live Storage Policy Migration
Executes live, background transcoding of datasets between redundancy policies (e.g. converting legacy 3x replicated objects to Ahmodi 8+3 Cauchy RS):
# Launch background transcoding job migrating to 8+3 layout throttled at 50 MB/s
am transcode start --target-policy 8+3 --rate 50
# Inspect active transcoding progress and reclaimed storage capacity
am transcode status
# Temporarily pause background transcode during high user traffic
am transcode pause