Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] virtual machines
- Date: Wed, 5 Jan 2005 16:09:22 -0600
- From: Erik Paulson <epaulson@xxxxxxxxxxx>
- Subject: Re: [Condor-users] virtual machines
On Wed, Jan 05, 2005 at 01:31:45PM -0800, Jacob Joseph wrote:
> Is it possible in the spec file for a user to specify the virtual
> machine number to run on? I understand it is possible to specify the
> machine.
>
By spec file, do you mean the input file to condor_submit? In Condor,
we usually call that 'the submit file'
But it's easy to say which VM you want to run on
requirements = VirtualMachineID == 2
Though there's usually not a good reason to do so.
> Alternately, is it possible to use arbitrary variables in a spec file
> that can be checked in a START expression?
>
Yes.
In the configuration file for the condor_startd
Requirements = TARGET.Spirit == "Vodka"
And in the submit file, you use the '+' to add new things into the job
classad:
+Sprit = "Vodka"
It works both ways, too.
At the startd, you can add arbitrary expressions to the classad for the
machine:
Requirements = TARGET.Spirit == "Vodka"
Mixer = "Tonic"
# This advertises Mixer into the StartdAd
STARTD_EXPRS = Mixer
Then, in the submit file:
+Spirit = "Vodka"
Requirements = TARGET.Mixer == "Tonic"
Sadly, it's different syntax to get something into the StartD classad
(STARTD_EXPRS) and the Job Classad (+ in the submit file)
-Erik
> Thanks.
> -Jacob
> _______________________________________________