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"`
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"`
}
Click to show internal directories.
Click to hide internal directories.