-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose more pebble open options, add compact/debt and compact/inprogr…
…ess metrics
- Loading branch information
Showing
5 changed files
with
104 additions
and
25 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,27 @@ | ||
package pebble | ||
|
||
import "time" | ||
|
||
type ExtraOptions struct { | ||
BytesPerSync int | ||
L0CompactionFileThreshold int | ||
L0CompactionThreshold int | ||
L0StopWritesThreshold int | ||
LBaseMaxBytes int64 | ||
MaxConcurrentCompactions func() int | ||
DisableAutomaticCompactions bool | ||
WALBytesPerSync int | ||
WALDir string | ||
WALMinSyncInterval func() time.Duration | ||
TargetByteDeletionRate int | ||
Experimental ExtraOptionsExperimental | ||
} | ||
|
||
type ExtraOptionsExperimental struct { | ||
L0CompactionConcurrency int | ||
CompactionDebtConcurrency uint64 | ||
ReadCompactionRate int64 | ||
ReadSamplingMultiplier int64 | ||
MaxWriterConcurrency int | ||
ForceWriterParallelism bool | ||
} |
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