Skip to content

Commit 75699bc

Browse files
committed
feat: add support package optimization
Implements issue #343 - support package size optimization. Features: - Truncate log files to last N lines (default 1000) - Remove nested gzip files - Opt-in via --optimize flag - Configurable log line limit with --log-lines - Verbose mode shows size reduction stats - 70-90% size reduction typical Usage: redisctl enterprise support-package cluster --optimize redisctl enterprise support-package cluster --optimize --log-lines 500 -v redisctl enterprise support-package database 1 --optimize Related to #342 (upload capability)
1 parent d00107e commit 75699bc

File tree

5 files changed

+528
-3
lines changed

5 files changed

+528
-3
lines changed

Cargo.lock

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ anyhow = "1.0"
4848
thiserror = "2.0"
4949
tokio = { version = "1.40", features = ["full"] }
5050
serde = { version = "1.0", features = ["derive"] }
51+
tar = "0.4"
52+
flate2 = "1.0"
5153
serde_json = "1.0"
5254
serde_urlencoded = "0.7"
5355
clap = { version = "4.5", features = ["derive", "env", "string"] }

crates/redisctl/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ tabled = { version = "0.17", features = ["ansi"] }
3939
terminal_size = "0.4"
4040
indicatif = "0.17"
4141
unicode-segmentation = "1.12"
42+
tar = { workspace = true }
43+
flate2 = { workspace = true }
4244

4345
# Shared utility dependencies
4446
thiserror = { workspace = true }

0 commit comments

Comments
 (0)