Documentation ¶
Overview ¶
Package zombiedeletion contains the functions needed to run zombie objects deletion chore.
The zombiedeletion chore will periodically query metabase for zombie objects and delete them with their segments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error defines the zombiedeletion chore errors class. Error = errs.Class("zombie deletion chore") )
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore implements the zombie objects cleanup chore.
architecture: Chore
func (*Chore) TestingSetNow ¶
TestingSetNow allows tests to have the server act as if the current time is whatever they want.
type Config ¶
type Config struct { Interval time.Duration `help:"the time between each attempt to go through the db and clean up zombie objects" releaseDefault:"12h" devDefault:"10s"` Enabled bool `help:"set if zombie object cleanup is enabled or not" default:"true"` ListLimit int `help:"how many objects to query in a batch" default:"100"` InactiveFor time.Duration `help:"after what time object will be deleted if there where no new upload activity" default:"24h"` }
Config contains configurable values for zombie object cleanup.
Click to show internal directories.
Click to hide internal directories.