Operating Environment Software Instruction Manual

A Customizable allocation process
Overview
Matrix infrastructure orchestration performs automated resource allocation using a built-in allocation
mechanism, as described above. This built in allocator is the default allocation mechanism. In
addition, a customizable allocation mechanism can be used instead of the built in allocator for
some parts of the resource customizable allocation process. The customizable allocator supports
a flexible, rule based fitting process using the JBoss Drools rule engine (http://www.jboss.org/
drools). You can configure infrastructure orchestration to enable selective rule based fitting processes,
which can be customized as needed. By default, all of the rule based fitting processes are disabled
— the built in allocator’s fitting process is used. This section describes how to enable rule based
fitting processes.
Policy configuration file
The customizable allocation process uses pre-defined policy hooks in the ..\Program Files\
HP\Matrix infrastructure orchestration\conf\policy configuration file. The policy
file (policy.xml) contains multiple pre-defined entry points (or hooks), enabled state, and the
corresponding rule files. A sample entry in the policy.xml file is shown in the following figure.
The name PhysicalServerPolicyCheck.applyFitting in the figure indicates the
entry point or hook for the physical server fitting process.
The enabled flag, enables or disables the rule-based fitting for this hook.
The <policy-rule-file> provides the list of rule files to apply during the fitting process.
When the customizable allocation process initiates, infrastructure orchestration reads the
policy.xml file and uses this information to locate the fitting process to use by referencing the
corresponding hook status. If the hook is enabled, the hook uses the rule-based fitting process,
otherwise it continues to use the default fitting process.
Restart the infrastructure orchestration Windows service to reflect any changes made to the policy
file.
Rule file
A rule file is typically a text file with a .drl extension. In a .drl file, there can be multiple rules,
queries, and functions, as well as resource declarations assigned and used by the rules and queries.
Separate rules into multiple rule files to help manage large numbers of rules.
The overall structure of a rule file is:
package package-name
imports
globals
functions
queries
rules
212 Customizable allocation process