In the example, there 3 hosts, in nested clusters, and all in the 'testing' group:
rhe30 00:0C:29:DA:E5:8E 192.168.60.88 active 0/0 /private testing
rhe40 00:0C:29:44:33:98 192.168.60.90 active 0/1 /private/very testing
rhel4-64 00:0C:29:DE:6E:03 192.168.60.178 active 0/0 /private/very/deep testing
here's the qbwrk.conf
#=====================================================================
# define a host that will run jobs in any cluster at /private or 1 level below
# - done with the '*'
#=====================================================================
[rhe30]
worker_cluster = "/private"
worker_restrictions = "/private or /private/*"
worker_groups = "testing"
#=====================================================================
# define a host that will only run jobs in /private/very or any level below
# - done with the '+'
#=====================================================================
[rhe40]
worker_cluster = "/private/very"
worker_restrictions = "/private/very or /private/very/+"
worker_groups = "testing"
#=====================================================================
# define a host that will only run jobs in /private/very/deep
#=====================================================================
[rhel4-64]
worker_cluster = "/private/very/deep"
worker_restrictions = "/private/very/deep"
worker_groups = "testing"submit a job that will run only in /private:
qbsub -cl /private -restr /private <cmd>
submit a job that will prefer to run in /private/very, but could run in any host in /private or in the first level below /private
qbsub -cl /private/very -rest '/private or /private/*' <cmd>
submit a job that will prefer to run in /private/very/deep, but could run in any host at any level at /private or below
qbsub -cl /private/very/deep -restr '/private or /private/+' hostname