compactor

package
v0.0.0-...-900f3b1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package compactor implements automated policies for compacting etcd's mvcc storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compactable

type Compactable interface {
	Compact(ctx context.Context, r *pb.CompactionRequest) (*pb.CompactionResponse, error)
}

type Periodic

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

Periodic compacts the log by purging revisions older than the configured retention time. Compaction happens hourly.

func NewPeriodic

func NewPeriodic(h int, rg RevGetter, c Compactable) *Periodic

func (*Periodic) Pause

func (t *Periodic) Pause()

func (*Periodic) Resume

func (t *Periodic) Resume()

func (*Periodic) Run

func (t *Periodic) Run()

func (*Periodic) Stop

func (t *Periodic) Stop()

type RevGetter

type RevGetter interface {
	Rev() int64
}

Jump to

Keyboard shortcuts

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