CockroachDB store viewer

Drop the files of a CockroachDB store directory to see inside: the LSM tree from the MANIFEST, each Pebble table block by block with every key decoded as CockroachDB prints it, blob files, the write-ahead log, and the SQL tables rebuilt from the raw keys and values.

Drop a store directory's files here: *.sst, *.blob, MANIFEST-*, *.log, the marker.* files

Read in your browser, a page at a time. Nothing is uploaded.

What to drop

A node's store is the directory given to --store (cockroach-data by default). Copy it while the node is stopped, or the files may change under you, and drop all of it: the viewer needs the MANIFEST to place tables on levels and to find blob files, and every table, blob file and log to rebuild SQL rows. One .sst file alone opens too. The sample is 1.2 MB to download.

What it reads

Pebble's columnar table formats (v5 to v8), with every block's checksum checked; MinLZ, Snappy and Zstandard compression; CockroachDB's key schema; value blocks and blob files; range deletions and range keys; the MANIFEST and the WAL. CockroachDB keys print as CockroachDB prints them, and values decode by type: integers, decimals, strings, timestamps, dates, UUIDs, arrays, JSONB and more. Tables in older, row-oriented Pebble formats are not decoded; the RocksDB viewer reads those.

The parsers are written from the Pebble and CockroachDB source, and tested against a store CockroachDB v26.4.1 wrote: every entry must match what cockroach debug pebble prints, every key must print the same way, and every row of the sample tables must match the SQL shell's output. They do not use CockroachDB or Pebble code.