compactionworker

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataSourceMetastore     = "metastore"
	MetadataSourceObjectStorage = "object-storage"
)

Sources of the compaction job source block metadata.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JobConcurrency       int            `yaml:"job_capacity" category:"advanced"`
	JobPollInterval      time.Duration  `yaml:"job_poll_interval" category:"advanced"`
	SmallObjectSize      int            `yaml:"small_object_size_bytes" category:"advanced"`
	TempDir              string         `yaml:"temp_dir" category:"advanced" doc:"default=/tmp"`
	RequestTimeout       time.Duration  `yaml:"request_timeout" category:"advanced"`
	CleanupMaxDuration   time.Duration  `yaml:"cleanup_max_duration" category:"advanced"`
	MetadataSource       string         `yaml:"metadata_source" category:"advanced"`
	MetadataFetchTimeout time.Duration  `yaml:"metadata_fetch_timeout" category:"advanced"`
	MetricsExporter      metrics.Config `yaml:"metrics_exporter" category:"advanced"`
}

func (*Config) RegisterFlags

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

func (*Config) Validate added in v2.3.0

func (cfg *Config) Validate() error

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