rebalance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckAndSender

type CheckAndSender interface {
	Check(ctx context.Context, peer string, refs []torus.BlockRef) ([]bool, error)
	PutBlock(ctx context.Context, peer string, ref torus.BlockRef, data []byte) error
}

type Rebalancer

type Rebalancer interface {
	Tick() (int, error)
	VersionStart() int
	PrepVolume(*models.Volume) error
	Reset() error
}

func NewRebalancer

func NewRebalancer(r Ringer, bs torus.BlockStore, cs CheckAndSender, gc gc.GC) Rebalancer

type Ringer

type Ringer interface {
	Ring() torus.Ring
	UUID() string
}

Jump to

Keyboard shortcuts

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