Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function nodesNeeded

    • nodes one interval's demand needs, and the resource with the largest need

      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