[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Accounting Groups

I was able to get further. Thanks to this,Âhttps://indico.cern.ch/event/817927/contributions/3570542/attachments/1913668/3162964/ScheddTransforms.pdf

CLASSAD_USER_MAPFILE_Groups = /path/to/mapfileÂ

JOB_TRANSFORM_AssignGroup @=endÂ
[ copy_Owner="AcctGroupUser"; copy_AcctGroup="RequestedAcctGroup"; eval_set_AcctGroup=usermap("AssignGroup",AcctGroupUser,AcctGroup); ]Â

On my CM, I now have
GROUP_NAMES = AcctGroupUser
GROUP_QUOTA_AcctGroupUser_userA = 100

That should set userA quota to 100.

is thisÂcorrect? Also, what is the purpose of the mapfile? I know it must exist but not sure why we need it.Â

On Thu, Apr 23, 2020 at 12:40 PM Rita <rmorgan466@xxxxxxxxx> wrote:
I set the following below

Restarted condor. Submitted a job. And now, I see in my condor_userprio my username and resource used. Is this a good way to validate the change? Now that user accounting groups are squared away, How can I enforce the quota?


JOB_TRANSFORM_AssignGroup = [ eval_set_AccountingGroup = userMap("Groups",Owner,AccountingGroup); ]

On Thu, Apr 23, 2020 at 12:19 PM Gregory Thain <gthain@xxxxxxxxxxx> wrote:

On 4/23/20 10:46 AM, rmorgan466@xxxxxxxxx wrote:
> Hi.
> I was wondering if there were any advancements on how to manage
> account groups. Each user will have an accounting group in my setup. I
> want to explicitlyÂset the number of jobs a user can run. I don't want
> a user to use another accounting group. If a user runs without an
> accounting group, their jobs shouldn't run. Is this possible?

With schedd transforms, the schedd can now automatically assign an
accounting group to a user based on a mapping file the admin sets up.Â
Some details are given here, though we hope to improve the documentation:



HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

--- Get your facts first, then you can distort them as you please.--

--- Get your facts first, then you can distort them as you please.--