You can use special characters when defining compute unit members under the MEMBER column to specify hosts, host groups, and compute units. These are useful to define several names in a single entry such as a range of hosts, or for all names with a certain text string.
When defining host, host group, and compute unit members of compute units, you can use string literals and the following special characters:
Use a tilde (
~) to exclude specified hosts, host groups, or compute units from the list. The tilde can be used in conjunction with the other special characters listed below. The following example matches all hosts in
group12 except for
hostA, and
hostB:
... (group12 ~hostA ~hostB)
Use an asterisk (
*) as a wildcard character to represent any number of characters. The following example matches all hosts beginning with the text string “
hostC” (such as
hostCa,
hostC1, or
hostCZ1):
... (hostC*)
Use square brackets with a hyphen (
[integer1 - integer2]) to define a range of non-negative integers at the end of a name. The first integer must be less than the second integer. The following example matches all hosts from
hostD51 to
hostD100:
... (hostD[51-100])
Use square brackets with commas (
[integer1, integer2 ...
]) to define individual non-negative integers at the end of a name. The following example matches
hostD101,
hostD123, and
hostD321:
... (hostD[101,123,321])
Use square brackets with commas and hyphens (such as
[integer1 - integer2, integer3, integer4 - integer5]) to define different ranges of non-negative integers at the end of a name. The following example matches all hosts from
hostD1 to
hostD100,
hostD102, all hosts from
hostD201 to
hostD300, and
hostD320):
... (hostD[1-100,102,201-300,320])
Restrictions
You cannot use more than one set of square brackets in a single compute unit definition.
The following example is not correct:
... (hostA[1-10]B[1-20] hostC[101-120])
The following example is correct:
... (hostA[1-20] hostC[101-120])
The keywords all, allremote, all@cluster, other and default cannot be used when defining compute units.