Use the membership policy subexpression builder to create an expression that defines the members of your dynamic cluster. Use the build subexpression utility to build complex rule conditions from subexpressions by using AND, OR, NOT and parenthetical grouping. The rule builder validates the rule when you apply the changes, and alerts you to mismatched parentheses and unsupported logic operators.
To use the membership policy builder, click Subexpression builder. Select the properties that you want to be in your membership policy, and click Generate subexpression. The subexpression value displays. To append the subexpression to your membership policy, click Append.
Specifies the operator that is used to append this subexpression to the previous subexpression in the membership policy.
Specifies the node information on which you want to select the nodes that host your dynamic cluster.
Specifies a custom property value when you select Node property as your operand.
To define a node custom property, click
or .Depending on the operator that you choose, type in a value for the subexpression that you want to create.
After you click Generate subexpression, this field displays the generated subexpression fragment based on the options that you selected. To add this subexpression to your membership policy, click Append.
You can use the following examples to create your own membership policy.
node_nodegroup = 'my_node_group'
node_property$APACHE_2_0 IS NOT NULL
node_property$APACHE IS NOT NULL and node_property$PHP IS NOT NULL
node_property$WASCE_2.0* IS NOT NULL
node_property$WASCE_2.0 IS NOT NULL
node_name like 'my_node%'
node_hostname in ('node1.mydomain.com','node2.mydomain.com')
not (node_nodegroup='my_node_group') and node_name like 'my_node%'