# Ordering nodes at queue level

**URL:** <https://community.openpbs.org/t/ordering-nodes-at-queue-level/3056>\
**Category:** Users/Site Administrators\
**Created:** [March 30, 2022, 3:12pm UTC](https://community.openpbs.org/t/ordering-nodes-at-queue-level/3056 "2022-03-30T15:12:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NomisTuo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/nomistuo/32/516_2.png) [@NomisTuo](https://community.openpbs.org/u/NomisTuo)\
**Post date:** [March 30, 2022, 3:12pm UTC](https://community.openpbs.org/t/ordering-nodes-at-queue-level/3056/1 "2022-03-30T15:12:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [March 31, 2022, 7:47am UTC](https://community.openpbs.org/t/ordering-nodes-at-queue-level/3056/2 "2022-03-31T07:47:10Z")

</div>

> [@NomisTuo](#):
>
> 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?

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.

> [@NomisTuo](#):
>
> queue1 would preferably uses nodesA

If **preferably** is not mandatory or a must, then node\_sort\_key would do the trick
