distributor

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTenantServiceDatasetKey

func NewTenantServiceDatasetKey(tenant string, labels []*v1.LabelPair) placement.Key

NewTenantServiceDatasetKey build a distribution key, where

Types

type Distributor

type Distributor struct {
	RingUpdateInterval time.Duration
	FallbackLocations  uint32
	// contains filtered or unexported fields
}

func NewDistributor

func NewDistributor(placementStrategy placement.Strategy) *Distributor

func (*Distributor) Distribute

func (d *Distributor) Distribute(k placement.Key, r ring.ReadRing) (*placement.Placement, error)

func (*Distributor) Update

func (d *Distributor) Update(r ring.ReadRing) error

Update forcibly updates the distribution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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