resharder

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 19 Imported by: 0

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.

func New

func New() Resharder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL