Ordering nodes at queue level

Hi everyone,

I am trying to configure a new server having different types of nodes. For the discussion, let’s say that we have nodesA and nodesB.

I would like to create various queues with respect of job types. Let’s say queue1 and queue2.

I would like to set node’s priorities at the level of those queues:

  • I would like that queue1 would preferably uses nodesA but it could use nodesB if nodesA are overloaded;
  • and opposite situation for queue2 which would preferably use nodesB before considering using nodesA.

In the documentation, I found a way to get queue1 uses only nodesA, but I didn’t find a way to get kind of ranking between nodes at a queue level. Is there a way to do that?

Thank you very much in advance.

There is no configuration to do that, the node_sort_key would help but it applies for all the nodes and not to the specific queues.

If preferably is not mandatory or a must, then node_sort_key would do the trick