Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "node.repairer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// RepairIntervalMinutes is the period of the repair cycle, default 60.
RepairIntervalMinutes int `yaml:"repairIntervalMinutes"`
}
type Repairer ¶
type Repairer interface {
app.ComponentRunnable
}
Repairer periodically self-heals spaces whose index status is Error (failed archive, corrupted db, missing data) while this node is responsible for them. It first tries to repair in place (the error may have been transient); a genuinely broken db is quarantined under <root>/.quarantine (data preserved for the operator) and a valid copy is pulled from another responsible node with the regular coldsync — the same mechanic anti-entropy uses for missing spaces, so it works on every network, shared bucket or not.
Click to show internal directories.
Click to hide internal directories.