# Ordering of Nodes

**URL:** <https://community.openpbs.org/t/ordering-of-nodes/3066>\
**Category:** Users/Site Administrators\
**Created:** [April 19, 2022, 9:37am UTC](https://community.openpbs.org/t/ordering-of-nodes/3066 "2022-04-19T09:37:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CGully](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@CGully](https://community.openpbs.org/u/CGully)\
**Post date:** [April 19, 2022, 9:37am UTC](https://community.openpbs.org/t/ordering-of-nodes/3066/1 "2022-04-19T09:37:07Z")

</div>

Hi,  
We are trying to work out a method so that nodes will be used in the order we’d like.  
To try and illustrate this we have 3 groups lets call them: group1, group2 and group3.  
group1 is made up of some nodes and also includes group3.  
group2 is made up of a different set of nodes.

When jobs are submitted they should be placed on group1 nodes or group2 nodes roughly equally balancing between the two, i.e. if there are 4 jobs using 4 nodes. They should take 8 nodes from group1 and 8 nodes from group2.  
group1 nodes should use all nodes that are NOT in group3 first, leaving group3 to be the last nodes selected.  
Their should also be a method of selecting group3 either by specifying resource or a queue.

We have created resources for group1 and group2, and would submit with -l place=vscatter:excl:group=group

What we are struggling with is the group3 nodes only to be used last in group1.

Any ideas, would be most appreciated.  
Thanks

---

<div class="post-metadata">

**Author:** ![fnevgeny](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/fnevgeny/32/375_2.png) [@fnevgeny](https://community.openpbs.org/u/fnevgeny)\
**Post date:** [April 19, 2022, 1:27pm UTC](https://community.openpbs.org/t/ordering-of-nodes/3066/2 "2022-04-19T13:27:02Z")

</div>

You can assign different priorities to nodes, like

```auto
set node <nodename> priority = <value>

```

Within each group, set equal priorities. Nodes belonging to groups with higher priority will get jobs first.
