Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] How to change a user's priority permanently?
- Date: Thu, 30 Oct 2014 11:34:14 -0500
- From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] How to change a user's priority permanently?
On 10/30/2014 11:09 AM, Ralph Finch wrote:
> $CondorVersion: 8.2.1 Jun 27 2014 BuildID: 256063 $
> $CondorPlatform: x86_64_Windows8 $
>
> The manual says a user can submit a job with nice_user = <True | False> .
> However as pool admin, I'd like to permanently set in a config file some
> users as nice_user = True for all their jobs. Is there a way to do this,
> rather than depend on users to do this voluntarily in their submit configs?
>
All HTCondor does when it sees a job with 'nice_user=True' is it temporarily
increases the priority factor for that job by $(NICE_USER_PRIO_FACTOR), which
defaults to 10000000000.
So if you want user "todd@xxxxxxx" to have all their jobs treated as if they
were nice_user jobs, enter
condor_userprio -setfactor todd@xxxxxxx 10000000000
Or, if on Linux and you really want to be fancy,
condor_userprio -setfactor todd@xxxxxxx `condor_config_val NICE_USER_PRIO_FACTOR`
Of course, you will need to do this from a machine/account that has
HTCondor administrator authorization, since obviously only admins should
be able to adjust relative priorities across different users; in the typical
default install, this means your central manager.
Hope this helps,
Todd