| 158 | | [[BR]] |
| | 159 | * 執行它 |
| | 160 | {{{ |
| | 161 | # haizea -c /usr/share/haizea/etc/sample_trace.conf |
| | 162 | [2006-11-25 13:00:00.00] RM Starting resource manager |
| | 163 | [2006-11-25 13:00:00.00] TFILE Loading tracefile /usr/share/haizea/traces/sample.lwf |
| | 164 | [2006-11-25 13:00:00.00] TFILE Loaded workload with 2 requests (1 Best-effort + 1 AR) |
| | 165 | [2006-11-25 13:00:00.00] CLOCK Starting simulated clock |
| | 166 | [2006-11-25 13:00:00.00] LSCHED Lease #1 has been requested. |
| | 167 | [2006-11-25 13:00:00.00] LSCHED Lease #1 has been marked as pending. |
| | 168 | [2006-11-25 13:00:00.00] LSCHED Queued best-effort lease request #1, 1 nodes for 01:00:00.00. |
| | 169 | [2006-11-25 13:00:00.00] LSCHED Next request in the queue is lease 1. Attempting to schedule... |
| | 170 | [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 |
| | 171 | [2006-11-25 13:00:00.00] VMSCHED Started VMs for lease 1 on nodes [1] |
| | 172 | [2006-11-25 13:15:00.00] LSCHED Lease #2 has been requested. |
| | 173 | [2006-11-25 13:15:00.00] LSCHED Lease #2 has been marked as pending. |
| | 174 | [2006-11-25 13:15:00.00] LSCHED Scheduling AR lease #2, 4 nodes from 2006-11-25 13:30:00.00 to 2006-11-25 14:00:00.00. |
| | 175 | [2006-11-25 13:15:00.00] LSCHED Must preempt leases [1] to make room for lease #2 |
| | 176 | [2006-11-25 13:15:00.00] LSCHED Preempting lease #1... |
| | 177 | [2006-11-25 13:15:00.00] LSCHED ... lease #1 will be suspended at 2006-11-25 13:30:00.00. |
| | 178 | [2006-11-25 13:15:00.00] LSCHED AR lease #2 has been scheduled. |
| | 179 | [2006-11-25 13:29:28.00] VMSCHED Stopped VMs for lease 1 on nodes [1] |
| | 180 | [2006-11-25 13:29:28.00] VMSCHED Suspending lease 1... |
| | 181 | [2006-11-25 13:30:00.00] VMSCHED Lease 1 suspended. |
| | 182 | [2006-11-25 13:30:00.00] VMSCHED Started VMs for lease 2 on nodes [2, 3, 4, 1] |
| | 183 | [2006-11-25 13:30:00.00] LSCHED Next request in the queue is lease 1. Attempting to schedule... |
| | 184 | [2006-11-25 13:30:00.00] VMSCHED Lease #1 has been scheduled on nodes [1] from 2006-11-25 14:00:00.00 (resuming) to 2006-11-25 14:31:04.00 |
| | 185 | [2006-11-25 14:00:00.00] VMSCHED Stopped VMs for lease 2 on nodes [2, 3, 4, 1] |
| | 186 | [2006-11-25 14:00:00.00] VMSCHED Resuming lease 1... |
| | 187 | [2006-11-25 14:00:00.00] VMSCHED Lease 2's VMs have shutdown. |
| | 188 | [2006-11-25 14:00:32.00] VMSCHED Resumed lease 1 |
| | 189 | [2006-11-25 14:00:32.00] VMSCHED Started VMs for lease 1 on nodes [1] |
| | 190 | [2006-11-25 14:31:04.00] VMSCHED Stopped VMs for lease 1 on nodes [1] |
| | 191 | [2006-11-25 14:31:04.00] VMSCHED Lease 1's VMs have shutdown. |
| | 192 | [2006-11-25 14:31:04.00] CLOCK Simulated clock has stopped |
| | 193 | [2006-11-25 14:31:04.00] RM Stopping resource manager gracefully... |
| | 194 | [2006-11-25 14:31:04.00] RM --- Haizea status summary --- |
| | 195 | [2006-11-25 14:31:04.00] RM Number of leases (not including completed): 0 |
| | 196 | [2006-11-25 14:31:04.00] RM Completed leases: 2 |
| | 197 | [2006-11-25 14:31:04.00] RM ---- End summary ---- |
| | 198 | }}} |
| | 199 | * [[Image(http://haizea.cs.uchicago.edu/manual/quickstart_leasegraph3.png,width=350px)]] |
| | 200 | [[BR]] <- 流程圖解:第1個租約(Best-effort lease)要求一台 node 在 13:00時,並持續擁有資源此 1 小時,到了13:15分時,第2個租約(AR lease)要求出現,他需要 4 台 node 再 13:30開始執行,並持續擁有資源 30 分鐘 (因為AR lease 優先權高於 Best-effort lease,所以到了13:30時,將第1個租約先 suspend起來,等到13:30 第2個資約完成後,才resume回來繼續執行租約1) |