config

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCuratorConfig = CuratorConfig{
	LogLevel:        "info",
	DiskPath:        "/data/loki/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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL