compactionworker

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JobConcurrency     int            `yaml:"job_capacity"`
	JobPollInterval    time.Duration  `yaml:"job_poll_interval"`
	SmallObjectSize    int            `yaml:"small_object_size_bytes"`
	TempDir            string         `yaml:"temp_dir"`
	RequestTimeout     time.Duration  `yaml:"request_timeout"`
	CleanupMaxDuration time.Duration  `yaml:"cleanup_max_duration"`
	MetricsExporter    metrics.Config `yaml:"metrics_exporter"`
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func New

func New(
	logger log.Logger,
	config Config,
	client MetastoreClient,
	storage objstore.Bucket,
	reg prometheus.Registerer,
	ruler metrics.Ruler,
	exporter metrics.Exporter,
) (*Worker, error)

func (*Worker) Service

func (w *Worker) Service() services.Service

Jump to

Keyboard shortcuts

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