rebalance

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

rebalance provides the implementation of the rebalancer, which continually checks the data stored on a host, knows where data should live, and moves it to the appropriate servers.

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