Skip to content

Conversation

@visheshbardia
Copy link
Contributor

@visheshbardia visheshbardia commented Jan 29, 2026

This change adds native ZSTD encoding support to the tsdump command,
eliminating the need for manual compression/decompression of tsdump files.

  • Added --encoding=zstd flag for raw format to generate ZSTD-compressed files.
  • Enabled tsdump upload to automatically detect and decompress ZSTD files.

Fixes #151727
Epic: CRDB-56325
Part-of: CRDB-53445
Release note (cli change): The cockroach debug tsdump command now
supports ZSTD encoding via --format=raw --encoding=zstd. This generates
compressed tsdump files that are ~85% smaller than raw format. The
tsdump upload command automatically detects and decompresses ZSTD
files, allowing direct upload without manual decompression.

@visheshbardia visheshbardia requested review from a team as code owners January 29, 2026 07:35
@visheshbardia visheshbardia requested review from aa-joshi and alyshanjahani-crl and removed request for a team January 29, 2026 07:35
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@Abhinav1299 Abhinav1299 self-requested a review January 29, 2026 09:22
@visheshbardia visheshbardia force-pushed the tsdump-compression-zstd branch from fd48ed3 to 37b2699 Compare January 29, 2026 11:40
Copy link
Contributor

@arjunmahishi arjunmahishi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might also have to make changes on the server side? to handle cases where tsdumps are staged on roachprod? @Abhinav1299 would know more

@visheshbardia visheshbardia force-pushed the tsdump-compression-zstd branch from 37b2699 to 7dc5d42 Compare January 30, 2026 08:33
@visheshbardia visheshbardia requested review from a team as code owners January 30, 2026 08:33
@visheshbardia visheshbardia changed the title cli: add ZSTD compression support for tsdump generation and upload cli: add ZSTD encoding support for tsdump generation and upload Jan 30, 2026
This change adds ZSTD encoding support to the tsdump command,
eliminating the need for manual compression/decompression of tsdump files.

- Added `--encoding=zstd` flag for raw format to generate ZSTD-compressed files.
- Enabled `tsdump upload` to automatically detect and decompress ZSTD files.

Fixes cockroachdb#151727
Epic: CRDB-56325
Part-of: CRDB-53445
Release note (cli change): The `cockroach debug tsdump` command now
supports ZSTD encoding via `--format=raw --encoding=zstd`. This generates
compressed tsdump files that are ~85% smaller than raw format. The
`tsdump upload` command automatically detects and decompresses ZSTD
files, allowing direct upload without manual decompression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkg/cli (tsdump): compression during tsdump generation

3 participants