Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool: add more summaries to manifest summarize #3599

Merged
merged 1 commit into from May 15, 2024

Conversation

sumeerbhola
Copy link
Collaborator

These were motivated by some disagg storage experimentation. There are summaries for compacted in bytes and files. Also, a histogram of file lifetimes when the file gets deleted. The classification of what is a compaction is slightly improved, and there is some small cleanup (unused field).

On a real manifest, in verbose mode (for the lifetime histograms) the output looks like:
_______L0_______L1_______L2_______L3_______L4_______L5_______L6_____TOTAL
2024-05-01T12:00:00Z
Ingest+Flush Bytes 16GB . . . . . . 16GB
Ingest+Flush Bytes/s 4.5MB/s . . . . . . 4.5MB/s
Compact Out Bytes 16GB . 32GB 36GB 36GB 32GB . 151GB
Compact Out Bytes/s 4.5MB/s . 9.0MB/s 10MB/s 10MB/s 9.1MB/s . 43MB/s
Compact In Bytes/s . . 9.0MB/s 10MB/s 10MB/s 9.5MB/s 7.7MB/s 47MB/s
Compact In Files/s . . 2.8/s 2.1/s 1.2/s 0.6/s 0.2/s 6.8/s

Lifetime histograms
2024-05-01T12:00:00Z
L0: mean: 15s p25: 10s p50: 15s p75: 21s p90: 26s
L2: mean: 14s p25: 6s p50: 13s p75: 22s p90: 28s
L3: mean: 1m7s p25: 13s p50: 1m3s p75: 1m39s p90: 2m23s
L4: mean: 5m53s p25: 15s p50: 5m19s p75: 10m7s p90: 14m23s
L5: mean: 34m10s p25: 35s p50: 30m55s p75: 59m43s p90: 1h21m3s
L6: mean: 3h34m3s p25: 2h42m7s p50: 4h24m31s p75: 5h7m11s p90: 5h41m19s

These were motivated by some disagg storage experimentation. There
are summaries for compacted in bytes and files. Also, a histogram
of file lifetimes when the file gets deleted. The classification of
what is a compaction is slightly improved, and there is some small
cleanup (unused field).

On a real manifest, in verbose mode (for the lifetime histograms) the
output looks like:
                        _______L0_______L1_______L2_______L3_______L4_______L5_______L6_____TOTAL
2024-05-01T12:00:00Z
     Ingest+Flush Bytes       16GB        .        .        .        .        .        .     16GB
   Ingest+Flush Bytes/s    4.5MB/s        .        .        .        .        .        .  4.5MB/s
      Compact Out Bytes       16GB        .     32GB     36GB     36GB     32GB        .    151GB
    Compact Out Bytes/s    4.5MB/s        .  9.0MB/s   10MB/s   10MB/s  9.1MB/s        .   43MB/s
     Compact In Bytes/s          .        .  9.0MB/s   10MB/s   10MB/s  9.5MB/s  7.7MB/s   47MB/s
     Compact In Files/s          .        .    2.8/s    2.1/s    1.2/s    0.6/s    0.2/s    6.8/s
<snip>
Lifetime histograms
2024-05-01T12:00:00Z
  L0: mean: 15s p25: 10s p50: 15s p75: 21s p90: 26s
  L2: mean: 14s p25: 6s p50: 13s p75: 22s p90: 28s
  L3: mean: 1m7s p25: 13s p50: 1m3s p75: 1m39s p90: 2m23s
  L4: mean: 5m53s p25: 15s p50: 5m19s p75: 10m7s p90: 14m23s
  L5: mean: 34m10s p25: 35s p50: 30m55s p75: 59m43s p90: 1h21m3s
  L6: mean: 3h34m3s p25: 2h42m7s p50: 4h24m31s p75: 5h7m11s p90: 5h41m19s
<snip>
@sumeerbhola sumeerbhola requested a review from a team as a code owner May 9, 2024 14:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm: Cool!

Reviewable status: 0 of 2 files reviewed, all discussions resolved

@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola sumeerbhola merged commit 864cb26 into cockroachdb:master May 15, 2024
11 checks passed
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.

None yet

3 participants