Export (0) Print
Expand All

Use Conditions to Adjust Resource Policies

Applies To: Windows Server 2008 R2

Windows System Resource Manager can automatically switch to a different managing policy when one of six preconfigured events occurs. When one of these events occurs, you can configure the conditional policy to evaluate additional system states and switch to another policy if one of the states is found to be true.

noteNote
States that are configured as part of a conditional policy are only evaluated, and their associated managing policies are only implemented, if the event that they are a part of occurs first.

Six events are supported by Windows System Resource Manager. In the default installation, no policy changes occur when one of the events occurs.

Events that trigger conditional policy changes

Only one conditional policy can be configured for each event category. Each time an event occurs, any associated policy changes are implemented.

A special condition category Any is also installed by default. The Any condition category is only evaluated if no conditional policy exists for an event type.

Specific events that trigger conditional policy changes include:

  • Hot addition of a processor or processors

  • Hot addition of memory (RAM)

  • A Cluster service node comes online

  • A Cluster service node goes offline

  • A Cluster service resource group comes online

  • A Cluster service resource group goes offline

States that can be evaluated when an event occurs

After an event occurs, any states configured as part of the conditional policy for the event are evaluated. For Windows System Resource Manager to take action in response to an event, the event's conditional policy must contain at least one state to be evaluated.

States can be configured as single clauses, or as groups in which one or more clauses must be true in order for the state to be evaluated as true.

Clauses in a state can include:

  • Whether the number of processors is greater than, less than, or equal to a specified quantity

  • Whether the amount of memory is greater than, less than, or equal to a specified quantity

  • Whether a Cluster service node is online or offline

  • Whether a Cluster service resource group is online or offline

How conditional policies are applied

Conditional policies change the managing state according to the following process:

  1. An event occurs.

  2. Windows System Resource Manager looks for an existing conditional policy associated with the event.

    • If a conditional policy exists, Windows System Resource Manager proceeds from step 3 by using the states and default policy for that conditional policy.

    • If a conditional policy does not exist, Windows System Resource Manager proceeds from step 3 by using the states and default policy configured for the Any condition category.

  3. Windows System Resource Manager looks for states to be evaluated when the event occurs.

    • If there are no states configured to be evaluated as part of the conditional policy, no action is taken.

    • If there are states configured, the states are evaluated in order until one of the states is found to be true, and the action associated with the first true state is taken.

    • If no configured state is true, the default policy for the event (or for the Any condition category) is applied.

Editing conditional policies

Configuring the default policy

When an event occurs, Windows System Resource Manager will evaluate the states associated with the event, and if no state is true, the default policy associated with the event will be applied.

To configure the default policy associated with an event
  1. Open Windows System Resource Manager. To open Windows System Resource Manager, click Start, point to Administrative Tools, and then click Windows System Resource Manager.

  2. In the Connect to Computer dialog box, select This computer, and then click Connect.

  3. In the console tree, right-click Conditions, and then click Add/Edit Conditional Policies.

  4. In the Add or Edit Conditional Policies dialog box, click the name of the event that you want to configure, and then click Edit. The Conditional Policy Properties dialog box opens.

  5. In the Select default policy list, select a resource allocation policy name.

    noteNote
    The default policy is only applied if no state configured as part of the conditional policy is true.

  6. Click OK.

Configuring additional states

For Windows System Resource Manager to take action when an event occurs, you must configure at least one state to be evaluated in the conditional policy for the event.

States are evaluated in the order in which they are listed from top to bottom. After a state is found to be true, Windows System Resource Manager will switch the managing policy to the policy associated with that state, and no other states will be evaluated.

  • To change the order in which states are evaluated, in the Conditional Policy Properties dialog box, under States, click the state that you want to move, and then click the up or down arrows to move it.

  • To exclude a state from evaluation, clear the check box next to the state.

    noteNote
    If no states are selected for evaluation, no action will be taken when the event occurs.

To configure additional states to be evaluated when an event occurs
  1. In the Add or Edit Conditional Policies dialog box, click the name of the event that you want to configure, and then click Edit. The Conditional Policy Properties dialog box opens.

  2. Under States, click in an empty row to access the details configuration and create one or more clauses.

    noteNote
    You cannot configure the name of a state that has no clauses. The name column will be populated with information from the clauses that you define.

  3. Under State details, click in an empty cell in the Category column to select a category from the list.

    • If you selected Processor or Memory, click in the Operator column to select an operator, and then click in the Quantity column and type the number of processors or a memory quantity [in megabytes (MB)].

    • If you selected MSCS, in the Object Name list, click and type the name of the node or resource group, and then in the State column, click to select a state from the list.

  4. When you are finished creating state clauses, under States, click the Policy Name column in the row for the state that you just created. In the list, select a policy to apply when the state is true, and then click OK.

Grouping state clauses

You can group state clauses so that one or more clauses must be true for the group to be evaluated true.

  • AND and OR operators have equal precedence.

  • Expressions are evaluated from left to right.

  • Grouped clauses are evaluated first. In the case of a nested group, the deepest nested group is evaluated first.

To combine state clauses to be evaluated as a group
  1. In the Add or Edit Conditional Policies dialog box, click the name of the event that you want to configure, and then click Edit. The Conditional Policy Properties dialog box opens.

  2. Under States, click an empty row to create a new state, or click an existing state row.

  3. Under State details, add multiple states that you want to combine as a single clause to be evaluated true or false.

  4. Under State details, click the first row that you want to combine with another row, and then press SHIFT+click at the same time to select rows to combine.

    noteNote
    You can only group rows that are consecutive. Nested groups are supported.

  5. Right-click the selected rows, click Add Group, and then click OK.

Additional considerations

  • Conditional policies assume that processors and memory cannot be removed while a computer is in service.

Additional references

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft