mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Track top k nodes by norm score rather than top k nodes per scorer
This commit is contained in:
@@ -112,14 +112,15 @@ type AllocationMetric struct {
|
||||
Scores map[string]float64
|
||||
AllocationTime time.Duration
|
||||
CoalescedFailures int
|
||||
ScoreMetaData map[string][]*NodeScoreMeta
|
||||
ScoreMetaData []*NodeScoreMeta
|
||||
}
|
||||
|
||||
// NodeScoreMeta is used to serialize node scoring metadata
|
||||
// displayed in the CLI during verbose mode
|
||||
type NodeScoreMeta struct {
|
||||
NodeID string
|
||||
Score float64
|
||||
NodeID string
|
||||
Scores map[string]float64
|
||||
NormScore float64
|
||||
}
|
||||
|
||||
// AllocationListStub is used to return a subset of an allocation
|
||||
|
||||
Reference in New Issue
Block a user