Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for HostObserver extension.
Types ¶
type CompactionConfig ¶ added in v0.45.0
type CompactionConfig struct { // OnStart specifies that compaction is attempted each time on start OnStart bool `mapstructure:"on_start,omitempty"` // OnRebound specifies that compaction is attempted online, when rebound conditions are met. // This typically happens when storage usage has increased, which caused increase in space allocation // and afterwards it had most items removed. We want to run the compaction online only when there are // not too many elements still being stored (which is an indication that "heavy usage" period is over) // so compaction should be relatively fast and at the same time there is relatively large volume of space // that might be reclaimed. OnRebound bool `mapstructure:"on_rebound,omitempty"` // Directory specifies where the temporary files for compaction will be stored Directory string `mapstructure:"directory,omitempty"` // ReboundNeededThresholdMiB specifies the minimum total allocated size (both used and empty) // to mark the need for online compaction ReboundNeededThresholdMiB int64 `mapstructure:"rebound_needed_threshold_mib"` // ReboundTriggerThresholdMiB is used when compaction is marked as needed. When allocated data size drops // below the specified value, the compactions starts and the flag marking need for compaction is cleared ReboundTriggerThresholdMiB int64 `mapstructure:"rebound_trigger_threshold_mib"` // MaxTransactionSize specifies the maximum number of items that might be present in single compaction iteration MaxTransactionSize int64 `mapstructure:"max_transaction_size,omitempty"` // CheckInterval specifies frequency of compaction check CheckInterval time.Duration `mapstructure:"check_interval,omitempty"` }
CompactionConfig defines configuration for optional file storage compaction.
Click to show internal directories.
Click to hide internal directories.