Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCuratorConfig = CuratorConfig{ LogLevel: "info", DiskPath: "/data/vali/chunks", TriggerInterval: 60 * time.Minute, InodeConfig: Config{ MinFreePercentages: 10, TargetFreePercentages: 20, PageSizeForDeletionPercentages: 1, }, StorageConfig: Config{ MinFreePercentages: 10, TargetFreePercentages: 15, PageSizeForDeletionPercentages: 1, }, }
DefaultCuratorConfig holds default configurations for the curator
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MinFreePercentages int `yaml:"MinFreePercentages,omitempty"` TargetFreePercentages int `yaml:"TargetFreePercentages,omitempty"` PageSizeForDeletionPercentages int `yaml:"PageSizeForDeletionPercentages,omitempty"` }
Config holds the curator's config for a unit
type CuratorConfig ¶
type CuratorConfig struct { LogLevel string `yaml:"LogLevel,omitempty"` DiskPath string `yaml:"DiskPath,omitempty"` TriggerInterval time.Duration `yaml:"TriggerInterval,omitempty"` InodeConfig Config `yaml:"InodeConfig,omitempty"` StorageConfig Config `yaml:"StorageConfig,omitempty"` }
CuratorConfig holds the curator's configurations
func ParseConfigurations ¶
func ParseConfigurations(curatorConfigPath string) (*CuratorConfig, error)
ParseConfigurations reads configurations from a given yaml file path and makes CuratorConfig object from them
Click to show internal directories.
Click to hide internal directories.