mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
node pools: implement support in scheduler (#17443)
Implement scheduler support for node pool: * When a scheduler is invoked, we get a set of the ready nodes in the DCs that are allowed for that job. Extend the filter to include the node pool. * Ensure that changes to a job's node pool are picked up as destructive allocation updates. * Add `NodesInPool` as a metric to all reporting done by the scheduler. * Add the node-in-pool the filter to the `Node.Register` RPC so that we don't generate spurious evals for nodes in the wrong pool.
This commit is contained in:
@@ -235,6 +235,7 @@ func TestMonitor_formatAllocMetric(t *testing.T) {
|
||||
Name: "display all possible scores",
|
||||
Metrics: &api.AllocationMetric{
|
||||
NodesEvaluated: 3,
|
||||
NodesInPool: 3,
|
||||
ScoreMetaData: []*api.NodeScoreMeta{
|
||||
{
|
||||
NodeID: "node-1",
|
||||
|
||||
Reference in New Issue
Block a user