Creation of Project/PBS account

Hi All,

I want to create Project/PBS accounts and tag osuser(i.e euser) to that account. Also impose some max CPU restriction to the account. Please let me know how to do the same.
I am aware that “sched_priv/resource_group” file is there we can set the fairshare quota for specific os users , groups and project accounts . But what command we need to use to create those project accounts.

My understanding is this can be done by using “amgr” budgeting utility in PBS pro but is this available in OpenPBS ?

Yes, you can do the same with queuejob hook and server/queue limits
Refer: https://help.altair.com/2022.1.0/PBS%20Professional/PBS2022.1.pdf
Section: Table 5-13: Specifying Limits
5.15.1 Managing Resource Usage By Users, Groups, and
Projects, at Server & Queues

You do need to created projects or accounts, you have make sure there are set of projects and accounts that you would like to define and make sure users request only these projects or account name while submitting their jobs qsub -P / qsub -A , if the accounts / projects are not part of the list , then reject the job using a queuejob with a message saying not a valid account or project.

It is not available for OpenPBS.

Thanks Adarsh for the update. My question : is it possible to create PBS Projects or PBS Accounts in Openpbs running on linux , if yes , what are the steps ?

You do not have to create PBS Projects or Accounts in OpenPBS in any context.

You have to just define, which project name or account name you would like to run the job with. For proper accountability and planning, Say, you can have a text file for project name and a file for account names.

Please check the man page for qsub
-P
Specifies a project for the job. Sets job’s project attribute to project.
Format: Project Name
Default value: “_pbs_project_default”

-A
Accounting string associated with the job. Used for labeling accounting data. Sets job’s Account_Name attribute to account string.
Format: String

Say for example:
qsub -P wingdesign – /bin/sleep 1000
qsub -P wingdesign -A design – /bin/sleep 1000
qsub -A design – /bin/sleep 1000

qstat -fx | grep -i project -i account # this would show you the information.

So you can have a queue job hook which check for valid project name / account names from a predefined list or read from a text will and accepts the jobs or rejects job.