source: xssim/trunk/src/test/rewolucja/schemas/example/coolemall/example3.xml @ 350

Revision 350, 3.1 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<environment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3        xsi:noNamespaceSchemaLocation="../../XSSimResSchema.xsd">
4       
5        <resources>
6                <description>
7        This short example presents how to describe computing resource location.
8        Simulated architecture consists of data center with 2 racks named rack1 and rack2, respectively.
9        Location of rack1 is defined using vector (4, 0, 2), while rack2 using vector (6, 0, 2)
10                Rack1 contains 2 computing nodes - node11 and node12. Appropriate coordinates for node11 are (0, 0, 0)
11                and for node12 (0, 1, 0). Rack2 contains 2 computing nodes named node21 and node22. Their location is defined as follows:
12                (0, 0, 0) for node21 and (1, 0, 0) for node22.
13                Using 3 coordinates allows to express location in various ways. It can be interpreted as a absolute placement in 3D, as well as the
14                relative position according to the parent computing resource. Moreover, it is possible to define only the arrangement of
15                the computing resources by increasing only the value of one coordinate.
16                In the following example, racks location is defined using relative positions (with respect to the data center), while
17                for nodes the order of appearance is specified (with additional direction in which the order tends
18                (node12 is located after node11 and placed above it, while node22 is located on the right side of node21)
19                It has to be stressed that simulator only stores the location parameters and does not process them. Hence, their interpretation should be done by user.
20                </description>
21                <computingResource class="DataCenter" name="dataCenter">
22                        <computingResource class="Rack" name="rack1">
23                                <location>
24                                        <horizontal>4</horizontal>
25                                        <vertical>0</vertical>
26                                        <depth>2</depth>
27                                </location>
28                                <computingResource class="ComputingNode" name="node11">
29                                        <location>
30                                                <horizontal>0</horizontal>
31                                                <vertical>0</vertical>
32                                                <depth>0</depth>
33                                        </location>
34                                </computingResource>
35                                <computingResource class="ComputingNode" name="node12">
36                                        <location>
37                                                <horizontal>0</horizontal>
38                                                <vertical>1</vertical>
39                                                <depth>0</depth>
40                                        </location>
41                                </computingResource>
42                        </computingResource>   
43                        <computingResource class="Rack" name="rack2">
44                                <location>
45                                        <horizontal>6</horizontal>
46                                        <vertical>0</vertical>
47                                        <depth>2</depth>
48                                </location>
49                                <computingResource class="ComputingNode" name="node21">
50                                        <location>
51                                                <horizontal>0</horizontal>
52                                                <vertical>0</vertical>
53                                                <depth>0</depth>
54                                        </location>
55                                </computingResource>
56                                <computingResource class="ComputingNode" name="node22">
57                                        <location>
58                                                <horizontal>1</horizontal>
59                                                <vertical>0</vertical>
60                                                <depth>0</depth>
61                                        </location>
62                                </computingResource>
63                        </computingResource>
64                </computingResource>   
65                <scheduler class="Cluster" name="cluster">
66                        <schedulingPlugin>
67                                <name>FCFSLocalSchedulingPlugin</name>
68                        </schedulingPlugin>             
69                        <managedComputingResources include="false">
70                                <resourceName>dataCenter</resourceName>
71                        </managedComputingResources>
72                </scheduler>
73        </resources>
74</environment>
Note: See TracBrowser for help on using the repository browser.