Function nodesNeeded
-
nodesNeeded(
demand: Record<string, number>,
limits: NodeLimits,
): { binding: string | null; nodes: number }Parameters
- demand: Record<string, number>
- limits: NodeLimits
Returns { binding: string | null; nodes: number }
-
binding: string | null
resource with the largest need, first by name on a tie; null when none needs a node
-
nodes: number
nodes needed: peak need plus spares, not below the floor or the regional minimum
nodes one interval's demand needs, and the resource with the largest need