# How to assign maximum cores to particular queue?

**URL:** <https://community.openpbs.org/t/how-to-assign-maximum-cores-to-particular-queue/2394>\
**Category:** Users/Site Administrators\
**Created:** [December 9, 2020, 6:54am UTC](https://community.openpbs.org/t/how-to-assign-maximum-cores-to-particular-queue/2394 "2020-12-09T06:54:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 9, 2020, 1:29pm UTC](https://community.openpbs.org/t/how-to-assign-maximum-cores-to-particular-queue/2394/2 "2020-12-09T13:29:50Z")

</div>

Please make sure

1. Please check this documentation on Server and Queue limits  
[https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf](https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf)  
The below section in the documentation has all the examples:  
**5.15.1.9.ii Examples of Setting Server and Queue Limits**

2. You can acl\_users / acl\_groups to control which queues the users are allowed to submit jobs.  
Also, you can have fine grained custom control by implementing queuejob hook  
in the above guide: search for acl\_users , acl\_groups , queuejob hook

3. You need need to write a json parser script, that would parse the output of` qstat -fx -F json` and get the desired results .

4. You can use Qlist set. Check the documentation and example at  
**4.9.2.2.i Procedure to Associate Vnodes with Multiple Queues**

5. You can use job sort formula to sort the jobs in which they get scheduled with ncpus has one fo the factor. In the above guide: check job\_sort\_formula and examples

6. Please check this documentation on Server and Queue limits  
[https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf](https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf)  
The below section in the documentation has all the examples:  
**5.15.1.9.ii Examples of Setting Server and Queue Limits**

Hope this helps

---

_[View the full topic](https://community.openpbs.org/t/how-to-assign-maximum-cores-to-particular-queue/2394)._
