This commit is contained in:
Alex Dadgar
2016-01-22 18:22:23 -08:00
parent de4204b121
commit 451c79dd78
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ func testNode() *Node {
"version": "0.1.0",
"driver.exec": "1",
},
UniqueAttributes: make(map[string]struct{}),
Resources: &Resources{
CPU: 4000,
MemoryMB: 8192,

View File

@@ -496,6 +496,9 @@ type Node struct {
// client. This is opaque to Nomad.
Meta map[string]string
// UniqueAttributes are attributes that uniquely identify a node.
UniqueAttributes map[string]struct{}
// NodeClass is an opaque identifier used to group nodes
// together for the purpose of determining scheduling pressure.
NodeClass string