Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "node.resharder"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// DrainIntervalMinutes is the period of the background drain cycle
// (it also runs immediately on a network configuration change).
DrainIntervalMinutes int `yaml:"drainIntervalMinutes"`
}
type Resharder ¶
type Resharder interface {
app.ComponentRunnable
}
Resharder implements the draining side of resharding: when the network configuration changes and this node is no longer responsible for a space, the resharder hands the space off to the current owners through the shared archive store (AdoptArchive) and deletes the local copy only after at least two current owners durably hold the same heads.
The machinery is gated on the archive store being shared (s3Store.shared); networks without a shared bucket keep today's behavior.
Click to show internal directories.
Click to hide internal directories.