Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 values 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
func (*TableGC) RequestChecks ¶ added in v0.19.0
func (collector *TableGC) RequestChecks()
RequestChecks requests that the GC will do a table check right away, as well as in a few seconds. Calling this function is useful to modules that are performing operations that affect GC tables. Those modules _know_ that changes have been made, and now have a way to tell TableGC: "please take a look asap rather than in the next hour".