Skip to content

Commit 6feecba

Browse files
committed
pebble: add blob rewrite compaction count to metrics string
1 parent 42327e9 commit 6feecba

File tree

7 files changed

+59
-58
lines changed

7 files changed

+59
-58
lines changed

metrics.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,8 @@ type pair[k, v any] struct {
864864
// 6 | 0.00 2.70 2.10 | 713 706B | 704B 704B 704B | 707B 717B | 1.4K 1.4KB 1.4KB
865865
// total | - - - | 2.9K 2.8KB | 2.8KB 2.8KB 2.8KB | 2.8KB 2.9KB | 5.7K 8.4KB 5.7KB
866866
// -----------------------------------------------------------------------------------------------
867-
// kind | default delete elision move read tomb rewrite copy multi
868-
// count | 27 28 29 30 31 16 32 33 34
867+
// kind | default delete elision move read tomb rewrite copy multi blob
868+
// count | 27 28 29 30 31 16 32 33 34 0
869869
// -----------------------------------------------------------------------------------------------
870870
// COMMIT PIPELINE
871871
// wals | memtables | ingestions
@@ -967,6 +967,7 @@ func (m *Metrics) String() string {
967967
{k: "rewrite", v: m.Compact.RewriteCount},
968968
{k: "copy", v: m.Compact.CopyCount},
969969
{k: "multi", v: m.Compact.MultiLevelCount},
970+
{k: "blob", v: m.Compact.BlobFileRewriteCount},
970971
}
971972
cur = renderTableWithDivider(cur, func(cur ascii.Cursor) ascii.Cursor {
972973
return compactionKindTable.Render(cur, table.RenderOptions{Orientation: table.Horizontally}, slices.Values(compactionKindContents))

testdata/compaction/l0_to_lbase_compaction

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
5454
5 | 0 0 0 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
5555
total | 0 0.09 0.09 | 3 6 MiB | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
5656
--------------------------------------------------------------------------------------------------
57-
kind | default delete elision move read tomb rewrite copy multi
58-
count | 0 0 0 3 0 0 0 0 0
57+
kind | default delete elision move read tomb rewrite copy multi blob
58+
count | 0 0 0 3 0 0 0 0 0 0
5959
--------------------------------------------------------------------------------------------------
6060
COMMIT PIPELINE
6161
wals | memtables | ingestions

testdata/compaction/value_separation

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
142142
5 | 0 0 0 | 1 848 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
143143
total | 0 0.00 0.00 | 0 0 B | 0 B 0 B 0 B | 372 B 84 B | 1 899 B 112 B
144144
--------------------------------------------------------------------------------------------------
145-
kind | default delete elision move read tomb rewrite copy multi
146-
count | 1 0 0 5 0 0 0 0 0
145+
kind | default delete elision move read tomb rewrite copy multi blob
146+
count | 1 0 0 5 0 0 0 0 0 0
147147
--------------------------------------------------------------------------------------------------
148148
COMMIT PIPELINE
149149
wals | memtables | ingestions
@@ -410,8 +410,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
410410
5 | 0 0 0 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
411411
total | 0 0.00 0.00 | 0 0 B | 0 B 0 B 0 B | 310 B 0 B | 1 900 B 0 B
412412
--------------------------------------------------------------------------------------------------
413-
kind | default delete elision move read tomb rewrite copy multi
414-
count | 1 0 0 0 0 0 0 0 0
413+
kind | default delete elision move read tomb rewrite copy multi blob
414+
count | 1 0 0 0 0 0 0 0 0 1
415415
--------------------------------------------------------------------------------------------------
416416
COMMIT PIPELINE
417417
wals | memtables | ingestions

testdata/event_listener

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
259259
5 | 0 0 0 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
260260
total | 0 0.00 0.00 | 0 0 B | 0 B 0 B 0 B | 218 B 0 B | 1 755 B 0 B
261261
--------------------------------------------------------------------------------------------------
262-
kind | default delete elision move read tomb rewrite copy multi
263-
count | 1 0 0 0 0 0 0 0 0
262+
kind | default delete elision move read tomb rewrite copy multi blob
263+
count | 1 0 0 0 0 0 0 0 0 0
264264
--------------------------------------------------------------------------------------------------
265265
COMMIT PIPELINE
266266
wals | memtables | ingestions
@@ -392,8 +392,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
392392
5 | 0 0 0 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
393393
total | 0 0.00 0.00 | 0 0 B | 0 B 0 B 0 B | 218 B 0 B | 1 755 B 0 B
394394
--------------------------------------------------------------------------------------------------
395-
kind | default delete elision move read tomb rewrite copy multi
396-
count | 1 0 0 0 0 0 0 0 0
395+
kind | default delete elision move read tomb rewrite copy multi blob
396+
count | 1 0 0 0 0 0 0 0 0 0
397397
--------------------------------------------------------------------------------------------------
398398
COMMIT PIPELINE
399399
wals | memtables | ingestions

testdata/ingest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ level | score ff cff | tables size | top in read | tables blob | ta
5353
5 | 0 0 0 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
5454
total | 0 0.00 0.00 | 0 0 B | 0 B 0 B 0 B | 0 B 0 B | 0 0 B 0 B
5555
--------------------------------------------------------------------------------------------------
56-
kind | default delete elision move read tomb rewrite copy multi
57-
count | 0 0 0 0 0 0 0 0 0
56+
kind | default delete elision move read tomb rewrite copy multi blob
57+
count | 0 0 0 0 0 0 0 0 0 0
5858
--------------------------------------------------------------------------------------------------
5959
COMMIT PIPELINE
6060
wals | memtables | ingestions

0 commit comments

Comments
 (0)