summaryrefslogtreecommitdiffstats
path: root/cts/scheduler/xml/colocated-utilization-clone.xml
blob: 9bcd3a1ce23a4f92b16cf881508e01ff6f3083d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<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-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="8"/>
        </utilization>
      </node>
      <node id="node3" uname="node3">
        <utilization id="node3-utlization">
          <nvpair id="node3-utlization-cpu" name="cpu" value="10"/>
        </utilization>
      </node>
    </nodes>
    <resources>
      <clone id="clone1">
        <meta_attributes id="clone1-meta_attributes">
          <nvpair id="clone1-meta_attributes-clone-max" name="clone-max" value="2"/>
        </meta_attributes>
        <primitive id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
          <utilization id="rsc1-utlization">
            <nvpair id="rsc1-utlization-cpu" name="cpu" value="2"/>
          </utilization>
        </primitive>
      </clone>
      <clone id="clone2">
        <meta_attributes id="clone2-meta_attributes">
          <nvpair id="clone2-meta_attributes-clone-max" name="clone-max" value="2"/>
        </meta_attributes>
        <group id="group1">
          <primitive id="rsc2" class="ocf" provider="pacemaker" type="Dummy">
            <utilization id="rsc2-utlization">
              <nvpair id="rsc2-utlization-cpu" name="cpu" value="2"/>
            </utilization>
          </primitive>
          <primitive id="rsc3" class="ocf" provider="pacemaker" type="Dummy">
            <utilization id="rsc3-utlization">
              <nvpair id="rsc3-utlization-cpu" name="cpu" value="2"/>
            </utilization>
          </primitive>
        </group>
      </clone>
      <group id="group2">
        <primitive id="rsc4" class="ocf" provider="pacemaker" type="Dummy">
          <utilization id="rsc4-utlization">
            <nvpair id="rsc4-utlization-cpu" name="cpu" value="2"/>
          </utilization>
        </primitive>
        <primitive id="rsc5" class="ocf" provider="pacemaker" type="Dummy">
          <utilization id="rsc5-utlization">
            <nvpair id="rsc5-utlization-cpu" name="cpu" value="2"/>
          </utilization>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_colocation id="clone2-with-clone1" rsc="clone2" with-rsc="clone1" score="INFINITY"/>
      <rsc_order id="clone1-before-clone2" first="clone1" then="clone2" kind="Mandatory"/>
      <rsc_colocation id="group2-with-clone2" rsc="group2" with-rsc="clone2" score="INFINITY"/>
      <rsc_order id="clone2-before-group2" first="clone2" then="group2" kind="Mandatory"/>
    </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"/>
    <node_state id="node3" uname="node3" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="crm_simulate"/>
  </status>
</cib>