compactor

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 24 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"`
}

func (*Config) RegisterFlags

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

type MetastoreClient added in v1.11.0

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,
) (*Worker, error)

func (*Worker) Service added in v1.11.0

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

Jump to

Keyboard shortcuts

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