summaryrefslogtreecommitdiffstats
path: root/cts/scheduler/xml/utilization-check-allowed-nodes.xml
diff options
context:
space:
mode:
Diffstat (limited to 'cts/scheduler/xml/utilization-check-allowed-nodes.xml')
-rw-r--r--cts/scheduler/xml/utilization-check-allowed-nodes.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/cts/scheduler/xml/utilization-check-allowed-nodes.xml b/cts/scheduler/xml/utilization-check-allowed-nodes.xml
new file mode 100644
index 0000000..d9d234f
--- /dev/null
+++ b/cts/scheduler/xml/utilization-check-allowed-nodes.xml
@@ -0,0 +1,39 @@
+<cib epoch="1" num_updates="36" admin_epoch="0" validate-with="pacemaker-3.0" cib-last-written="Fri Dec 7 15:42:31 2012" have-quorum="1">
+ <configuration>
+ <crm_config>
+ <cluster_property_set id="cib-bootstrap-options">
+ <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
+ <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
+ <nvpair id="cib-bootstrap-options-placement-strategy" name="placement-strategy" value="utilization"/>
+ </cluster_property_set>
+ </crm_config>
+ <nodes>
+ <node id="node1" uname="node1">
+ <utilization id="node1-utlization">
+ <nvpair id="node1-utlization-cpu" name="cpu" value="4"/>
+ </utilization>
+ </node>
+ <node id="node2" uname="node2">
+ <utilization id="node2-utlization">
+ <nvpair id="node2-utlization-cpu" name="cpu" value="2"/>
+ </utilization>
+ </node>
+ </nodes>
+ <resources>
+ <primitive id="rsc1" class="ocf" provider="pacemaker" type="Dummy"/>
+ <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy">
+ <utilization id="rsc2-utlization">
+ <nvpair id="rsc2-utlization-cpu" name="cpu" value="4"/>
+ </utilization>
+ </primitive>
+ </resources>
+ <constraints>
+ <rsc_location id="rsc1-location" rsc="rsc1" node="node1" score="-INFINITY"/>
+ <rsc_colocation id="rsc2-with-rsc1" rsc="rsc2" with-rsc="rsc1" score="INFINITY"/>
+ </constraints>
+ </configuration>
+ <status>
+ <node_state id="node1" uname="node1" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="crm_simulate"/>
+ <node_state id="node2" uname="node2" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="crm_simulate"/>
+ </status>
+</cib>