Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶ added in v1.1.0
Bucket stores the number of segments (and some exemplars) for each piece count.
type Histogram ¶ added in v1.1.0
type Histogram struct {
// pieceCount -> {number of segments, exemplars}
Buckets []*Bucket
// pieceCount * -1 -> {number of segments, exemplars}
NegativeBuckets []*Bucket
}
func (*Histogram) AddPieceCount ¶ added in v1.1.0
AddPieceCount adds a piece count to the histogram.
type List ¶
type NamedNodeAttribute ¶ added in v1.1.0
type NamedNodeAttribute struct {
Name string
Attribute nodeselection.NodeAttribute
}
type Nodes ¶
type Placement ¶
type Placement struct {
Select Select `cmd:"" help:"select given number of nodes from DB, matching the placement rule"`
SelectPool SelectPool `cmd:"" help:"select given number of nodes from DB, printing simplified pool stat"`
Nodes Nodes `cmd:"" help:"load the upload cache and print out statistics"`
List List `cmd:"" help:"list nodes available for selection"`
Tags Tags `cmd:"" help:"report current tag distribution"`
QueryTags QueryTags `cmd:"" help:"generate query for tags"`
Simulate Simulate `cmd:"" help:"selection simulation with histogram"`
Score Score `cmd:"" help:"print out node scores"`
}
type Score ¶ added in v1.3.0
type Score struct {
Placement storj.PlacementConstraint
Filter string `default:"tag(\"1111111111111111111111111111111VyS547o\",\"soc2\",\"true\")"`
Score string `default:"node_value(\"free_disk\")"`
}
type Select ¶
type SelectPool ¶ added in v1.3.0
type SelectPool struct {
PlacementConfig string
Placement storj.PlacementConstraint
Selector string
}
func (*SelectPool) Run ¶ added in v1.3.0
func (n *SelectPool) Run() (err error)
type Simulate ¶
Click to show internal directories.
Click to hide internal directories.