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

Re: [HTCondor-users] Limiting n. of jobs per user via matchmaking



Dario,

Thanks for sharing this! I am wondering if this will work on 7.4. I have been looking for something like this for a while. Instead of setting up accounting groups I prefer something like this. 






On Sat, Apr 5, 2014 at 12:54 PM, Dario Berzano <dario.berzano@xxxxxxx> wrote:
Thank you for your answer. Using quotas would indeed be more appropriate: however, to my understanding, quotas only apply to groups, not users.

I have tried to create one group per user, and it works nicely: but my list of users is not "static" (i.e. they come from a remote LDAP server) and it is potentially very large. Maybe there are options that I am not aware of to get the GROUP_NAMES from some dynamic source, and to define a "default group quota" where not explicitly mentioned...

For the moment I am satisfied with the "quota-via-matchmaking" mechanism, but suggestions are of course welcome!

Thank you, cheers
--
Dario Berzano


On Fri, Apr 4, 2014 at 8:18 PM, Greg Thain <gthain@xxxxxxxxxxx> wrote:
On 04/04/2014 01:00 PM, Dario Berzano wrote:
Hello all, I have managed to solve the problem by submitting the following:

Universe = vanilla
Executable = /bin/sleep
Arguments = 600
Log = myjob.log
Output  myjob.out
Error = myjob.err
# Max 2 running jobs per user
Requirements = ( isUndefined(SubmitterUserResourcesInUse) ||
(SubmitterUserResourcesInUse <= 1.0) )
Queue 5


As you've discovered, the issue is that HTCondor will match a job to a machine in several places:  First, in the negotiator, then in the schedd, and finally in the startd.  The SubmitterUserResourcesInUse attribute is only available in the negotiator, so the job would match there, but not anywhere else, and thus never run.

If your ultimate goal is to limit the number of jobs running per user, you may want to look at accounting group quotas, which can usually accomplish the same goal.

-greg
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@cs.wisc.edu with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/