Examples

The following examples show the job placement policy behavior in certain scenarios, using the sample node labels file above.

Job Label

Queue Label

Queue Policy

Outcome

good

big

PREFER_JOB

The job runs on nodes labeled "good" (hostnames match perfnode15* or perfnode204*)

good

big

PREFER_QUEUE

The job runs on nodes labeled "big" (hostnames match /perfnode200./ or /perfnode203./)

good

big

AND

The job runs on nodes only if they are labeled both "good" and "big" (hostnames match perfnode204*)

good

big

OR

The job runs on nodes if they are labeled either "good" or "big" (hostnames match /perfnode200./, /perfnode203./, perfnode15*, or perfnode204*)