-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose pebble open options, add more compact metrics #306
Squashed commit of the following: commit 07f6d7a8c149f8752aa8deef4598cfd184a37e94 Merge: 5b7b36a33 3ad148820 Author: Maciej Kulawik <10907694+magicxyyz@users.noreply.github.com> Date: Wed May 22 13:48:09 2024 +0200 Merge branch 'master' into pebble-extra-options commit 5b7b36a339ac28d708bca072dc5ec8189ceadac2 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Wed May 15 21:23:29 2024 +0200 remove unnecessary new lines commit bb30724a7b0ba4cd7b2f57a7a2c964087f97f068 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Wed May 15 21:21:01 2024 +0200 revert accidental comment change commit 6d23a7b7e6a99701adf1f69701ad367dec61c08c Merge: ac85a19d5 8512c124d Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Tue May 14 12:41:37 2024 +0200 Merge branch 'master' into pebble-extra-options commit ac85a19d5f56231076d5bab95504d666b084fa3b Merge: 1aaeef759 da4c975e3 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Sat May 4 00:26:27 2024 +0200 Merge branch 'master' into pebble-extra-options commit 1aaeef75987a3d4379cf7d876cdf1526d8701884 Merge: 3ecb5979a f94174378 Author: Maciej Kulawik <10907694+magicxyyz@users.noreply.github.com> Date: Thu May 2 18:04:36 2024 +0200 Merge branch 'master' into pebble-extra-options commit 3ecb5979ae489902c97d7146209c35071d167be6 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu May 2 17:38:21 2024 +0200 use GetOrRegister* for new metrics commit d1e94af41742958623210f7a0beae6a93f52e750 Merge: 9f39f194d 92b91d3fa Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu May 2 17:35:40 2024 +0200 Merge branch 'fix-pebble-metrics-registration' into pebble-extra-options commit 9f39f194d0a5b1ab1a47b1d4f83cd112f18dc4b3 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Fri Apr 26 22:50:02 2024 +0200 remove wal queue wait metric as it's not used by pebble yet commit a67aac7029db022dd0e078783809e2fedf20de53 Merge: 31dcc5497 19f822748 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu Apr 25 02:28:55 2024 +0200 Merge branch 'master' into pebble-extra-options commit 31dcc54970876a09e13820a4a7334f39af38157d Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu Apr 25 00:54:11 2024 +0200 revert metrics interval change commit 07d08fede3e5e8bbfbdb3797fad08d94f8c7699a Merge: 76745ffed 56f17c846 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu Apr 25 00:49:25 2024 +0200 Merge branch 'master' into pebble-extra-options commit 76745ffed5649d82beea1766aadeb4420aa62d48 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Thu Apr 25 00:47:05 2024 +0200 add pebble commit delay metrics commit 5e8d11c191c4b88e53ca53e69b7854efe89487fd Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Wed Apr 24 16:00:16 2024 +0200 fix default MemTableStopWritesThreshold commit 040c6f787056826112340ce0b4e5b8d43503f20a Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Wed Apr 24 15:37:40 2024 +0200 add mem-table-stop-writes-threshold pebble extra option commit 509f1114edd9d4e367cedfe4011ceed5766e3f07 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Wed Apr 24 15:11:05 2024 +0200 add block size and index block size pebble options commit d6428a6842a8c7d39821e74662fe3e0af34babd7 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Tue Apr 23 19:39:43 2024 +0200 add pebble layers extra options commit 9e62e652e211a47ad1c71a428b4a7ea6b96ae710 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Mon Apr 22 16:20:18 2024 +0200 fix lint err commit 935cb216402c9693faf86d75a7fbb045109ed4a3 Author: Maciej Kulawik <mkulawik@offchainlabs.com> Date: Sat Apr 20 02:24:38 2024 +0200 expose more pebble open options, add compact/debt and compact/inprogress metrics
- Loading branch information
1 parent
966c435
commit 46757f3
Showing
4 changed files
with
201 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package pebble | ||
|
||
import "time" | ||
|
||
type ExtraOptions struct { | ||
BytesPerSync int | ||
L0CompactionFileThreshold int | ||
L0CompactionThreshold int | ||
L0StopWritesThreshold int | ||
LBaseMaxBytes int64 | ||
MemTableStopWritesThreshold int | ||
MaxConcurrentCompactions func() int | ||
DisableAutomaticCompactions bool | ||
WALBytesPerSync int | ||
WALDir string | ||
WALMinSyncInterval func() time.Duration | ||
TargetByteDeletionRate int | ||
Experimental ExtraOptionsExperimental | ||
Levels []ExtraLevelOptions | ||
} | ||
|
||
type ExtraOptionsExperimental struct { | ||
L0CompactionConcurrency int | ||
CompactionDebtConcurrency uint64 | ||
ReadCompactionRate int64 | ||
ReadSamplingMultiplier int64 | ||
MaxWriterConcurrency int | ||
ForceWriterParallelism bool | ||
} | ||
|
||
type ExtraLevelOptions struct { | ||
BlockSize int | ||
IndexBlockSize int | ||
TargetFileSize int64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters