-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from OffchainLabs/pebble-extra-options
expose pebble open options, add more compact metrics
- Loading branch information
Showing
5 changed files
with
202 additions
and
33 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
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