| 66 | [2006-11-25 13:00:00.00] RM Starting resource manager |
| 67 | [2006-11-25 13:00:00.00] TFILE Loading tracefile /usr/share/haizea/traces/sample.lwf |
| 68 | [2006-11-25 13:00:00.00] TFILE Loaded workload with 0 requests () |
| 69 | [2006-11-25 13:00:00.00] CLOCK Starting simulated clock |
| 70 | [2006-11-25 13:00:00.00] CLOCK Simulated clock has stopped |
| 71 | [2006-11-25 13:00:00.00] RM Stopping resource manager gracefully... |
| 72 | [2006-11-25 13:00:00.00] RM --- Haizea status summary --- |
| 73 | [2006-11-25 13:00:00.00] RM Number of leases (not including completed): 0 |
| 74 | [2006-11-25 13:00:00.00] RM Completed leases: 0 |
| 75 | [2006-11-25 13:00:00.00] RM ---- End summary ---- |
| 76 | |
| 78 | * 此結果輸出主要有三類:'''RM'''(Resource Manager)、'''TFILE'''(!TraceFile)、'''CLOCK''' |
| 79 | * RM Starting resource manager:啟動資源管理者 |
| 80 | * TFILE Loading tracefile /usr/share/haizea/traces/sample.lwf:載入 tracefile |
| 81 | * TFILE Loaded workload with 0 requests ():此範例檔並無租約要求 |
| 82 | * CLOCK Starting simulated clock:開始模擬的 clock |
| 83 | * CLOCK Simulated clock has stopped:停止模擬的 clock |
| 84 | |
| 85 | == 【2.2 範例一之版本1】 == |
| 86 | * 現在我們修改 !TraceFile (將註解的第18行和第34行打開) |
| 87 | {{{ |
| 88 | #!sh |
| 89 | 19 <lease-request arrival="00:00:00"> |
| 90 | 20 <lease preemptible="true"> |
| 91 | 21 <nodes> |
| 92 | 22 <node-set numnodes="1"> |
| 93 | 23 <res type="CPU" amount="100"/> |
| 94 | 24 <res type="Memory" amount="1024"/> |
| 95 | 25 </node-set> |
| 96 | 26 </nodes> |
| 97 | 27 <start></start> |
| 98 | 28 <duration time="01:00:00"/> |
| 99 | 29 <software> |
| 100 | 30 <disk-image id="foobar.img" size="1024"/> |
| 101 | 31 </software> |
| 102 | 32 </lease> |
| 103 | 33 </lease-request> |
| 104 | }}} |
| 105 | * 再執行它 |
| 106 | {{{ |
| 107 | haizea -c /usr/share/haizea/etc/sample_trace.conf |
| 108 | [2006-11-25 13:00:00.00] RM Starting resource manager |
| 109 | [2006-11-25 13:00:00.00] TFILE Loading tracefile /usr/share/haizea/traces/sample.lwf |
| 110 | [2006-11-25 13:00:00.00] TFILE Loaded workload with 1 requests (1 Best-effort) |
| 111 | [2006-11-25 13:00:00.00] CLOCK Starting simulated clock |
| 112 | [2006-11-25 13:00:00.00] LSCHED Lease #1 has been requested. |
| 113 | [2006-11-25 13:00:00.00] LSCHED Lease #1 has been marked as pending. |
| 114 | [2006-11-25 13:00:00.00] LSCHED Queued best-effort lease request #1, 1 nodes for 01:00:00.00. |
| 115 | [2006-11-25 13:00:00.00] LSCHED Next request in the queue is lease 1. Attempting to schedule... |
| 116 | [2006-11-25 13:00:00.00] VMSCHED Lease #1 has been scheduled on nodes [1] from 2006-11-25 13:00:00.00 to 2006-11-25 14:00:00.00 |
| 117 | [2006-11-25 13:00:00.00] VMSCHED Started VMs for lease 1 on nodes [1] |
| 118 | [2006-11-25 14:00:00.00] VMSCHED Stopped VMs for lease 1 on nodes [1] |
| 119 | [2006-11-25 14:00:00.00] VMSCHED Lease 1's VMs have shutdown. |
| 120 | [2006-11-25 14:00:00.00] CLOCK Simulated clock has stopped |
| 121 | [2006-11-25 14:00:00.00] RM Stopping resource manager gracefully... |
| 122 | [2006-11-25 14:00:00.00] RM --- Haizea status summary --- |
| 123 | [2006-11-25 14:00:00.00] RM Number of leases (not including completed): 0 |
| 124 | [2006-11-25 14:00:00.00] RM Completed leases: 1 |
| 125 | [2006-11-25 14:00:00.00] RM ---- End summary ---- |
| 126 | }}} |
| 127 | * 兩個 CLOCK 之間多了LSCHED(租約排程) 和 VMSCHED(VM排程) |
| 128 | * LSCHED Lease !#1 has been requested. |
| 129 | * LSCHED Lease !#1 has been marked as pending. |
| 130 | * LSCHED Queued best-effort lease request !#1, 1 nodes for 01:00:00.00. |
| 131 | * LSCHED Next request in the queue is lease 1. Attempting to schedule... |
| 132 | * VMSCHED Lease !#1 has been scheduled on nodes ![1] from 2006-11-25 13:00:00.00 to 2006-11-25 14:00:00.00 |
| 133 | * VMSCHED Started VMs for lease 1 on nodes ![1] |
| 134 | * VMSCHED Stopped VMs for lease 1 on nodes ![1] |
| 135 | * VMSCHED Lease 1's VMs have shutdown. |
| 136 | == 【2.2 範例一之版本2】 == |
| 137 | |