placement

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	PlacementConfig string
	Placement       int
}

func (List) Run

func (s List) Run() error

type Nodes

type Nodes struct {
	Selector         string
	Filter           string
	OnlineWindow     time.Duration `default:"4h"`
	MinimumDiskSpace memory.Size   `default:"500GB"`
}

func (Nodes) Run

func (s Nodes) Run() error

type Placement

type Placement struct {
	Select   Select   `cmd:"" help:"select given number of nodes from DB, matching the placement rule"`
	Nodes    Nodes    `cmd:"" help:"load the upload cache and print out statistics"`
	List     List     `cmd:"" help:"list nodes available for selection"`
	Simulate Simulate `cmd:"" help:"selection simulation with histogram"`
}

type Select

type Select struct {
	PlacementConfig string
	Placement       int
	NodeNo          int    `default:"110"`
	Selector        string `default:"wallet"`
	Number          int    `default:"1"`
}

func (Select) Run

func (s Select) Run() error

type Simulate

type Simulate struct {
	Selector string
	Filter   string
	NodeNo   int `default:"110"`
	Number   int `default:"1"`
}

func (Simulate) Run

func (s Simulate) Run() error

Jump to

Keyboard shortcuts

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