# Restrict the use of one node to one queue

**URL:** <https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675>\
**Category:** Users/Site Administrators\
**Created:** [September 22, 2023, 7:04pm UTC](https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675 "2023-09-22T19:04:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asnr](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@asnr](https://community.openpbs.org/u/asnr)\
**Post date:** [September 22, 2023, 7:04pm UTC](https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675/1 "2023-09-22T19:04:17Z")

</div>

Hi all,

I have a cluster with 100 compute nodes and 10 queues.

I would like to assign one compute node to only one queue. That node cannot be available or used by any other queues.

Reading the pbs documentation, I associated the vnode node001 to the exclusive queue like so

set queue exclusive default\_chunk.Qlist = exclusiveq  
set node node001 resources\_available.Qlist = exclusiveq

Which works. However when submitting jobs from other queues, sometimes a job will land on node001.

I could assign all nodes to particular queues however, as our list of nodes increase I was hoping to see if there is a more efficient way to restrict the use of one node to one queue.

Thanks all

---

<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:** [September 24, 2023, 7:54am UTC](https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675/2 "2023-09-24T07:54:03Z")

</div>

Which works. However when submitting jobs from other queues, sometimes a job will land on node001.

> > > Please check and share the qstat -fx   
> > > Please check and share the pbsnodes n001 output

Please make sure

- all the nodes have Qlist list assigned.
- all the job request has Qlist request - check the qstat -fx 

Also, please check whether you have Qlist mentioned in the resources: “…,Qlist” of the $PBS\_HOME/sched\_priv/sched\_config.

---

<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:** [October 1, 2023, 3:55pm UTC](https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675/3 "2023-10-01T15:55:26Z")

</div>

I just use something like  
`set node <nodename> queue = <queuename>`

---

<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:** [October 1, 2023, 7:51pm UTC](https://community.openpbs.org/t/restrict-the-use-of-one-node-to-one-queue/3675/4 "2023-10-01T19:51:53Z")

</div>

This works, but recommendation is not to use this node mapping, instead use Qlists method of mapping queues to nodes.
