topology

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const LinstorNodeKey = "linbit.com/hostname"

LinstorNodeKey refers to a node running the LINSTOR csi node service and the linstor Satellite and is therefore capabile of hosting LINSTOR volumes.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlacementPolicy

type PlacementPolicy int

PlacementPolicy determines which scheduler will create volumes and report their accessible topology.

const (
	// Unknown placement policy
	Unknown PlacementPolicy = iota
	// Manual place volumes with a list of nodes and clients.
	Manual
	// AutoPlace volumes using linstor's built in autoplace feature.
	AutoPlace
	// FollowTopology place volumes local to topology preferences, in order
	// of those preferences.
	FollowTopology
	// BalancedTopology places remote volumes in the same zone(Rack)
	// and pick Node, StoragePool, PrefNic based on utilization
	Balanced
)

func PlacementPolicyString

func PlacementPolicyString(s string) (PlacementPolicy, error)

PlacementPolicyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PlacementPolicyValues

func PlacementPolicyValues() []PlacementPolicy

PlacementPolicyValues returns all values of the enum

func (PlacementPolicy) IsAPlacementPolicy

func (i PlacementPolicy) IsAPlacementPolicy() bool

IsAPlacementPolicy returns "true" if the value is listed in the enum definition. "false" otherwise

func (PlacementPolicy) String

func (i PlacementPolicy) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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