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
Click to show internal directories.
Click to hide internal directories.