Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶ added in v0.15.0
type Status struct { Keyspace string Shard string IsOpen bool // contains filtered or unexported fields }
Status published some status valus from the collector
type TableGC ¶
type TableGC struct {
// contains filtered or unexported fields
}
TableGC is the main entity in the table garbage collection mechanism. This service "garbage collects" tables: - it checks for magically-named tables (e.g. _vt_EVAC_f6338b2af8af11eaa210f875a4d24e90_20200920063522) - it analyzes a table's state from its name - it applies operations on the table (namely purge for PURGE tables) - when due time, it transitions a table (via RENAME TABLE) to the next state - finally, it issues a DROP TABLE The sequence of steps is controlled by the command line variable --table_gc_lifecycle
func NewTableGC ¶
NewTableGC creates a table collector
func (*TableGC) InitDBConfig ¶
InitDBConfig initializes keyspace and shard