package compactor

import "github.com/coreos/etcd/compactor"

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

Index

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
}

Source Files

compactor.go doc.go

Version
v3.2.19+incompatible
Published
Apr 24, 2018
Platform
js/wasm
Imports
7 packages
Last checked
8 minutes ago

Tools for package owners.