Skip to content

Commit

Permalink
raft-engine: reduce the threshold of compression and add related metr…
Browse files Browse the repository at this point in the history
…ics on it. (#16906)

ref #16907

This pr contains:
- Reduce the default compression threshold in RaftEngine to `4kb` as default if users do not manually set it.
- Add relevant metrics on the compression ratio of RaftEngine.write.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
  • Loading branch information
LykxSassinator committed May 9, 2024
1 parent 441a317 commit 6f5c642
Show file tree
Hide file tree
Showing 6 changed files with 662 additions and 341 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions metrics/grafana/tikv_details.dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6007,6 +6007,12 @@ def RaftEngine() -> RowPanel:
),
],
),
graph_panel_histogram_quantiles(
title="Write Compression Ratio",
description="The compression ratio per write",
yaxes=yaxes(left_format=UNITS.NONE_FORMAT),
metric="raft_engine_write_compression_ratio",
),
]
)
return layout.row_panel
Expand Down

0 comments on commit 6f5c642

Please sign in to comment.