Difference between revisions of "RQS Common Uses"

From GridWiki
Jump to: navigation, search
m (Max user jobs in a particular queue)
m (Global limits on maximum user jobs)
Line 6: Line 6:
 
<pre>
 
<pre>
 
{
 
{
   name        rule_set_1
+
   name        max_per_user
 
   description  "per user rule sets"
 
   description  "per user rule sets"
 
   enabled      TRUE
 
   enabled      TRUE
Line 12: Line 12:
 
}
 
}
 
</pre>
 
</pre>
 +
 
=== Max user jobs in a particular queue ===
 
=== Max user jobs in a particular queue ===
 
Note that the keyword "queues" refers to a Grid Engine <em>cluster queue</em>
 
Note that the keyword "queues" refers to a Grid Engine <em>cluster queue</em>

Revision as of 18:25, 20 December 2006

Note: this is a draft page where I'm trying to document probable common use cases for the new Resource Quota Syntax that will appear in Grid Engine 6.1. Don't link to this yet :) --Dag 11:54, 20 December 2006 (EST)


Per User Limits

Global limits on maximum user jobs

{
   name         max_per_user
   description  "per user rule sets"
   enabled      TRUE
   limit        users dag to slots=1
}

Max user jobs in a particular queue

Note that the keyword "queues" refers to a Grid Engine cluster queue

{
   name         max_per_queue
   description  NONE
   enabled      TRUE
   limit        users dag queues all.q to slots=2
   limit        users dag queues testQueue to slots=1
}

Max user jobs on a particular execution host

{
 name max_per_host
 enabled TRUE
 limit users dag hosts chrisdag-laptop to slots=2
}

The RQS Design Specification document contains the following more complicated example:

  1. All users together should never take more than 20 slots
  2. All users should maximal take 5 slots on all linux hosts
  3. Every user is restricted to one slot per linux host, only user "roland" is restricted to 2 slots and all other slots on hosts are set to 0

In that case, the ruleset would look like this, note that "@linux" is a predefined hostgroup:

{
 name maxujobs
 limit users * to slots=20
}

{
 name max_linux
 limit users * hosts @linux to slots=5
}

{
 name max_per_host
 limit users roland hosts {@linux} to slots=2
 limit users {*} hosts {@linux} to slots=1
 limit users * hosts * to slots=0
}