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

Re: [HTCondor-users] Disable HasFileTransfer for hosts?



On 5/29/2018 10:52 AM, Joe DiTommasso wrote:
> I'd like to find a solution that avoids changing existing processes, if 
> possible. This diff gives the behavior I'm looking for:
> 
[snip]


So with your proposed patch, you could append to condor_config of a specific execute machine

   HasFileTransfer = False

and then jobs will only run there if the job's FileSystemDomain is equal to the submit machine's FileSystemDomain.

I think you can get the exact same behavior without patching the HTCondor source code by instead appending
the following to the condor_config of any execute node:

   # Append to the START expression a clause that says only run
   # jobs submitted from hosts in the same FileSystemDomain, regardless
   # of if file transfer is being used or not.
   START = ( $(START) ) && (TARGET.FileSystemDomain == MY.FileSystemDomain)

Remember that matching in HTCondor is bilateral, meaning the job requirements expression must
be true, and also the machine START expression must be true.  So the above says this 
machine is only willing to run jobs submitted from submit nodes in the same FileSystemDomain,
which I think is exactly the behavior you would get with your code patch.

Hope the above helps,
Todd