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

Re: [HTCondor-users] limit hosts to one job per user



On Jun 30, 2017, at 2:43 PM, Jon Bernard <jonbernard@xxxxxxxxx> wrote:

Hi all,

We have a user who would like to ensure that he never has more than one job running per host. Is there a standard (any?) way of doing this?

I've tried playing with the recipe at https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=HowToAllowOnlyOneUser, but haven't been successful.

We're using 8.5.8.

If youâre using partitionable slots, you can configure a custom resource on all of the machines, which the userâs jobs request.
Put something like the following in the configuration files on all execute machines:

MACHINE_RESOURCE_LONER = 1
MACHINE_RESOURCE_NAMES = LONER

Then, the user would put this in their submit file:

request_loner = 1

The first loner job that starts on each machine will be allocated the machineâs 1 unit of loner resource, so other loner jobs wonât be matched to it.

If you have multiple sets of jobs with this one-per-machine requirement, you would have to configure multiple custom resources, one per job set.

Thanks and regards,
Jaime Frey
UW-Madison HTCondor Project